Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 21930

Used for questions about using Selenium WebDriver, a browser automation framework frequently used to automate testing in a browser.

1 vote
1 answer
1k views

Selenium - Why driver.quit doesn't work in the following case?

I'm writting some scripts on Selenium combined with Saucelab. However I have an issue. I do a test condition to know if I have an element or not on my page, if there is not this element I want to stop …
LeBrequin's user avatar
  • 437
2 votes
4 answers
106 views

Question about find_by_elements

When you use find_by_elements it returns a list of all the elements which correspond to a selector, xpath, class, id, etc... However, I wanted to know if it's possible to extract an element of this li …
LeBrequin's user avatar
  • 437
1 vote
2 answers
3k views

Use an if-statement to ensure that an element is not present

I would like to use a if statement to ensure that an element is not present without rising a NoSuchElementException. So for example: if(driver.find_element_by_xpath("xpath")): print " This elemen …
LeBrequin's user avatar
  • 437
2 votes

Question about find_by_elements

You just need to access the correct index of the returned array: list = admin.find_elements_by_xpath("your xpath") list[1].click() #if you want to click on the second one If you need to get the le …
LeBrequin's user avatar
  • 437
1 vote

I want to test web apps. Would emulators alone suffice or do I need to buy lots of smartphones?

There are so many devices in the world that you will ruin yourself if you try to buy many devices. I recommend some emulator website like https://www.browserstack.com You can select the operating sof …
LeBrequin's user avatar
  • 437