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

What are the different types of waits available in webdriver?

0 Answers  


Explain the difference between assert and verify commands?

0 Answers  


How to handle alerts in selenium?

0 Answers  


How to switch between frames in selenium?

0 Answers  


What are the webdriver supported mobile testing drivers?

0 Answers  






Can we enter text without using sendkeys()?

0 Answers  


What is same origin policy and how it can be handled?

0 Answers  


What is the hybrid framework?

0 Answers  


What types of cases can be automated with Selenium?

0 Answers  


What is assertion in selenium?

0 Answers  


What are the junits annotation linked with selenium?

0 Answers  


How to iterate through options in test script?

0 Answers  


Categories