Selenium - Interview Questions and Answers for 'Selenium' - 8 question(s) found - Order By Rating Q1. 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 Q2. 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 Q3. 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 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 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. 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 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 Q8. 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