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.
onChange Event in dropdown... how to do in sahi?
I have been using sahi just recently. Its brilliant!!
I have one issue when trying to do my scripts. In my application, I have 1 dropdown list and when an onChange of that dropdown happens, it is supposed to trigger another dropdown field and populate them.
I am having trouble reproducing this in Sahi. When I do:
_setSelected(_select("myDropdownField"), "80");
Sahi does selecct the dropdown value for me as expected. however, this is not an onchange event which therefore means it doesn load up my next dropdown.
How can I achieve this in Sahi? Many thanks for your help.
I have one issue when trying to do my scripts. In my application, I have 1 dropdown list and when an onChange of that dropdown happens, it is supposed to trigger another dropdown field and populate them.
I am having trouble reproducing this in Sahi. When I do:
_setSelected(_select("myDropdownField"), "80");
Sahi does selecct the dropdown value for me as expected. however, this is not an onchange event which therefore means it doesn load up my next dropdown.
How can I achieve this in Sahi? Many thanks for your help.
Comments
We recently fixed this issue. We are sending you a link to an intermediate build via email.
Regards,
Narayan
That worked!.. I tried the new build you gave me. So far, no problems and it worked.
I will be doing further testing in this area in the coming days. If I notice any bug in this department, I will let you know.
Thank you!! :-)
Can i have the same build which you given for rambo, as i am also facing same issue. my email ID rachappa.bandi@gmail.com
In my application, i have 2 drop downs. Based on the first drop down selection, 2nd dropdown data(Listing) will be populated.
This scenario i recorded the the script in IE8.0
Below piece of code for shows the recorded above scenario.
// category is a 1st dropdown
_setSelected(_select("category"), "Accounting and Finance");
// after this 2nd dropdown is sub category.
_setSelected(_select("sub_category"), "Investing");
The script is failing at the "_setSelected(_select("sub_category"), "Investing");" because the 2nd dropdown listing is not populated (blank) in the dropdown, while running sahi scripts. But same script works with the FF 3.6.
I am wondering why this behavior. Is IE8.0 requires changes to the scripts??
Please suggest.
Are you using the latest version of Sahi? It has the fix for dropdown onchange bug on IE.
Regards,
Narayan
I am using latest build version which is sahi_20101103
Please provide me the solution for IE Version (as i am using latest version of sahi)
(Problem statement: I have 2 drop downs. Based on the first drop down selection, 2nd dropdown data(Listing) will be populated, this is not working in IE 8.0).
Waiting for your reply.
Can we do a desktop sharing session to see what is going on?
Regards,
Narayan
if not, try _select($Identifier).options($Number).text