Selenium - Interview Questions and Answers for 'Selenium' | Search Interview Question - javasearch.buggybread.com
Javasearch.buggybread.com

Search Interview Questions


 More than 3000 questions in repository.
 There are more than 900 unanswered questions.
Click here and help us by providing the answer.
 Have a video suggestion.
Click Correct / Improve and please let us know.
Label / Company      Label / Company / Text

   



Selenium - Interview Questions and Answers for 'Selenium' - 8 question(s) found - Order By Newest

 Q1. How to access a Web Element if there are many elements with the same XPath ?
Ans. By specifying the Index like

//button[@class='button'])[2]

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     selenium   selenium webdriver   automation testing


 Q2. What is a Webdriver ?Testing
Ans. Selenium WebDriver is a tool for automating web application testing.It helps in replicating the manual tester behavior like keyboard entry, mouse events etc and then matching the output against the expected.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     selenium  webdriver     Asked in 37 Companies


 Q3. How to track immediate parent of the child in selenium using xpath?Selenium
Ans. Using ./

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve          Asked in 1 Companies


 Q4. How do you take screenshot in selenium?Selenium
Ans. TakeScreenshot th = TakeScreenshot(driver); //Enable the driver object to take screenshot

File src = th.getScreenShotAs(OutputType.FILE);

FileUtils.copyFilesrc("locationWhereUWantToPlaceTheScreenshot.jpg");

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     webdriver  selenium     Asked in 1 Companies


 Q5. How to capture Screenshot when the testcases are failed?Testing
Ans. Using Listeners

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     testng  selenium     Asked in 1 Companies


 Q6. Set Locators priority wise in selenium WebDriver.Selenium
Ans. Id locators,Name locators,CSS locators,Xpath locators,DOM locators

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     selenium  WebDriver     Asked in 1 Companies


 Q7. How can you handle JavaScript popup using selenium ?Selenium
Ans. Using javaexecutor

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     Selenium  WebDriver     Asked in 1 Companies


 Q8. How to work with dynamic webtable ?Testing
Ans. List lists=driver.FindElements(xpath);
int row= lists.size();

List lists=driver.FindElements(xpath);
int column= lists.size();

String value=Rowtable.FindElement(xpath);
system.out.println(value);

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     Selenium     Asked in 1 Companies



Help us and Others Improve. Please let us know the questions asked in any of your previous interview.

Any input from you will be highly appreciated and It will unlock the application for 10 more requests.

Company Name:
Questions Asked: