Multiple Choice Questions on Selenium | Objective Questions | Selenium Quiz | MCQ | Selenium Practice Test
1 >>How do you start the browser? ?
- (A) selenium.Start()
- (B) get start()
- (C) selenium.Server start()
- (D) None of the above
2 >>Which Component is used to run multiple tests simultaneously in different browsers and platforms? ?
- (A) Selenium GRID
- (B) Selenium IDE
- (C) Selenium RC
- (D) Selenium Web Driver
3 >>Which of the following is an incorrect target for pattern matching as in verifyTextPresent command? ?
- (A) glob:Customer*Subscriber
- (B) You entered the character, ?
- (C) regexp:[JFM]
- (D) exact:* Summary
4 >>Which of the following always need a Capital letter ? ?
- (A) fields and Strings
- (B) class names and Strings
- (C) objects and class names
- (D) data types and fields
5 >>What are the different modes that Selenium uses? ?
- (A) *iehta
- (B) *firefox and *iexplore
- (C) *chrome
- (D) All of the above
6 >>How do you start the browser? ?
- (A) selenium.Start ()
- (B) selenium.Startt()
- (C) selenium. Server start()
- (D) None of the above
Selenium Practice Test | Selenium Quiz
7 >>Select the Browser which is supported by Selenium IDE. ?
- (A) Google chrome
- (B) Opera mini
- (C) Mozilla Firefox
- (D) IE
8 >>How many parameters does the Selenium object take when using DefaultSelenium? ?
- (A) 2
- (B) 3
- (C) 4
- (D) 6
9 >>How do you start selenium rc server with user extensions? ?
- (A) java -jar selenium-server.jar
- (B) java -jar selenium-server.jar -user Extensions user-extensions.js
- (C) java -jar selenium-server.jar user-extensions.js
- (D) java -jar selenium-server.jar user-extensions.jr
10 >>Which Selenium command do you use to run commands in slow motion in Selenium RC? ?
- (A) selenium.setSpeed()
- (B) selenium.speed()
- (C) selenium.serverSpeed()
- (D) None of the above
11 >>Which command is used to get the alert box? ?
- (A) assertequals(selenium.getAlert())
- (B) selenium.getAlert()
- (C) selenium.alertBox()
- (D) selenium.click()
12 >>Which command is used for verifying if web element exists? ?
- (A) selenium.isElementPresent(String locator)
- (B) assertTrue(Selenium.isElementPresent())
- (C) selenium.ElementPresent()
- (D) None of the above
13 >>Which command is used for typing in a textbox? ?
- (A) selenium.input()
- (B) selenium.type(String locator, String value)
- (C) assertequals(selenium.getValues())
- (D) selenium.textInput()
Selenium Practice Test | Selenium Quiz
14 >>What is the command to load a page? ?
- (A) selenium.waitForPageToLoad(String timeoutInMilliseconds)
- (B) selenium.waitForPageToLoadInt timeoutInMilliseconds
- (C) selenium.waitForPageToLoad(timeoutInMilliseconds)
- (D) selenium.waitForPageToLoad()
15 >>How to use xpath for dynamic elements? ?
- (A) Identify the pattern and modify xpath pattern
- (B) Directly use the xpath
- (C) Both 1 and 2
- (D) None of the above
16 >>Is Regular expression helps to identify dynamic elements? ?
- (A) Yes
- (B) No
- (C) Not very compatible
- (D) Compatible
17 >>How to check if any check box is checked or not? ?
- (A) driver.findElement(By.id(<>).Selected()
- (B) driver.findElement(By.id(<>).isSelected()
- (C) driver.findElement(By.id(<>).isChecked()
- (D) All of the above
18 >>What is getWindowHandle method? ?
- (A) Method will help to handle parent window
- (B) Method will help to handle of opened windows other than parent
- (C) Only handles alert
- (D) None of the above
19 >>How to handle alert using selenium? ?
- (A) driver.switchto.popup()
- (B) driver.switchto
- (C) driver.switchto.alert()
- (D) None of the above
20 >>What is Iterator? ?
- (A) Iterator enables you to cycle through a collection, obtaining or removing elements
- (B) It basically starts at the beginning of a collection
- (C) When you want to know which things are in a certain collection, you iterate over the collection, which is just another term for going through all elements. This is what an Iterator does
- (D) All of the above
Leave a Reply