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 answers only not deleted user 8869

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

1 vote

how to sort a flexigrid using Selenium webdriver?

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, …
FDM's user avatar
  • 5,894
2 votes
Accepted

Any chance to hover on element for specific time?

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 …
FDM's user avatar
  • 5,894
3 votes

Selenium web driver takes screenshot of initial stage page of webdriver server and not googl...

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 …
FDM's user avatar
  • 5,894
2 votes

Replacement Of Sendkeys in selenium

See the answer to this question. I think setting the value in the HTML source will be the only alternative.
FDM's user avatar
  • 5,894
2 votes

Java docs for httpclient and httpcore jars

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 …
FDM's user avatar
  • 5,894
2 votes

Selenium Webdriver: No such element exception even though element gets available after waiti...

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 …
FDM's user avatar
  • 5,894
2 votes

Unable to handle iFrame in Selenium

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. …
FDM's user avatar
  • 5,894
1 vote

value attribute not visible for password field

The value is what's shown in the input field. So even if the value attribute isn't there, it implicitly has the value of what's been entered in the field. For example, this is a Selenium regression t …
FDM's user avatar
  • 5,894
6 votes

TestNG.java.lang.NullPointerException running second @Test

There are two issues with your code. The first: It seems like you never apply the PageFactory on this class. Therefore, when trying the line profile.click() the variable is null (because never initi …
FDM's user avatar
  • 5,894
2 votes

executeAsyncScript method doesn't appear when driver is instantiated as "Webdriver driver"

As you can see in the Javadoc, the method executeAsyncScript is inherited from the class RemoteWebDriver, while the interface WebDriver has no such method. Because you declare your variable as a WebD …
FDM's user avatar
  • 5,894
1 vote

Test that deals with time, selecting a time 1 hour ahead of test run

For your specific case, I would try the following: DateTime.Now.AddHours(1.00).ToString("HH:mm:ss") You add an hour to the current time (and date). Then, you convert it to the format you want for l …
FDM's user avatar
  • 5,894
1 vote

How to automate an autocomplete search text box?

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 …
FDM's user avatar
  • 5,894
2 votes

C# Selenium WebDriver how do while loop on element

The problem is this line of code: var links = PropertiesCollections.driver.FindElement(By.LinkText("Delete")).Click(); The Click method does not return an element, so you can't assign it.
FDM's user avatar
  • 5,894
1 vote

How to automate a search page?

I will present you the logic of one possible solution I have implemented. From what I can deduct, it's the kind of thing you want. The test will work for any search values you'll pass into it. Test m …
FDM's user avatar
  • 5,894
0 votes

Selenium explicit waits not working for the Edge webdriver

We have experimented with Edge Driver too, and the main thing is that Edge Driver is riddled with bugs. For example, what you are mentioning sounds awfully similar to Setting URL doesn't wait to retu …
FDM's user avatar
  • 5,894

1
2 3 4 5
15 30 50 per page