0 votes
in Selenium by
What is the output of the following statement?

<div> <a id=’name’>Name 1 </a>

<a id=’name’>Name 2 </a></div>

driver.findElement(By.cssSelector(“#name”));

a) Output is Name 1

b) Output is Name 2

c) CSS selector syntax is incorrect

1 Answer

0 votes
by

 Output is Name 1

Related questions

0 votes
asked Mar 18, 2023 in Oracle by GeorgeBell
0 votes
asked Feb 6, 2020 in JavaScript by rajeshsharma
...