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,

Please find the bellow html tag

1. <div class=”x-window-body” id=”ext-gen526″ style=”text-align: left; padding: 10px; height: auto; width: 166px;”>Contact details are successfully saved</div>

2. <span class=”x-menu-item-text” id=”ext-gen167″>Detailed Add</span>

What context we use starts-with, contains and text keywords and please explain me with example ?

Regards,
Raghul.G

Default Answered on September 25, 2014.

Below links are useful and examples also there.

on September 26, 2014.
Add Comment

Your Answer

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