Hey Anji,
================================================================================
This is the error which I got when I used
driver.findElement(By.xpath("//button[text()='User,Intervolve']");
Caused by: org.openqa.selenium.remote.ErrorHandler$UnknownServerException:
Unable to locate element:
{"method":"xpath","selector":"//button[text()='User,Intervolve']"}.
This is HTML code :- <em id="ext-gen239" class="x-btn-split" unselectable="on">
<button id="ext-gen31" class="x-btn-text" type="button">User,
Intervolve</button>
</em>
So, then I got the xpath via firepath :-
d1.findElement(By.xpath("//*[@id='ext-gen31']")).click(); , It worked
, but you told earlier that this web page uses EX-GWT where ID's will
change. So, what do you suggest ??
=============================================================================
I have many items in HTML code like this :-
<a id="ext-comp-1111" class="x-menu-item" href="#" unselectable="on"
hidefocus="true">
<img id="ext-gen248" class="x-menu-item-icon " src="/images/s.gif">
<span id="ext-gen249" class="x-menu-item-text">Logout</span>
</a>
what is the best alternative to use . Right now I am using
d1.findElement(By.xpath("//*[@id='ext-comp-1111']")).click(); , but
again same problem will come that ID's will change.
Many Thanks,