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.

how to get rid of Didn't shutdown properly in browser ?

shahparthshahparth Members
edited November -1 in Sahi - Open Source
Dear All,

I am in linux.

I am running the script using the following command:

/home/parth/sahi/userdata/bin/testrunner.sh /home/parth/sahi/userdata/scripts/cyberoamcmd.sah http://10.20.20.227/ chrome

In crome I got the message that "Google Chrome Didn't shutdown properly previously, and got the Restore Button" and in between test case browser is getting closed.

Is there any method to close the browser properly ?

guide me for the same.

Comments

  • Hi shahparth,

    Can you post the <browser Type> for Google Chrome by clicking Configure on the Dashboard.

    Regards
    Sumitra
  • Dear Sumitra,

    As per ur request I have mentioned the browser Types Below:


    <browserTypes>
    <browserType>
    <name>firefox</name>
    <displayName>Firefox</displayName>
    <icon>firefox.png</icon>
    <path>/usr/bin/firefox</path>
    <options>-profile "$userDir/browser/ff/profiles/sahi$threadNo" -no-remote</options>
    <processName>firefox</processName>
    <capacity>5</capacity>
    </browserType>

    <browserType>
    <name>chrome</name>
    <displayName>Chrome</displayName>
    <icon>chrome.png</icon>
    <path>/usr/bin/google-chrome</path>
    <options>--user-data-dir=$userDir/browser/chrome/profiles/sahi$threadNo --proxy-server=localhost:9999 --disable-popup-blocking</options>
    <processName>chrome</processName>
    <capacity>5</capacity>
    </browserType>
    </browserTypes>


    With Regards,
    Parth Shah.
  • Hi Shahparth,

    Kindly use the following <browser Type> for Chrome.
         <browserType> 
            <name>chrome</name>  
            <displayName>Chrome</displayName>
            <icon>chrome.png</icon>
            <path>/usr/bin/google-chrome</path>  
            <options>--user-data-dir=$userDir/browser/chrome/profiles/sahi$threadNo --proxy-server=localhost:9999 --disable-popup-blocking --incognito</options>  
            <processName>chrome</processName> 
            <capacity>5</capacity>  
        </browserType>    
    </browserTypes>
    

    Restart Sahi. Check if it works.

    Regards
    Sumitra
Sign In or Register to comment.