[Tutor] selenium bindings...
bruce
badouglas at gmail.com
Tue Oct 18 13:00:29 EDT 2016
Hi.
This is prob way off topic.
Looking at web examples from different sites for selenium/python
bindings. Basically, trying to get an understanding of how to get the
"page" content of a page, after an implicit/explicit wait.
I can see how to get an element, but can't see any site that describes
how to get the complete page...
As an example of getting an element...
------------------------
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
driver = webdriver.Firefox()
driver.get("http://somedomain/url_that_delays_loading")
try:
element = WebDriverWait(driver, 10).until(
EC.presence_of_element_located((By.ID, "myDynamicElement"))
)
finally:
driver.quit()
----------------------------
But, as to getting the complete page, in the "try".. no clue.
Any thoughts/pointers??
thanks
More information about the Tutor
mailing list