| bio | website | |
|---|---|---|
| location | ||
| age | ||
| visits | member for | 11 months |
| seen | May 15 at 21:24 | |
| stats | profile views | 1 |
|
Nov 15 |
comment |
Selenium Tests run in the background when TeamCity CI is run as a Windows service The test executes successfully, but the browser is not visible, my guess is that it runs in the background (probably in a headless state ?) but as webddriver needs active browser focus it takes that long to execute. There are no problems when Teamcity build agent is started manually. |
|
Nov 15 |
comment |
Selenium Tests run in the background when TeamCity CI is run as a Windows service @dzieciou a test which normally executes in 8 seconds now takes 1250 seconds. |
|
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 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 |
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 11 |
comment |
Rule of thumb for using wait() Yes I thought so but could not find a tag for 'coding practices' or 'best practices' |
|
May 30 |
comment |
Iterating through a table : Avoiding stale element exceptions (Webdriver - Python) I am going to try this now. looks like this will work.Thanks! |
|
May 30 |
comment |
Iterating through a table : Avoiding stale element exceptions (Webdriver - Python) Thanks 246! There are 51 login links (non unique. so i cannot save the links in one iteration and then circle through them).There are 51 rows each row with 7 columns. I need to check if condition in column 1 is true then click on link in column 7. |