18 January 2026:
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
ComboBox in GWT-EXT application.
Hi,
We are using GWT-EXT application similar to gwt-ext.com/demo/#linkedComboBox
Below is code generated by Sahi on recording scenario for selecting item from ComboBox:
_click(_image("clear.cache.gif[43]"));
_click(_div("Germany"));
Here ComboBox picker is identified as gif image with index property.
The issue with it is any change in UI will result in change in index property and result in failure of script.
Can you please advice how to go about with this issue.
Thanks,
Savan
We are using GWT-EXT application similar to gwt-ext.com/demo/#linkedComboBox
Below is code generated by Sahi on recording scenario for selecting item from ComboBox:
_click(_image("clear.cache.gif[43]"));
_click(_div("Germany"));
Here ComboBox picker is identified as gif image with index property.
The issue with it is any change in UI will result in change in index property and result in failure of script.
Can you please advice how to go about with this issue.
Thanks,
Savan
Comments
You need to use the _near, _in or _under APIs in such cases. Have a look at http://sahi.co.in/w/browser-accessor-apis
Example:
_click(_image("clear.cache.gif", _near(_label("Select Country:"))));
_click(_div("Germany"));
Regards,
Narayan