Search Results
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 |
Used for questions about using Selenium WebDriver, a browser automation framework frequently used to automate testing in a browser.
0
votes
How to Deal With Changing Elements In XPath?
You can use partial matches with css selectors. So where you have id=ember26 above, in that case, you could use:
css=input[id^='ember'] (the ^ means starts with)
You can also use endswidth, and co …
13
votes
Selenium: How to delete single characters from a textbox?
While using the ASCII valid (\u008) is valid, there are already defines for this which makes your code more readable, as such:
element.sendKeys(Keys.BACK_SPACE);
For a list of the key names, there' …
1
vote
IE always opens with random local host and message: "This is the initial start page for the ...
In IE, this will usually show as the default page at the start of a test, until you provide it with a valid URL to navigate to.
Especially if you attempt to do something to the present (empty) page, …
1
vote
GUI / report for Selenium / Maven test failures
There are plenty. For example, if integrating with Jenkins, there's the Selenium HTML Report which allows you to drill down in the summary as well.
0
votes
How can I dynamically create an xpath string in Python for a webdriver xpath selector?
The problem looks (from the error) like it may have something to do with the extra '(' in your selector. Given you state the original statement works:
elem2 = driver.find_element_by_xpath("(//a[cont …
46
votes
How to download a file using Selenium's WebDriver?
Here's a solution. Set Firefox's preferences to save automatically, and not have the downloads window popup. Then you just grab the file, and it'll download.
So, something like this:
FirefoxProfile f …