Open GoogleCodeExporter opened 8 years ago
Why don't to specify an ID for your UI elements created using GWT-Ext? Most of
them
allow you to explicitly specify an ID.
Original comment by sanjiv.j...@gmail.com
on 20 Aug 2007 at 2:01
Thank sanjiv.jivan,
As we are moving from GWT to start to use GWT-Ext, In case of GWT, we don't
need to
specify any id for GUI component, it will automatically use the something that
similar to the following in the XPath of the GUI component.
div[36]/table/tbody/tr[2]/td/table/tbody/tr[3]/td/button
For some Ext component, we still don't know how to specify the ID for them. For
example.MessageBox and LayoutDialog.
Even if we can specify ID for all our GUI components, it will come up another
naming
standard for GUI ID, which may create problem in the later development cycle.
Many thanks for your help. :)
Ray,
Original comment by raymond....@gmail.com
on 20 Aug 2007 at 2:38
I also see the same issue.
ANy answers to that Sanjiv.
Original comment by buddha...@gmail.com
on 21 Jan 2009 at 3:02
Please let me know if you found a solution to this problem of dynamic element
ids in
a GWT application. Were you able to test this with Selenium ?
thanks,
Shruti
Original comment by shruti....@gmail.com
on 21 Sep 2009 at 6:50
One suggestion is to put names in component and use it to locate the element
with the selenium.
Original comment by marlon...@gmail.com
on 8 Dec 2011 at 12:17
You can use a combination of static-ids and (css-selectors or xpath-locators)
to find and operate on elements. One frustration with Ext-GWT is that it takes
3 Selenium commands to simulate a mouse click within a grid (for example). I
believe it's something on: mouseover, mousedown, click. Those 3 commands will
get the correct user action to fire (I found that in the Sencha help forums -
and, yes - I know this is a different project but I believe it is worth a shot
if you've stumbled onto this thread).
This is also helpful if you're not familiar with CSS Selector:
http://saucelabs.com/blog/index.php/2010/01/selenium-totw-css-selectors-in-selen
ium-demystified/
Original comment by andrew.l...@gmail.com
on 8 Dec 2011 at 1:11
Original issue reported on code.google.com by
raymond....@gmail.com
on 20 Aug 2007 at 1:51