0 votes
1 view
in Devops and Agile by (22.5k points)

How to click element present under Form tag in selenium web driver. using xpath, id, name it does not get recognized.refer screen shotImage1 here you will see form tag details

In Image2 you willsee highlighted button id

1 Answer

0 votes
by (57.5k points)

Here is a CSS selector:

.container-contact-info input[value='new']

Or an XPath

//*[@class='container-contact-info']//input[@value='new']

This might not work if you have a ton of these forms. If that's the case please update your question with the relevant information and I can adjust this answer.

Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...