MCQ Selenium Test 1
1. Which is used for writing Selenium 3.0 Script?
A. FirefoxDriver
B. RemoteWebDriver
C. WebDriver
D. All the above
D. All the above
2. Which is a Class?
A. WebElement
B. WebDriver
C. Alert
D. WebDriverWait
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)
C. findElement(By locator)
4. Which method is Overloaded method Selenium WebDriver?
A. findElement
B. getText
C. frame
D. window
C. frame
5. Which methods is not present in Navigation Interface?
A. goBack()
B. refresh()
C. forward()
D. to(URL url)
A. goBack()
6. What arguments accept by until method of WebDriverWait and FluentWait classes?
A. ExpectedConditions
B. Function
C. Predicate
D. All the above
D. All the above
7. Which method is present in Action Interface?
A. moveToElement
B. click
C. perform
D. contextClick
C. perform
8. Which method is used to retrieve the contents inside any HTML tags?
A. getValue
B. getText
C. getContent
D. getTagValue
B. getText
9. Which method is used to retrieve any attribute value inside any HTML tags?
A. getAttribute
B. getText
C. getAttributeContent
D. getAttributeValue
A. getAttribute
10. Which method is used to work with multiple browser windows?
A. getWindowHandle
B. getWindowHandles
C. getMultipleWindows
D. Both A and B
D. Both A and B
A. FirefoxDriver
B. RemoteWebDriver
C. WebDriver
D. All the above
D. All the above
2. Which is a Class?
A. WebElement
B. WebDriver
C. Alert
D. WebDriverWait
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)
C. findElement(By locator)
4. Which method is Overloaded method Selenium WebDriver?
A. findElement
B. getText
C. frame
D. window
C. frame
5. Which methods is not present in Navigation Interface?
A. goBack()
B. refresh()
C. forward()
D. to(URL url)
A. goBack()
6. What arguments accept by until method of WebDriverWait and FluentWait classes?
A. ExpectedConditions
B. Function
C. Predicate
D. All the above
D. All the above
7. Which method is present in Action Interface?
A. moveToElement
B. click
C. perform
D. contextClick
C. perform
8. Which method is used to retrieve the contents inside any HTML tags?
A. getValue
B. getText
C. getContent
D. getTagValue
B. getText
9. Which method is used to retrieve any attribute value inside any HTML tags?
A. getAttribute
B. getText
C. getAttributeContent
D. getAttributeValue
A. getAttribute
10. Which method is used to work with multiple browser windows?
A. getWindowHandle
B. getWindowHandles
C. getMultipleWindows
D. Both A and B
D. Both A and B
Comments
Post a Comment