wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Selenium Overview

Total questions: 15

Worksheet time: 8mins

Name
Class
Date
1.

Selenium IDE stands for?

a)

Selenium Intialization Development Environment

b)

Selenium Interrelated Development Environment

c)

Selenium Integrated Development Environment

d)

Selenium Information Development Environment

2.

The Selenium can...

a)

access controls within the desktop

b)

test both web and desktop applications

c)

only test web applications

3.

What is the best element locator in selenium Webdriver?

a)

Id

b)

Name

c)

xpath

d)

class

4.

If you wanted to find the sibling input that is after an input in the DOM, what would the XPath look like?

a)

//input/following-sibling::input

b)

//input::following-sibling/input

c)

//input/sibling::input

d)

//input/preceding-sibling::input

5.

Pick two from the following if you wanted do a partial match on an attribute on an element from the beginning of the value

a)

contains()

b)

starts-with()

c)

ends-with()

d)

contains-text()

6.

Select the odd one using in Selenium

a)

Pattern Matching

b)

XPath

c)

Id

d)

CSS selector

7.

Which CSS selector applies to the yellow element(s) only? Select the correct answers!

a)

#world{ ... }

b)

.world{ ... }

c)

world{ ... }

d)

@world{ ... }

e)

none of the above

8.

Which CSS selector applies to the yellow element(s) only? Select the correct answers!

a)

p.a{ ... }

b)

a, ul{ ... }

c)

a{ ... }

d)

#a { ...}

e)

none of the above

9.

Which CSS selector applies to the yellow element(s) only? Select the correct answers!

a)

h1-.content{ ... }

b)

.content h1{ ... }

c)

h1#content{ ... }

d)

#content h1{ ...}

e)

none of the above

10.

Which CSS selector applies to the yellow element(s) only? Select the correct answers!

a)

div a{ ... }

b)

div a p{ ... }

c)

div + a{ ... }

d)

div > a{ ...}

e)

none of the above

11.

Which CSS selector applies to the yellow element(s) only? Select the correct answers!

a)

.content h1, a{ ... }

b)

#content h1, #content a{ ... }

c)

#content h1+a{ ... }

d)

#content h1 a{ ...}

e)

none of the above

12.

Which XPath syntax is correct below:

(Please select 2 correct answers)

a)

//a[contains(@href,'http://')]

b)

//a[contains(@href='http://')]

c)

//a[contains(href,'http://')]

d)

//a[contains(@href,"http://")]

13.

Which XPath syntax is correct to identify a web element using multiple attributes?

a)

//a[@title='Women' and @class='sf-with-ul']

b)

//a[@title='Women' AND @class='sf-with-ul']

c)

//a[@title='Women' & @class='sf-with-ul']

d)

//a[@title='Women' && @class='sf-with-ul']

14.

Which is valid XPath expression below?

a)

//a[starts-with(@title='Women')]

b)

//a[starts-with(@title,'Women')]

c)

//a[starts-with(title,'Women')]

d)

none of the above

15.

Select the browser which is NOT supported by Selenium IDE.?

a)

Google Chrome

b)

Opera Mini

c)

Mozilla Firefox

d)

Internet Explorer