Font size
WorksheetsSelenium Overview
Total questions: 15
Worksheet time: 8mins
Selenium IDE stands for?
Selenium Intialization Development Environment
Selenium Interrelated Development Environment
Selenium Integrated Development Environment
Selenium Information Development Environment
The Selenium can...
access controls within the desktop
test both web and desktop applications
only test web applications
What is the best element locator in selenium Webdriver?
Id
Name
xpath
class
If you wanted to find the sibling input that is after an input in the DOM, what would the XPath look like?
//input/following-sibling::input
//input::following-sibling/input
//input/sibling::input
//input/preceding-sibling::input
Pick two from the following if you wanted do a partial match on an attribute on an element from the beginning of the value
contains()
starts-with()
ends-with()
contains-text()
Select the odd one using in Selenium
Pattern Matching
XPath
Id
CSS selector
Which CSS selector applies to the yellow element(s) only? Select the correct answers!
#world{ ... }
.world{ ... }
world{ ... }
@world{ ... }
none of the above
Which CSS selector applies to the yellow element(s) only? Select the correct answers!
p.a{ ... }
a, ul{ ... }
a{ ... }
#a { ...}
none of the above
Which CSS selector applies to the yellow element(s) only? Select the correct answers!
h1-.content{ ... }
.content h1{ ... }
h1#content{ ... }
#content h1{ ...}
none of the above
Which CSS selector applies to the yellow element(s) only? Select the correct answers!
div a{ ... }
div a p{ ... }
div + a{ ... }
div > a{ ...}
none of the above
Which CSS selector applies to the yellow element(s) only? Select the correct answers!
.content h1, a{ ... }
#content h1, #content a{ ... }
#content h1+a{ ... }
#content h1 a{ ...}
none of the above
Which XPath syntax is correct below:
(Please select 2 correct answers)
//a[contains(@href,'http://')]
//a[contains(@href='http://')]
//a[contains(href,'http://')]
//a[contains(@href,"http://")]
Which XPath syntax is correct to identify a web element using multiple attributes?
//a[@title='Women' and @class='sf-with-ul']
//a[@title='Women' AND @class='sf-with-ul']
//a[@title='Women' & @class='sf-with-ul']
//a[@title='Women' && @class='sf-with-ul']
Which is valid XPath expression below?
//a[starts-with(@title='Women')]
//a[starts-with(@title,'Women')]
//a[starts-with(title,'Women')]
none of the above
Select the browser which is NOT supported by Selenium IDE.?
Google Chrome
Opera Mini
Mozilla Firefox
Internet Explorer
