You can get the page source with if that's what you are looking for

driver.page_source

Regards,
Sahil

On Tue, Oct 18, 2016 at 1:00 PM, bruce <badoug...@gmail.com> wrote:

> 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
> _______________________________________________
> Tutor maillist  -  Tutor@python.org
> To unsubscribe or change subscription options:
> https://mail.python.org/mailman/listinfo/tutor
>
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to