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
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Favorites infavorites:mine
infavorites:1234
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 answers only user 8869

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

2
votes
For the sample URL you have provided, the below C# code appears to work every time for me (four attempts). Of course, I'm not hovering for a specific time (why would you?) but in this case until a ne …
answered May 7 '15 by FDM
1
vote
Your columns list contains WebElements which have the value property. You'll have to use a sorting algorithm that works on these values, to get the elements in the order you want. I'm no Java expert, …
answered Jan 21 '15 by FDM
1
vote
As you can see in these release notes, the 4.5.x releases are mostly bugfixes. Similarly, if you google any 4.5.1 API links, you'll automatically arrive at 4.5.2. So don't worry about it, you can use …
answered Mar 6 '16 by FDM
3
votes
I'm not sure how long you waited, but with your current code the screenshot is taken a split millisecond after starting the navigation. You should wait for an element to be visible (e.g. the Google S …
answered Mar 28 '18 by FDM
2
votes
Use driver.getWindowHandle() to see if the focus has switched to another window. This method returns a unique id for every frame. Use By.Id("frame1") to locate by id, this is much cleaner than XPath. …
answered Jun 26 '15 by FDM
0
votes
If it really, really only appears for a few milliseconds, there are things you could experiment with. Use an explicit wait but set the polling interval as low as possible (1 millisecond?) and see if …
answered Jan 30 '18 by FDM
2
votes
Your locator is wrong. The list items in the search autocomplete have specific classes, so you can find them using the CSS selector .sbsb_c.gsfs. Secondly, use an explicit wait instead of Thread.Slee …
answered Nov 1 '17 by FDM
2
votes
First of all, wait for the element you'll be clicking. Right now you're waiting for a different element. Here's how: https://stackoverflow.com/questions/20903231/selenium-wait-until-element-is-presen …
answered Jun 15 '15 by FDM
0
votes
That sounds almost like a trick question, if I understand it correctly. If each row may be used only once, then the rows should be specific for a test and not in a common sheet (do you see the contrad …
answered Oct 5 '17 by FDM
1
vote
The closest thing I've found is this extended HTMLUnitDriver. For more context, see also this SO question. Following the comments on that question, why not use PhantomJS, which apparently supports sc …
answered Aug 2 '17 by FDM
4
votes
Your problem is with the selector indeed. Issue 1 When using XPath in the context of another element (as you are doing), always start the XPath with a dot (which represent the element you are starti …
answered Jul 5 '17 by FDM
1
vote
For working with options, please use the SelectElement class which will redure your effort to about two lines of code. Example: using OpenQA.Selenium.Support.UI; var selectElement = new SelectElem …
answered Sep 14 '17 by FDM
0
votes
They have moved the ExpectedConditions to another package that won't be maintained (unless someone steps forward). The easiest (and cleanest) solution is to simply create a class in your framework wh …
answered Jan 10 by FDM
1
vote
I will write pseudocode that might pose some challenge (or not at all, depending on your experience), but is very robust when coded properly. Use explicit waits only. I hope this way, you will learn …
answered May 2 '17 by FDM
1
vote
From the looks of it, the biggest issue is not your Selenium tests but the application (or test environment) itself. If your tests are written in a robust manner, and they are still showing a lot of …
answered Mar 18 '18 by FDM

15 30 50 per page