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.
problem in record and playback of extjs application
I am working on extjs application,
As the ids are dynamic, the tool unable find the exact object there scripts fail
eg:ext-gen137 for next tiem it is some ext-gen145
let me know any other solution to test extjs applications
As the ids are dynamic, the tool unable find the exact object there scripts fail
eg:ext-gen137 for next tiem it is some ext-gen145
let me know any other solution to test extjs applications
Comments
What version of Sahi are you using? The latest Sahi should be ignoring those auto generated ids. Use any visible property, or _in or _near APIs to get to the element.
Regards,
Narayan
We are using version 3.
Yes I used _in and _near api, and I am happy with those. But how can get the elements in drop down lists in extjs applications.
If any methods are available to handle the extjs applications better using the tool, let me know Please..
Thanks,
Chandrasekhar.
Can you please point me to a sample page please where we can check?
Regards,
Narayan
I sent mail to you, Even I attached screen shot and suggested my view regarding to the indexes. Please verify.
Can any one help me in testing the extjs application.
Thanks,
Chandrasekhar.
can any one help me in selecting elements randomly in drop downs of extjs application.
Thanks,
Chandrasekhar.
I am also getting problem with extjs. Could you please help me here.
As the ids are dynamic, the tool unable find the exact object there scripts fail.
so unable to identify objects. All my applications are in EXTJS only.
Thanks,
Chandu
As narayana told using _near and _in is the solution to work with extjs applications, we have implemented that successfully.
My problem is to select the elements randomly from drop down list.. If you have any solution, let me know
Regards,
Chandrasekhar.
Not sure if we communicated this back to you:
Sahi now has a _setStrictVisibilityCheck API.
API: _setStrictVisibilityCheck(boolean)
Notes: _setStrictVisibilityCheck(true); makes Sahi ignore elements which are not visible.
_setStrictVisibilityCheck(false) makes sahi revert to original behavior of considering all elements in the DOM.
This API is useful in cases where widgets are dynamically created at multiple locations but only one of them is visible at any given time.
During recording Sahi can be forced into either mode by choosing “Strict Visibility On” or “Strict Visibility Off” from the “Other Actions:” dropdown. Make sure you “Append to Script” to add it to the recorded script
Download the latest version, and look at sahi/userdata/scripts/demo/sencha_combobox.sah . (Code is given below)
Regards
Narayan
The following is an updated example that may come handy to someone else.
Cheers,
marfil