Selenium WebDriver Interview Questions | Snaprecruit.com
Selenium WebDriver Interview Questions | Snaprecruit.com
JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing
Enterprises
Selenium WebDriver interview questions
Back
Take as many assements as you can to improve your validate your skill rating
Total Questions: 5
1. Selenium IDE is supported by which browser?
A. Internet Explorer
B. Mozilla Firefox
C. Google Chrome
D. Safari
Show Correct Answer
Correct Answer is :
Mozilla Firefox
2. In webdriver, which of the following commands retrieves the text of a html element?
A. selectText()
B. getText()
C. getElementText()
D. getText(WebElement)
Show Correct Answer
Correct Answer is :
getText()
3. In webdriver, which method closes the open browser?
A. quit()
B. terminate()
C. shutdown()
D. close()
Show Correct Answer
Correct Answer is :
close()
4. In webdriver, what is the method that counts the number of elements?
A. driver.getCountOfElements()
B. driver.findElement(By.id("search")).getCount()
C. driver.findElements(By.id("search")).size()
D. driver.findElements(By.id("search")).length()
Show Correct Answer
Correct Answer is :
driver.findElements(By.id("search")).size()
5. Which WebDriver method is used to change focus to an alert, a frame or a browser window?
A. changeFocus()
B. setFocus()
C. switchTo()
D. changeTo()
Show Correct Answer
Correct Answer is :
switchTo()
Similar Interview Questions
Search for latest jobs
Title
Location
Find Jobs