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.
Page I access is in script tag, not able recording application fully!!
Hi,
I'm getting following error which says to create certificates. My question is why it's asking me create certi... though our application is not using HTPPS/SSL protocol. Only thing is, page i'm accessing is in script tag.
Please can any one tell me what will be the reason? Is there any setting which disable https/ssl call?
Error in proxy console....
HTTPS/SSL START
Sahi is trying to create a certificate for domain:
urs.microsoft.com
If you are unable to connect to this HTTPS site, do the following:
Check on your filesystem to see if a file like
C:\Documents and Settings\shivaningappa.l\Desktop\sahi\sahi\certs\urs_microsoft_com
has been created.
If not, then create it by running the command below on a command prompt.
Note that you need 'keytool' to be in your path.
keytool comes with the JDK by default and is present in <JAVA_HOME>/bin.
Once you create that file, SSL/HTTPS should work properly for that site.
COMMAND START
C:/Program Files/Java/jre1.6.0_07/bin -genkey -alias urs.microsoft.com -keypass sahipassword -storepass sahipa
ssword -keyalg RSA -keystore C:\Documents and Settings\shivaningappa.l\Desktop\sahi\sahi\certs\urs_microsoft_c
om -dname "CN=urs.microsoft.com, OU=Sahi, O=Sahi, L=Bangalore, S=Karnataka, C=IN"
COMMAND END
I'm getting following error which says to create certificates. My question is why it's asking me create certi... though our application is not using HTPPS/SSL protocol. Only thing is, page i'm accessing is in script tag.
Please can any one tell me what will be the reason? Is there any setting which disable https/ssl call?
Error in proxy console....
HTTPS/SSL START
Sahi is trying to create a certificate for domain:
urs.microsoft.com
If you are unable to connect to this HTTPS site, do the following:
Check on your filesystem to see if a file like
C:\Documents and Settings\shivaningappa.l\Desktop\sahi\sahi\certs\urs_microsoft_com
has been created.
If not, then create it by running the command below on a command prompt.
Note that you need 'keytool' to be in your path.
keytool comes with the JDK by default and is present in <JAVA_HOME>/bin.
Once you create that file, SSL/HTTPS should work properly for that site.
COMMAND START
C:/Program Files/Java/jre1.6.0_07/bin -genkey -alias urs.microsoft.com -keypass sahipassword -storepass sahipa
ssword -keyalg RSA -keystore C:\Documents and Settings\shivaningappa.l\Desktop\sahi\sahi\certs\urs_microsoft_c
om -dname "CN=urs.microsoft.com, OU=Sahi, O=Sahi, L=Bangalore, S=Karnataka, C=IN"
COMMAND END
Comments
Test environment is Windows XP, IE7
If you are testing only an http site, configure the browser to use the proxy only for http sites. (Leave the Address and Port fields blank in the proxy server settings, click on Advanced, and enter localhost 9999 only for the type http. Leave the others blank).
Now I'm not getting above said error.
But I'm getting some other problem, Please take a look at below sahi script,
//Login to application.
_setValue(_textbox("loginName"), "ssalyan");
_setValue(_password("userPassword"), "321");
_click(_submit("Submit"));
_click(_spandiv("HM_Item1_4_3"));
_setSelected(_select("complex_type"), "Function Based");
_click(_image("Select Data Series"));
_wait(60000);
//Pop-up which is in script tag, has lot of data, thats why taking lot of time.
_popup("Data_Series_Library")._setSelected(_select("frequency_period"), "Weekly");
_popup("Data_Series_Library")._click(_submit("Search"));
_popup("Data_Series_Library")._click(_image(9));
// This step is repeating 2/3 times while playback then failing: Unspecified error.No trace available Click for //browser script [object JavaObject]
//After clicking on image 9, we'll get below two checkboxes but sahi is unable to detect.
_popup("Data_Series_Library")._click(_checkbox("check"));
_popup("Data_Series_Library")._click(_checkbox("check[1]"));
_popup("Data_Series_Library")._click(_button("Submit"));
Note1: Image 9 is some times recognised as Image 17 while playback, don't know what is exact reason
Note2: On pop-up if I run step by step it works fine.
Can you please tell me why it's not able to detect two checkboxes under "Image 9" element & why it's clicking many times on "Image 9" ?
The problem definitely seems to be that _image was not found. If you use the latest build from "sahi unstable nightly" package you will be able to identify the image by its image file name or by using _near().
The way to use _near is _image(0, _near(_link("nearest link"))). Replace _link("nearest link") with what ever element is closest to your image.
A stable build is coming in the next week.
Regards,
Narayan
Thanks for quick response, I'm using 2009-03-04 version of sahi. It seems to be not supporting _near() API. I tried this API, it's not working. I think we need wait for stable version.
Can you please provide some way so that I can attach screen-shot of application.
--Loni