[Tutor] Pytest help

2015-07-07 Thread Sahil Chauhan
Hi,

I am trying to use py.test for writing some selenium webdriver tests. I
wrote my first test and
pytest is deselecting that test even though I didn't mark any test.

How can I resolve this issue?  Is there some default setting used by
py.test,


(qa)MacBook-Air:$  py.test tests/test_login.py
===
test session starts
===
platform darwin -- Python 2.7.6 -- pytest-2.2.4
collected 1 items

===
*1 tests deselected by "-m 'nondestructive'" *
===
==
1 deselected in 0.01 seconds ==




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


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