Selenium MCQ Quiz PDF
Selenium MCQ Quiz PDF
Selenium MCQ Quiz PDF
1. input[tagname='value']
2. a[value='attribute']
3. tagname[@attribute=`value`]
4. atribute[@tagname=`value`]
Answer: tagname[@attribute=`value`]
1. pom.doc
2. poc.xml
3. com.xml
4. pom.xml
Answer: pom.xml
1. Selenium RC
2. Selenium IDE
3. Selenium grid
4. Selenium Webdriver
Answer: Selenium RC
1. Selenium Webdriver
2. Selenium Grid
3. Selenium IDE
4. Selenium RC
1. getCurrentUrl()
2. getPageUrl()
3. getWebpageUrl()
4. getUrl()
Answer: getCurrentUrl()
Answer: quit() method quits all opened windows, close() method closes the active
window only
1. By.div
2. By.classname
3. By.partialtext
4. Both 1 & 3
1. get()
2. openUrl()
3. open()
4. startChrome()
Answer: get()
1. disconnect()
2. close()
3. quit()
4. Both 2 & 3
1. ad hoc
2. functional testing
3. performance
4. stress
13. Select the command which is used to pause execution until the page is loaded
complelety
1. waitForLoad
2. wait ForElementPresent
3. waitForPageToLoad
4. waitForPage
Answer: waitForPageToLoad
1. getElement()
2. searchElement()
3. findElements()
4. findElement()
Answer: findElement()
1. Regular Expression
2. Registered Expression
3. Regional Expression
4. Regression Expression
1. Test Packs
2. Test Pattern
3. Test Blocks
4. Tests
Answer: Tests
19. Which label is used as prefix patter to specify a globing pattern parameter for a
selenese command ?
1. Regex
2. Pattern
3. Globe
4. None
Answer: Glob
1. Selector
2. Drop Down
3. Check Box
4. Radio button
Answer: Selector
1. Selenium RC
2. Selenium IDE
3. Selenium Web Driver Manager
4. Selenium Grid
1. Chrome Driver
2. new Chrome Driver
3. WebDriver
4. new WebDriver
1. Regression test
2. Load test
3. Security test
4. Performance test
1. C#
2. Java
3. HTML
4. Python
Answer: HTML
1. Block Title
2. Element title
3. Page title
4. Title of element under focus
1. verifytable
2. verifytable data
3. verifytable cell
4. All of above
Answer: verifytable
1. QTP/UFT
2. Katalon
3. Selenium
4. API
Answer: API
31. Which command can be used to enter values onto text boxes?
1. sendkeys()
2. sendkey()
3. sendkey
4. sendskeys
Answer: sendkeys()
33. Select the command which is not a type of assertion in selenium IDE.
1. Verify
2. Assert
3. wait
4. waitfor
Answer: wait
1. with Xpath, we can search elements backward or forward... while css works only in
forward direction
2. Xpath has more combination and can search by index CSS cannot search by index,
but css is working faster than Xpath
3. with Xpath we cannot work with text, CSS we can
4. Xpath can work with text, CSS cannot work
1. fetchTitle()
2. getPageTitle()
3. getWebTitle()
4. getTitle()
Answer: getTitle()
1. is a wait which waits for a specified time while locating an element before throwing
“No Such Element Exception.
2. wait which is applied to a particular web element until the Expected Condition
specified is met
3. wait which is applied to a particular web element until the Expected Condition
specified is met as well as the frequency
4. None of above
Answer: wait which is applied to a particular web element until the Expected Condition
specified is met
1. driver.manage().window().maximize();
2. driver.manage().maximize();
3. driver.manage().enlarge
4. driver.manage().window().enlarge();
Answer: driver.manage().window().maximize();