user1592361
user1592361

Reputation: 9

Selenium Webdriver in xpath object is not found

I am doing an automation with Selenium Webdriver using Java. I need to click the class name inside the span tag. Example

For this i used xpath to select class="selcteME" and used click(). This works fine if I put break point in debug mode but when I run the script without break point in debug mode object is not selected.

Please share if you have solution or suggest me how can I get the class name inside the span tag

() without xpath

Upvotes: 0

Views: 1182

Answers (1)

some_other_guy
some_other_guy

Reputation: 3394

Have you tried by CSS Selector?

I suggest use some IDE to generate basic test and then use your logic.

Upvotes: -1

Related Questions