Selenium - Interview Questions and Answers for 'Webdriver' | 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 'Webdriver' - 7 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 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


 Q4. 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


 Q5. 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


 Q6. what is the difference between RC and webdriverWebDriver
 This question was recently asked at 'HCL Technologies'.This question is still unanswered. Can you please provide an answer.


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

   Like         Discuss         Correct / Improve          Asked in 1 Companies


 Q7. can we write multiple CATCH in webdriver code?Testing
Ans. A try block can be followed by one or more catch blocks. Each catch block must contain a different exception handler. So, if you have to perform different tasks at the occurrence of different exceptions, use java multi-catch block.

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

   Like         Discuss         Correct / Improve     webdriver     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: