18 January 2026:


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.

Chrome not working correctly

devonhdevonh Members
edited May 2013 in Sahi Pro
Hi,

I've just downloaded a trial version of Sahi Pro. When I click on the Chrome Icon in the Sahi Dashboard nothing happens. If I remove the below options line, Chrome opens, however because the proxy-server info isn't passed in the page doesn't load.

Could you please advise what the alternative option could be for the below folder as it doesn't exist on my machine:
<options>--user-data-dir=$userDir\browser\chrome\profiles\sahi$threadNo

I am using Windows 7 Service Pack 1 and have administration access.

Below are my Chrome browser settings.

Any help would be greatly appreciated.

Thanks
Devon


<browserType>
<name>chrome</name>
<displayName>Chrome</displayName>
<icon>chrome.png</icon>
<path>c:\Program Files (x86)\Google\Chrome\Application\chrome.exe</path>
<options>--user-data-dir=$userDir\browser\chrome\profiles\sahi$threadNo --proxy-server=localhost:9999 --disable-popup-blocking --always-authorize-plugins</options>
<processName>chrome.exe</processName>
<capacity>5</capacity>
</browserType>

Answers

  • Hi devon,
    If you're using an older version of Sahi, I would suggest you to move to 5.0.2 which is the current latest released build.

    $userDir refers to the sahi/userdata/ folder which will exist where you have installed Sahi on your system.

    If you face the same issue even after using 5.0.2, please let us know what message is shown on your Sahi console.

    Regards,
    Pratyush
  • devonhdevonh Members
    Hi Pratyush,

    I have version 5.0.2 installed. Still have the same problem. The console message is as follows:

    Jun 03, 2013 8:14:09 AM net.sf.sahi.text.ProcessHelper execute
    INFO: "c:\Program Files (x86)\Google\Chrome\Application\chrome.exe" "http://sahi.example.com/_s_/dyn/Driver_initialized?browserType=chrome";
    Jun 03, 2013 8:14:14 AM net.sf.sahi.test.ProcessHelper$PIDGatherer run
    INFO: PIDs: [5592]; 5292 ms

    Thanks
    Devon
  • Hey Devon,
    Can you please try the following steps tell me what happens?
    1) Open command prompt.
    2) Go to your installed folder of chrome.exe.
    2) Enter the following command:
    chrome.exe --user-data-dir=<path_to_your_sahi>\userdata\browser\chrome\profiles\sahi$threadNo --proxy-server=localhost:9999 --disable-popup-blocking --always-authorize-plugins --incognito http://sahi.example.com/_s_/dyn/Driver_initialized?browserType=chrome

    Here, <path_to_your_sahi> is where sahi is installed on your system.
    eg. D:/sahi/sahi_pro

    On execution of this command, the Sahi start page should come up with the Sahi proxy.
    Please let me know what happens.
  • devonhdevonh Members
    Thanks for the information.

    I entered the above command from the Chrome\Application folder. When I hit enter nothing happened.

    If I just run chrome.exe, the chrome browser opens.

    Thanks
    Devon
  • Hello devonh,

    Is this resolved? and how, having same issue?
    Can you share please?

    Thanks,
    Sachin
  • My chrome updated today and doesn't seem to want to run any scripts.
Sign In or Register to comment.