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 running in Sahi Dashboard

hitsurumehitsurume Members
edited November -1 in Sahi - Open Source
Problem: Clicking chrome icon, Chrome does not load.

The problem I see is in the configuration file where the options section:
<options>--user-data-dir=$userDir\browser\chrome\
profiles\sahi$threadNo --proxy-server=localhost:9999
--disable-popup-blocking</options>

There is no such browser\chrome\profiles for Sahi and I believe this is why Chrome is not opening at all. I can remove the options entirely, but then I have to manually change the proxy for Sahi to open.

How can I generate a profiles directory for sahi for chrome?

Comments

  • Please uninstall your Chrome and intall it again and set the browser path in browser_types.xml
  • I have uninstalled Chrome and Reinstalled it.

    The path is correct, its the Options that don't run chrome.

    What's odd is that my Work PC laptop is having this issue, but my home PC does not have any issues with Sahi.

    Both are running Win7 64bit and essentially has the same programs. Chrome, Java 64bit and Sahi. My work PC will not popuplate my Sahi/userdata/browser folder for chrome. My home computer has a chrome folder in Sahi/userdata/browser/Chrome/Profiles etc.

    I have tried taking my Home PC's Chrome profile folder and putting it into my work PC but its still not launching chrome.

    Anyone else have any ideas?
  • Hi hitsurume,

    Have a look at :

    http://sahi.co.in/forums/viewtopic.php?id=3257

    http://sahi.co.in/forums/viewtopic.php?id=2373

    http://sahi.co.in/w/browser-types-xml

    Also, could you post the contents of <browserType> for chrome browser by clicking on configure on the Dashboard.

    Regards
    Smrithi
  • This is my browser xml config for chrome:

    <browserType>
    <name>chrome</name>
    <displayName>Chrome</displayName>
    <icon>chrome.png</icon>
    <path>$LOCALAPPDATA\Google\Chrome\Application\chrome.exe</path>
    <options>--user-data-dir=$userDir\browser\chrome\profiles\sahi$threadNo --proxy-server=localhost:9999 --disable-popup-blocking</options>
    <processName>chrome.exe</processName>
    <capacity>5</capacity>
    </browserType>


    As i've said before, this seems to be an issue with Sahi not creating a profile for Chrome to create an isolated proxy.

    If I delete the contents in between the <options></options> Chrome WILL OPEN but will not allow me to open up Sahi Dashboard because the proxy is not preconfigured.

    I have looked through all the posts and have not found any issues yet.

    Again, i'm running Windows 7 64bit with default options for all installations of chrome, java and sahi.
  • Hi,

    Has this issue been resolved?
    I am currently facing the same problem in W XP, and same <browserType>

    Thanks,
  • Hi Alex,
    Please refer to the links attached by Smrithi in the discussion. If that does not help, please let us know.
  • Another problem could be that some files in the chrome profile are locked. Its pretty save to delete all sahi* folders in $userDir/browser/chrome/profiles and try again. The folders should be recreated when starting chrome from dashboard.
Sign In or Register to comment.