Q.1
What is an explicit wait?
  • wait which is applied to a particular webelement until the ExpectedCondition specified is met.
  • is a wait which waits for a specified time while locating an element before throwing “NoSuchElementException”.
  • wait which is applied to a particular webelement until the ExpectedCondition specified is met as well as the frequency
  • All of above
Q.2
Which syntax can be used to handle dynamic elements?
  • contains( ) a //*[contains(@name=`btn`)]
  • startwith( ) a//label[startwith(@id, `message`)]
  • text( ) a//td[text() = `usedId`]
  • All options are correct
Q.3
Absolute Xpath starts with
  • single slash /
  • double slash //
Q.4
Which method gives an exception if the element is not found?
  • FindElement()
  • FindElements()
Q.5
Which is the correct syntax to find all links in the page?
  • List<WebElement> list = driver.findElements(By.tagName('a'));
  • WebElement<List> list = driver.findElements(By.tagName(“a”));
Q.6
Which one is NOT features of Selenium?
  • free and open source
  • has cross browser compatibility (chrome, Firefox ..)
  • supports distributed testing
  • can be tested windows based apps
Q.7
Which one is NOT one of the Selenium's suites?
  • Selenium IDE
  • Selenium RC
  • Selenium Grid
  • Selenium WebDriverManager
Q.8
Selenium can generate a report at the end of the test
  • True
  • False
Q.9
Which method should we use to launch a url?
  • openUrl()
  • get()
  • startChrome()
  • open()
Q.10
Which method to use to get an element from webpage?
  • findElements()
  • searchElement()
  • getElement()
  • findElement()
Q.11
Which is the correct syntax of DOM?
  • <tag attr1=value1, attr2=value2>Text</tag>
  • </tag attr1=value1, attr2=value2>Text</tag>
  • $tag attr1=value1, attr2=value2$Text$/tag$
  • <tag attr1==value1, attr2==value2>Text</tag>
Q.12
Which one is NOT features of the Selenium?
  • supports multi-browser testing
  • supports many operating systems (Win, OS...)
  • supports mobile tesing
  • supports multiple programming language
Q.13
What does DOM stands for?
  • Discover Object Mechanism
  • Document Object Model
  • Data Object Matrix
  • Desktop Object Model
Q.14
Which one uses to test server in Selenium?
  • Selenium grid
  • Selenium RC
  • Selenium Webdriver
  • Selenium IDE
Q.15
Which of the below file we use in Maven project?
  • com.xml
  • pom.doc
  • poc.xml
  • pom.xml
Q.16
Which of below is NOT a webelement type
  • Check Box
  • DropDown
  • Selector
  • Radio button
Q.17
Method to get title of the page
  • getPageTitle()
  • getTitle()
  • fetchTitle()
  • getWebTitle()
Q.18
Which method to use to get current page url?
  • getUrl()
  • getCurrentUrl()
  • getPageUrl()
  • getWebpageUrl()
0 h : 0 m : 1 s