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
#2
(Sep-10-2018, 10:26 AM)Larz60+ Wrote: or why 'html = browser.page_source' doesn't work? ??
that is the normal method i use for getting the source. 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. Ive been bit by that so many times.
Recommended Tutorials:
Reply


Messages In This Thread
RE: Saving html page and reloading into selenium while developing all xpaths - by metulburr - Sep-10-2018, 11:13 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Click on a button on web page using Selenium Pavel_47 7 4,794 Jan-05-2023, 04:20 AM
Last Post: ellapurnellrt
  selenium returns junk instead of html klaarnou 5 2,300 Mar-27-2022, 07:20 AM
Last Post: klaarnou
  Selenium/Helium loads up a blank web page firaki12345 0 2,081 Mar-23-2021, 11:51 AM
Last Post: firaki12345
  HTML multi select HTML listbox with Flask/Python rfeyer 0 4,708 Mar-14-2021, 12:23 PM
Last Post: rfeyer
  Parsing html page and working with checkbox (on a captcha) straannick 17 11,531 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,223 Jan-09-2021, 06:08 PM
Last Post: eraosa
  API auto-refresh on HTML page using Flask toc 2 11,932 Dec-23-2020, 02:00 PM
Last Post: toc
  Selenium Parsing (unable to Parse page after loading) oneclick 7 6,089 Oct-30-2020, 08:13 PM
Last Post: tomalex
  Selenium Page Object Model with Python Cryptus 5 4,062 Aug-19-2020, 06:30 AM
Last Post: mlieqo
  Selenium on Angular page Martinelli 3 5,804 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