denizstij
7 May 2008, 9:09 AM
Hi,
We are using Selenium for testing our UI which is developed by ext-gwt(gxt). In selenium, each html elements must have a static id, in order to invoke a specific action on that element in a test case.
We are able to set a static unique id almost all widget in ext-qwt but combox. It seems combobox widget has several subcomponents and items in a combobox is rendered on internal panel (called "list" in combobox class) of which id is set internally. I would like to set id of this panel (and also "view" DataView object's id). But i am not able to do that. As in the attachment, these two elements get "my-41" (container) and "my-42" (view) dynamically.
Please note that, I am able to set the id of combobox (with setID(String) method) but not the id of these items and their internal container (list and view).
Briefly, i need to set element id of "list" (Container) and "view" (DataView) objects (in other words, item's id) as if in "initList" method Combobox class.
initList () {
...
list.setId("list_static_id");
view.setId("view_id");
...
}
Any idea ?
Thanks in advance
Deniz
We are using Selenium for testing our UI which is developed by ext-gwt(gxt). In selenium, each html elements must have a static id, in order to invoke a specific action on that element in a test case.
We are able to set a static unique id almost all widget in ext-qwt but combox. It seems combobox widget has several subcomponents and items in a combobox is rendered on internal panel (called "list" in combobox class) of which id is set internally. I would like to set id of this panel (and also "view" DataView object's id). But i am not able to do that. As in the attachment, these two elements get "my-41" (container) and "my-42" (view) dynamically.
Please note that, I am able to set the id of combobox (with setID(String) method) but not the id of these items and their internal container (list and view).
Briefly, i need to set element id of "list" (Container) and "view" (DataView) objects (in other words, item's id) as if in "initList" method Combobox class.
initList () {
...
list.setId("list_static_id");
view.setId("view_id");
...
}
Any idea ?
Thanks in advance
Deniz