RE: How to handle these dynamic id elements “ext-gen216”, “ext-comp216 ” using Xpath ? When to use Starts-with,Contains keywords and text ?Which kind of context we use those keywords?

How to handle these dynamic id elements “ext-gen216”, “ext-comp216 ” using Xpath ? When to use Starts-with,Contains keywords and text ?Which kind of context we use those keywords?

Raghul Default Asked on September 25, 2014 in Selenium WebDriver.

Hi,

can you give us the URL of the site? Its will be good to give accurate answer.

Thanks
Virender

on September 25, 2014.

If your query is resolved then please accept the answer.

on September 27, 2014.
Add Comment
3 Answers

Hi Raghul,

Please go through the below links and you may get some idea and how to deal with to identify an element, text, etc..

http://stackoverflow.com/questions/3655549/xpath-containstext-some-string-doesnt-work-when-used-with-node-with-more

http://stackoverflow.com/questions/1390568/how-to-match-attributes-that-contain-a-certain-string

Vice Professor Answered on September 26, 2014.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.