Is there a way how to test if an element is present? Any findElement method would end in an exception, but that is not what I want, because it...
I want to make sure that an element is present before the webdriver starts doing stuff. I’m trying to get something like this to work: WebDriverWait wait = new...
I have a Selenium test suite that runs many tests and on each new test it opens a browser window on top of any other windows I have open....
I am currently using selenium webdriver to parse through facebook user friends page and extract all ids from the AJAX script. But I need to scroll down to get...
How can I verify my XPath? I am using Chrome Developers tool to inspect the elements and form my XPath. I verify it using the Chrome plugin XPath Checker,...
I’m trying to get the current url after a series of navigations in Selenium. I know there’s a command called getLocation for ruby, but I can’t find the syntax...
I am trying to launch chrome with an URL, the browser launches and it does nothing after that. I am seeing the below error after 1 minute: Unable to...
How do you make Selenium 2.0 wait for the page to load? 48 Answers 48 You can also check pageloaded using following code IWait<IWebDriver> wait = new OpenQA.Selenium.Support.UI.WebDriverWait(driver, TimeSpan.FromSeconds(30.00));...
I need to select an element from a drop-down menu. For example: <select id="fruits01" class="select" name="fruits"> <option value="0">Choose your fruits:</option> <option value="1">Banana</option> <option value="2">Mango</option> </select> 1) First I have...
What is the difference between these Webdriver.Close() Webdriver.Quit() Webdriver.Dispose() Which one to be used and when? 12 Answers 12