0 votes
in Selenium by
Consider the following html snippet

      • Firefox

      • Google Chrome

      • Internet Explorer

      • Opera

      • Safari

Which CSS selector is a valid statement to select Opera?

a) css = li.contains("Opera")

b) css = ul.li(4)

c) css = ul > li:nth-of-type(4)

d) css = ul > li:nth-of-type(3)

e) css = ul.li:nth-child(4)

1 Answer

0 votes
by
css = ul > li:nth-of-type(4)
...