Hot answers tagged webdriver
Servlet is one of available server-side technologies to generate HTML web pages. From WebDriver point of view it is really not relevant how HTML web page it tests has been generated.
Well, I believe you cannot prevent deletion of Session data once you close the browser. But, you can store the cookies of your first instance and copy it to new instances using a driver.manage().getCookies() method. Before calling driver.close() method in your test, make sure to save the cookies using following piece of code : Set<Cookie> allCookies ...
To provide an exact solution to the question screenshot of the popup is necessary (I am just gonna state out all possible scenarios). A popup can be an alert or an ad in a iframe or an ad in a new window and all these are treated in different ways. Assuming its an Alert, log_file has already provided you the solution, i.e. to use alertIsPresent(), and ...
I believe you are getting this error because : You are immediately (before the page load could finish) searching for an element and finding it. there are 3 options in a dropdown and on selecting each option, rows in a table gets populated. When dealing with asynchronous pages use proper waits after every anticipated page-load. Insert an explicit ...
try this if drop down has search functionality driver.findelement(by.xpath("your drop down arrow button or select button path")).click driver.findelement(by.xpath("your drop down search text box path")).sendkeys("values "); driver.findelement(by.xpath("your drop down search text box path")).sendkeys(Keys.arrowdown, keys.enter);
Since a candidate experienced in selenium web driver should be familiar with frameworks, show an already built simple framework and ask him/her to explain it and see how well he/she can articulate the selenium webdriver concepts and java concepts.
For second part I can suggest a way based on what we have used in our organization You could give a example of a simple web application i.e - Simple form -> Thank You Page .. Then ask to design and develop a automation script for the given scenario . Then you can see whether he/she is using Page Object model for the design and also coding standards are ...
Read the complete excel at the start of your test, store the column headers in a array/list and then by using the first row as column header feed your test e.g. in a Test annotation, you require data for Firstname, Lastname and Address columns only. Then, in that test write the code to read values of rows below the column Firstname and insert the same into ...
I was able to determine what was causing the issue. After new session initialization: session = Capybara::Session.new(driver) I was calling following method to maximise the browser window: session.driver.browser.manage.window.maximize Looks like sometimes a new browser window is opening too slow and when Capybara tries to maximise the window, this ...
Only top voted, non community-wiki answers of a minimum length are eligible