How can I click the div tag using xpath

<div>
<input>
<input>
<input>
<input>.....suresh....</input>
</input>
</input>
</input>
</div>

Answers were Sorted based on User's Feedback



How can I click the div tag using xpath <div> <input> <input> <input> ..

Answer / kiran

//input/ancestor::div

Is This Answer Correct ?    2 Yes 0 No

How can I click the div tag using xpath <div> <input> <input> <input> ..

Answer / kiran212

//input/ancestor::div

Is This Answer Correct ?    1 Yes 0 No

How can I click the div tag using xpath <div> <input> <input> <input> ..

Answer / @ni

//div

Is This Answer Correct ?    1 Yes 0 No

How can I click the div tag using xpath <div> <input> <input> <input> ..

Answer / raam

/div/input(index)

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More Selenium Interview Questions

Explain the meaning of the statement in Selenium and what are the types of assertion?

0 Answers  


How to hover the mouse on an element?

0 Answers  


How can we check if an element is enabled for interaction on a web page?

0 Answers  


What happen if you mix both thread.sleep and webdriver waits in a selenium script?

0 Answers  


What is selenium and what is composed of?

1 Answers  






difference between Close() and Quit()?

3 Answers   HCL,


Explain why to choose python over java in selenium?

0 Answers  


Which is the latest Selenium tool?

0 Answers  


What is the difference between MaxSessions vs. Selenium grid MaxInstances properties?

0 Answers  


How can we create object repository in selenium?

0 Answers  


What is a keyword driven framework?

0 Answers  


What is the purpose of the getoptions() method?

0 Answers  


Categories