WorksheetsSelenium-1
Total questions: 11
Worksheet time: 22mins
Which method should we use to launch a url?
openUrl()
get()
startChrome()
open()
which method to use to get an element from webpage?
findElements()
searchElement()
getElement()
findElement()
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>
What does DOM stands for?
Discover Object Mechanism
Document Object Model
Data Object Matrix
Desktop Object Model
Which of the below file we use in Maven project?
com.xml
pom.doc
poc.xml
pom.xml
Which of below is NOT a webelement type
Check Box
DropDown
Selector
Radio button
Which method to use to close a webpage?
Hint : more than one answers are correct.
quit()
shut()
close()
disconnect()
Which of the below are NOT a correct way of location element?
Hint : More than one answers are correct.
By.id
By.div
By.classname
By.linktext
By.partialtext
Method to get title of the page
getPageTitle()
getTitle()
fetchTitle()
getWebTitle()
Which method to use to get current page url?
getUrl()
getCurrentUrl()
getPageUrl()
getWebpageUrl()
Difference between quit() and close()?
quit() method quits the active window only, close() method closes the active window
quit() method quits the active window only, close() method closes all opened windows.
quit() method quits all opened windows, close() method closes the active window only.
quit() method closes all opened windows, close() method opens a browser session
