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

Which files can be used as data source for different frameworks?

0 Answers  


How to check the checkbox or radio button is selected?

0 Answers  


How would you test your element locator?

0 Answers  


How do you handle alert popup?

0 Answers  


What is the command to insert text into the HTML text box using Selenium?

0 Answers  






How to handle browser (chrome) notifications in selenium?

0 Answers  


Why should selenium be selected as a test program?

0 Answers  


What is the framework?

0 Answers  


When do we use findelement() and findelements()?

0 Answers  


What are the main advantages of selenium grid?

0 Answers  


How do you handle Alerts and Pop Ups?

3 Answers   HCL,


Tell me how do perform drag and drop using selenium webdriver?

0 Answers  


Categories