Login
Remember
Register
Ask a Question
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”));
0
votes
asked
Jan 30, 2020
in
Selenium
by
Deepanshu Burreja
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
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Jan 31, 2020
by
SakshiSharma
Output is Name 1
...