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 was not found

miguelangelrealmiguelangelreal Members
edited November -1 in Sahi - Open Source
I can't set up to record Sahi Google Chrome

please, you can tell me the exact directory?

Thanks

Comments

  • Hi miguelangelreal,

    Could you please be more specific about your issue?

    Regards
    Sumitra
  • Sorry

    Yo I have installed all browsers including Google Chrome, but in the menu to choose on which I have to use is not listed on Chrome.

    I have checked the settings and enter the directory where you installed, but still not working.
  • Hi miguelangelreal,

    Click on configure in Sahi Dashboard and mention the path of Google Chrome in BrowserTypes and save it . Restart Sahi.

    Regards
    Sumitra
  • I have this and doesn't work:

    <browserType>
    <name>chrome</name>
    <displayName>Chrome</displayName>
    <icon>chrome.png</icon>
    <path>C:\Documents and Settings\x57083re\Configuracion local\Datos de programa\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>
  • I still have not resolved the question of the other post: "Problem with local proxy"

    Please
  • Hi,

    Kindly use this:

    <path>C:\Documents and Settings\\x57083re\\Configuracion local\\Datos de programa\\Google\\Chrome\\Application\\chrome.exe</path>

    instead of :

    <path>C:\Documents and Settings\x57083re\Configuracion local\Datos de programa\Google\Chrome\Application\chrome.exe</path>

    Regards
    Sumitra
  • I've done that and still do not see Google Chrome

    Sorry

    Please try to answer the question from another post, is more important
  • Hi miguelangelreal,

    Kindly try with this:

    <path>"C:\\Documents and Settings\\x57083re\\Configuracion local\\Datos de programa\\Google\\Chrome\\Application\\chrome.exe"</path>

    And even try using Command Prompt.

    Regards
    Sumitra
  • Still not working
  • Hi miguelangelreal,

    Can you post the output on the Sahi console?

    Regards
    Sumitra
  • abuenoabueno Members
    Hi, I have same problem than miguelangelreal, i known whats the problem, but no how to fix it.

    Thats because we are from spain, and path contains an "ó" an o with an accent, this is my patch

    <path>C:\Documents and Settings\abueno\Configuración local\Datos de programa\Google\Chrome\Application\chrome.exe</path>

    with this one when you start sahi gives an error, thats because of the ó of "Configuración"

    but if you try using only o instead of ó:

    <path>C:\Documents and Settings\abueno\Configuracion local\Datos de programa\Google\Chrome\Application\chrome.exe</path>

    doesnt display chrome in dashboard because it cant find it

    how can we solve it?

    thanks
  • SumitraSumitra Members
    Hi abueno,

    Adding accent should be considered a valid path for Sahi.

    Can you post the output of the Sahi console?

    Regards
    Sumitra
  • abuenoabueno Members
    edited July 2011
    this is the browser_types.xml

    <browserType>
    <name>chrome</name>
    <displayName>Chrome</displayName>
    <icon>chrome.png</icon>
    <path>C:\Documents and Settings\abueno\Configuración local\Datos de programa\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>

    Then I restart Sahi Dashboard and where browsers are displayed say this:¨

    No usable browsers found in browser_types.xml
    Click on the Configure link below to add/edit browsers

    If you go another time to configure, yo can see this: Configuraci�n

    <browserType>
    <name>chrome</name>
    <displayName>Chrome</displayName>
    <icon>chrome.png</icon>
    <path>C:\Documents and Settings\abueno\Configuraci�n local\Datos de programa\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>



    And this is the CMD output:


    C:\Documents and Settings\abueno\sahi\userdata\bin>SET SAHI_HOME=..\..

    C:\Documents and Settings\abueno\sahi\userdata\bin>SET SAHI_USERDATA_DIR=..

    C:\Documents and Settings\abueno\sahi\userdata\bin>SET SAHI_EXT_CLASS_PATH=

    C:\Documents and Settings\abueno\sahi\userdata\bin>CALL ..\..\bin\dashboard.bat

    SAHI_HOME: ..\..
    SAHI_USERDATA_DIR: ..
    SAHI_EXT_CLASS_PATH:
    Sahi properties file = C:\Documents and Settings\abueno\sahi\config\sahi.propert
    ies
    Sahi user properties file = C:\Documents and Settings\abueno\sahi\userdata\confi
    g\userdata.properties
    com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Inval
    id byte 2 of 4-byte UTF-8 sequence.
    at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.invalidByte(Unk
    nown Source)
    at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.read(Unknown So
    urce)
    at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load(Unknown
    Source)
    at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.skipChar(Unk
    nown Source)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
    l$FragmentContentDriver.next(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(U
    nknown Source)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
    l.scanDocument(Unknown Source)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(U
    nknown Source)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(U
    nknown Source)
    at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown So
    urce)
    at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown So
    urce)
    at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unk
    nown Source)
    at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
    at net.sf.sahi.util.BrowserTypesLoader.loadBrowserTypes(BrowserTypesLoad
    er.java:33)
    at net.sf.sahi.util.BrowserTypesLoader.<clinit>(BrowserTypesLoader.java:
    26)
    at net.sf.sahi.ui.Dashboard.getBrowserButtons(Dashboard.java:152)
    at net.sf.sahi.ui.Dashboard.buildUI(Dashboard.java:82)
    at net.sf.sahi.ui.Dashboard.<init>(Dashboard.java:64)
    at net.sf.sahi.ui.Dashboard.main(Dashboard.java:258)
    >>>> Sahi started. Listening on port: 9999
    >>>> Configure your browser to use this server and port as its proxy
    >>>> Browse any page and CTRL-ALT-DblClick on the page to bring up the Sahi Cont
    roller
    Reading browser types from: C:\Documents and Settings\abueno\sahi\userdata\confi
    g\browser_types.xml
  • Hi Abueno,

    You're right. Looks like there is a problem when you configure browser_types.xml from the dashboard.

    For the time being, open sahi/userdata/config/browser_types.xml with any editor and modify the path to Chrome. Restart Sahi.
    Check if this solves the problem.

    Regards,
    dkulkarni
  • abuenoabueno Members
    Hi again,

    I opened with notepad++ and configured with the ó, but when I open dashboard I have the same problem, i go to configure an another time I see �, with notepad I see ó.

    Any idea?
  • abuenoabueno Members
    I have done it, look:

    You have to open sahi/userdata/config/browser_types.xml with windows notepad, and save as: use same name and type of file, but in codification use UTF-8 instead of ANSI.

    Now with UTF-8 works perfect with the ó.

    Thanks for the program.
This discussion has been closed.