1

I Want to test application in Selenium IDE. But Id and name are not set for components used in GWT web application.
I develop test cases in Selenium IDE using XPATH and css.
I want way to set id/name (runtime) to components to develop testcases in Selenium IDE?
Thanks in advance.

Himanshu
  • 4,327
  • 16
  • 31
  • 39
niks75
  • 11
  • 2
  • 1
    Does this help: http://stackoverflow.com/questions/11845544/how-can-i-set-id-for-gwt-widgets-in-uibinder – El Hoss Mar 31 '15 at 10:52

2 Answers2

1

You can set an ID on any widget:

myWidget.getElement().setId("123");
Andrei Volgin
  • 40,755
  • 6
  • 49
  • 58
0

Set Id to the Widget, See the Below Example

Button b = new Button();
b.getElement().setId("mycustomid");
moh
  • 1,426
  • 2
  • 16
  • 43