Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in DevOps and Agile by (19.7k 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 (62.9k 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.

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...