Python Forum
Saving html page and reloading into selenium while developing all xpaths
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Saving html page and reloading into selenium while developing all xpaths
#3
i Tried it with a couple of pages, and I couldn't find anything using xpath.
Quote:Onec I downloaded with requests and saved thatm the same xpath worked fine.
There might be something weird with whatever site you are going to (like an iframe). You do of course you have to make sure that the page fully loads between browser.get and browser.page_source. I've been bit by that so many times.
there is something definately wierd about this site. It was built with wix, and full of Ajax (I think) code.
Took a while to get through that, but the hack seems to work fine. I'd be curious as to why, perhaps later, I'll try to diff the two files, but no time for that now.
Reply


Messages In This Thread
RE: Saving html page and reloading into selenium while developing all xpaths - by Larz60+ - Sep-10-2018, 12:05 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Click on a button on web page using Selenium Pavel_47 7 4,979 Jan-05-2023, 04:20 AM
Last Post: ellapurnellrt
  selenium returns junk instead of html klaarnou 5 2,379 Mar-27-2022, 07:20 AM
Last Post: klaarnou
  Selenium/Helium loads up a blank web page firaki12345 0 2,117 Mar-23-2021, 11:51 AM
Last Post: firaki12345
  HTML multi select HTML listbox with Flask/Python rfeyer 0 4,829 Mar-14-2021, 12:23 PM
Last Post: rfeyer
  Parsing html page and working with checkbox (on a captcha) straannick 17 11,747 Feb-04-2021, 02:54 PM
Last Post: snippsat
  Using Python request without selenium on html form with javascript onclick submit but eraosa 0 3,265 Jan-09-2021, 06:08 PM
Last Post: eraosa
  API auto-refresh on HTML page using Flask toc 2 12,029 Dec-23-2020, 02:00 PM
Last Post: toc
  Selenium Parsing (unable to Parse page after loading) oneclick 7 6,208 Oct-30-2020, 08:13 PM
Last Post: tomalex
  Selenium Page Object Model with Python Cryptus 5 4,180 Aug-19-2020, 06:30 AM
Last Post: mlieqo
  Selenium on Angular page Martinelli 3 5,902 Jul-28-2020, 12:40 PM
Last Post: Martinelli

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020