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.
Problems with recorded script
Hi,
I downloaded this great tool to test it and to see if it can optimize our testing procedure.
I have two problems:
- I have some errors in the output that I can't explain
- Sometimes the script runs flawless and all the steps are handled but often when going from the second page to the third the website only refreshes the second page and won't go to the third page. We use jQuery in the website for those links.
I have recorded the script below
====================SCRIPT==================================
//page1
_setValue(_textbox("plateNumber"), "90slzb");
_click(_submit("Bereken premie"));
//page2
_setSelected(_select("edition"), "1.6 TRENDLINE Hand. 4-drs 75 kw");
_setValue(_textbox("postCode"), "1187pz");
_click(_radio("male"));
_setValue(_textbox("birthDateDay"), "01");
_setValue(_textbox("birthDateYear"), "1976");
_setSelected(_select("estimatedMileage"), "tussen 15.000 en 20.000");
_setSelected(_select("claimsFreeYears"), "4");
_click(_link("Bereken premie"));
//page3
_click(_radio("selectedOffer"));
_click(_checkbox("offers[0].guaranties[5].selected"));
_click(_label(4));
_click(_checkbox("offers[0].guaranties[6].selected"));
_click(_div("pageContainer"));
_click(_checkbox("offers[0].guaranties[7].selected"));
_click(_checkbox("offers[0].guaranties[8].selected"));
_click(_checkbox("offers[0].guaranties[10].selected"));
_setSelected(_select("tipoFrazio"), "kwartaal");
_click(_link("Verzekering aanvragen"));
======================END SCRIPT===============================
As you can see the process consists out of 3 pages
When I run this script I get the following output
========================OUTPUT================================
missing ; before statement (url)
_click(_label("Uw kenteken"));
_setValue(_textbox("plateNumber"), "90slzb");
_click(_submit("Bereken premie"));
missing ; before statement (url)
_setSelected(_select("edition"), "1.6 TRENDLINE Hand. 4-drs 75 kw");
_setValue(_textbox("postCode"), "1187pz");
_click(_radio("male"));
_setValue(_textbox("birthDateDay"), "01");
_setValue(_textbox("birthDateYear"), "1976");
_setSelected(_select("estimatedMileage"), "tussen 15.000 en 20.000");
_setSelected(_select("claimsFreeYears"), "4");
_click(_link("Bereken premie"));
missing ; before statement (url)
_click(_radio("selectedOffer"));
_click(_checkbox("offers[0].guaranties[5].selected"));
_click(_label(4));
_click(_checkbox("offers[0].guaranties[6].selected"));
_click(_div("pageContainer"));
_click(_checkbox("offers[0].guaranties[7].selected"));
_click(_checkbox("offers[0].guaranties[8].selected"));
_click(_checkbox("offers[0].guaranties[10].selected"));
_setSelected(_select("tipoFrazio"), "kwartaal");
_click(_link("Verzekering aanvragen"));
missing ; before statement (url)
--Stopped Playback: SUCCESS--
========================END OUTPUT================================
Hope someone can help.
Thanks
Erik
I downloaded this great tool to test it and to see if it can optimize our testing procedure.
I have two problems:
- I have some errors in the output that I can't explain
- Sometimes the script runs flawless and all the steps are handled but often when going from the second page to the third the website only refreshes the second page and won't go to the third page. We use jQuery in the website for those links.
I have recorded the script below
====================SCRIPT==================================
//page1
_setValue(_textbox("plateNumber"), "90slzb");
_click(_submit("Bereken premie"));
//page2
_setSelected(_select("edition"), "1.6 TRENDLINE Hand. 4-drs 75 kw");
_setValue(_textbox("postCode"), "1187pz");
_click(_radio("male"));
_setValue(_textbox("birthDateDay"), "01");
_setValue(_textbox("birthDateYear"), "1976");
_setSelected(_select("estimatedMileage"), "tussen 15.000 en 20.000");
_setSelected(_select("claimsFreeYears"), "4");
_click(_link("Bereken premie"));
//page3
_click(_radio("selectedOffer"));
_click(_checkbox("offers[0].guaranties[5].selected"));
_click(_label(4));
_click(_checkbox("offers[0].guaranties[6].selected"));
_click(_div("pageContainer"));
_click(_checkbox("offers[0].guaranties[7].selected"));
_click(_checkbox("offers[0].guaranties[8].selected"));
_click(_checkbox("offers[0].guaranties[10].selected"));
_setSelected(_select("tipoFrazio"), "kwartaal");
_click(_link("Verzekering aanvragen"));
======================END SCRIPT===============================
As you can see the process consists out of 3 pages
When I run this script I get the following output
========================OUTPUT================================
missing ; before statement (url)
_click(_label("Uw kenteken"));
_setValue(_textbox("plateNumber"), "90slzb");
_click(_submit("Bereken premie"));
missing ; before statement (url)
_setSelected(_select("edition"), "1.6 TRENDLINE Hand. 4-drs 75 kw");
_setValue(_textbox("postCode"), "1187pz");
_click(_radio("male"));
_setValue(_textbox("birthDateDay"), "01");
_setValue(_textbox("birthDateYear"), "1976");
_setSelected(_select("estimatedMileage"), "tussen 15.000 en 20.000");
_setSelected(_select("claimsFreeYears"), "4");
_click(_link("Bereken premie"));
missing ; before statement (url)
_click(_radio("selectedOffer"));
_click(_checkbox("offers[0].guaranties[5].selected"));
_click(_label(4));
_click(_checkbox("offers[0].guaranties[6].selected"));
_click(_div("pageContainer"));
_click(_checkbox("offers[0].guaranties[7].selected"));
_click(_checkbox("offers[0].guaranties[8].selected"));
_click(_checkbox("offers[0].guaranties[10].selected"));
_setSelected(_select("tipoFrazio"), "kwartaal");
_click(_link("Verzekering aanvragen"));
missing ; before statement (url)
--Stopped Playback: SUCCESS--
========================END OUTPUT================================
Hope someone can help.
Thanks
Erik
Comments
What version of Sahi are you on?
I use version V3 build 2010-06-11
Erik
The error you see
missing ; before statement (url)
is a javascript error in your application. (We can check if it happens because of Sahi's proxy)
I am available on Skype on narayanraman, we can sort this out right now if you want.
Regards,
Narayan
Thanks for your quick responses!!
The problem is that I don't have the abbility to run skype from my office pc. I have msn.
I think you are right that it has something to do with the proxy. Because when I run it normally and I look in firebug I don't see any errors in the javascript. I only tried it in Firefox 3.6.3.
Is there something I can change myself to solve this?
Thanks,
Erik