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.
Test failing on clicking on dropdown in ext.js
Hi ,
I am creating a test case for my ext.js application using sahi.
Every things works fine in my test case except click event on combobox.
Error showing in controller is
_setValue(_textbox(0), "periasamyr");
_setValue(_password(0), "password");
_click(_div("LOGIN"));
_click(_span("Ma…"));
_click(_span("Employee Admin"));
_click(_div("x-trigger-index-0 x-form-trigger x-form-arrow-trigger x-form-trigger-last x-unselectable x-form-trigger-over x-form-arrow-trigger-over"));
--Stopped Playback: FAILURE--
Error that i am getting is in view logs as
_click(_div("x-trigger-index-0 x-form-trigger x-form-arrow-trigger x-form-trigger-last x-unselectable x-form-trigger-over x-form-arrow-trigger-over"));
Error: The parameter passed to _click was not found on the browser at May 22, 2012 5:44:04 PM
when i am checking that combox arrow html element using firebug then
<-- <div class="x-trigger-index-0 x-form-trigger x-form-arrow-trigger x-form-trigger-last x-unselectable" role="button" id="ext-gen1780" style="-webkit-user-select: none; "></div> --->
I am not able to figure out why it is not able to detect as the div class is same that they record in test case.
Could you please help on this as i am newbie on sahi.
Thanks,
Sudhanshu
I am creating a test case for my ext.js application using sahi.
Every things works fine in my test case except click event on combobox.
Error showing in controller is
_setValue(_textbox(0), "periasamyr");
_setValue(_password(0), "password");
_click(_div("LOGIN"));
_click(_span("Ma…"));
_click(_span("Employee Admin"));
_click(_div("x-trigger-index-0 x-form-trigger x-form-arrow-trigger x-form-trigger-last x-unselectable x-form-trigger-over x-form-arrow-trigger-over"));
--Stopped Playback: FAILURE--
Error that i am getting is in view logs as
_click(_div("x-trigger-index-0 x-form-trigger x-form-arrow-trigger x-form-trigger-last x-unselectable x-form-trigger-over x-form-arrow-trigger-over"));
Error: The parameter passed to _click was not found on the browser at May 22, 2012 5:44:04 PM
when i am checking that combox arrow html element using firebug then
<-- <div class="x-trigger-index-0 x-form-trigger x-form-arrow-trigger x-form-trigger-last x-unselectable" role="button" id="ext-gen1780" style="-webkit-user-select: none; "></div> --->
I am not able to figure out why it is not able to detect as the div class is same that they record in test case.
Could you please help on this as i am newbie on sahi.
Thanks,
Sudhanshu
Comments
OS :
windows 7 service pack 7
browser :
chrome 19.0.1084.52 m
shai :
Version :
V3.5
Build :
2011-07-19 (change log)
Just to add in earlier post.This sahi is stopping script on every combo box click.
Means it is not able to found combo box.
Kindly guide me if something doing wrong as this is urgent for POC purpose.
Thanks,
sudhanshu
You can use _near, _under , _in APIs to access one element with reference to another element.
You can try with
_click(_div(0,_near(_textbox("combo textbox id"))));
This might help you.
Thanks,
Regards,
Theeran.