Re: [Tutor] selenium bindings...

2016-10-19 Thread Sahil Chauhan
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  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


Re: [Tutor] selenium bindings...

2016-10-18 Thread Alan Gauld via Tutor
On 18/10/16 18:00, bruce wrote:

> This is prob way off topic.

Yep, more appropriate for a selenium group/list.

There is one on gmane at

gmane.comp.web.selenium.user

Try asking there.


-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos


___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor