Tag: automation interview questions

Question : What are the different types of Driver class in Selenium WebDriver ? Answer:  The classes are as follows: FirefoxDriver InternetExplorerDriver ChromeDriver SafariDriver OperaDriver AndroidDriver IPhoneDriver HtmlUnitDriver  

Selenium WebDriver Interview Questions and Answers

Selenium WebDriver Interview Questions and Answers

Selenium WebDriver Interview Questions and Answers

Selenium WebDriver Interview Questions and Answers

Selenium WebDriver Interview Questions and Answers

How do you simulate browser back and forward in Selenium? Answer: The sample code is as follows: WebDriver driver=new ChromeDriver(); driver.navigate().back(); driver.navigate().forward();

Selenium WebDriver Interview Questions and Answers

Uncategorized

What are different types of locators in Selenium ? Ans- The different locators are : By.id(), By.name(), By.tagName(), By.className(), By.linkText(), By.partialLinkText(), By.xpath, By.cssSelector().

Selenium WebDriver Interview Questions and Answers

What are the annotations used in TestNG ? Ans: @Test, @BeforeSuite, @AfterSuite, @BeforeTest, @AfterTest, @BeforeClass, @AfterClass, @BeforeMethod, @AfterMethod.

Selenium WebDriver Interview Questions and Answers