Reputation: 9
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
Reputation: 3394
Have you tried by CSS Selector?
I suggest use some IDE to generate basic test and then use your logic.
Upvotes: -1