304 reputation
1514
bio website
location
age
visits member for 2 years, 4 months
seen Jul 23 at 15:29

Jul
27
accepted Load Testing, Selenium Vs Jmeter Vs other tools
Jul
26
comment Load testing for free or cheap without having to setup Selenium Grid?
Iwas using the free verison :) didnt realize it was that expensive.
Jul
26
asked Load Testing, Selenium Vs Jmeter Vs other tools
Jul
26
awarded  Teacher
Jul
25
answered Load testing for free or cheap without having to setup Selenium Grid?
Jul
17
awarded  Commentator
Jul
17
comment Quicker way to assert that an element does not exist
I should probably use a profiler to get the exact time spent in that try/catch block . But from past test results, the test where no exception was raised ran within 4 - 8 secs while the one where it was raised ran for about a minute or just over. There were no other changes in the code.
Jul
17
accepted Quicker way to assert that an element does not exist
Jul
17
comment Quicker way to assert that an element does not exist
oh right! that should take care of it. Thanks! :)
Jul
17
comment Quicker way to assert that an element does not exist
Ok! it was a syntax error. It should be {if not self.driver.find_elements(By.ID,"fancybox-close" ) :} There is a problem though, even though the popup is not displayed, it is still hidden element of the page. So the list is not an empty list - [<selenium.webdriver.remote.webelement.WebElement object at 0x02C2F870>]
Jul
17
comment Quicker way to assert that an element does not exist
It is giving me a type error saying <built-in function id> is not serializable
Jul
17
comment Quicker way to assert that an element does not exist
In python to check if the list is empty you just have to do if not a : where a =[] is a list. That is what i am doing. if not self.driver.find_elements(By.id("fancybox-close")) :
Jul
17
comment Quicker way to assert that an element does not exist
It is just executed once, but it just stalls on the "except" part for 90% of the 1 minute.
Jul
17
comment Quicker way to assert that an element does not exist
Ignacio, this is a great idea. python bindings have a find_elements() and is_displayed(). I am however having trouble with checking if the list is empty or not. I get an error message saying "built in function id is not JSON serializable. Will have to look in it. But otherwise this is a great idea. Thanks!
Jul
16
asked Quicker way to assert that an element does not exist
Jul
11
comment Rule of thumb for using wait()
Yes I thought so but could not find a tag for 'coding practices' or 'best practices'
Jul
11
awarded  Scholar
Jul
11
accepted Rule of thumb for using wait()
Jul
10
asked Rule of thumb for using wait()
Jul
3
answered Set attribute of an element using webdriver + python