MCQ Selenium Test 1

1. Which is used for writing Selenium 3.0 Script?
A. FirefoxDriver
B. RemoteWebDriver
C. WebDriver
D. All the above



2. Which is a Class?
A. WebElement
B. WebDriver
C. Alert
D. WebDriverWait



3. Which method is used to find an Object uniquely on any web Page?
A. getTitle()
B. findElements(By locator)
C. findElement(By locator)
D. searchElementById(String id)



4. Which method is Overloaded method Selenium WebDriver?
A. findElement
B. getText
C. frame
D. window



5. Which methods is not present in Navigation Interface?
A. goBack()
B. refresh()
C. forward()
D. to(URL url)



6. What arguments accept by until method of WebDriverWait and FluentWait classes?
A. ExpectedConditions
B. Function
C. Predicate
D. All the above



7. Which method is present in Action Interface?
A. moveToElement
B. click
C. perform
D. contextClick



8. Which method is used to retrieve the contents inside any HTML tags?
A. getValue
B. getText
C. getContent
D. getTagValue



9. Which method is used to retrieve any attribute value inside any HTML tags?
A. getAttribute
B. getText
C. getAttributeContent
D. getAttributeValue



10. Which method is used to work with multiple browser windows?
A. getWindowHandle
B. getWindowHandles
C. getMultipleWindows
D. Both A and B


Comments

Popular posts from this blog