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.

Testing with multiple browsers

jmarcjmarc Members
edited January 2013 in Sahi - Open Source
Hi,

How to automate running Sahi scripts under multiple browsers, including different version of a same browser.
For example, I have to run my Sahi scripts under Safari, FireFox, Chrome, IE 10, IE9, IE8, IE7
Can anyone help me to do this, particularly how to handle multiple versions of IE ?
Thanks.

Regards,
Jean-Marc

Answers

  • Pratyush_TytoPratyush_Tyto Members
    edited June 2013
    Hi jmarc,
    you can access the file :
    sahi_pro/userdata/config/browser_types.xml
    

    and add as many browsertype tags as you want. In other words, you will be able to launch multiple versions of same browsertype(chrome,ie etc) through the dashboard.

    eg. you might have something like this for IE8 in your browser_types.xml file:
    <browserType> 
    	<name>ie</name>  
    	<displayName>IE</displayName>
    	<icon>ie.png</icon>
    	<path>$ProgramFiles\Internet Explorer\iexplore.exe</path>  
    	<options></options>  
    	<processName>iexplore.exe</processName>
    	<useSystemProxy>true</useSystemProxy> 
    	<capacity>5</capacity>  
    </browserType>	
    

    you can add another one for IE7 that will go something like:
    <browserType> 
    	<name>ie7</name>  
    	<displayName>IE 7</displayName>
    	<icon>ie.png</icon>
    	<path>path_to_ie7_exe_file</path>  
    	<options></options>  
    	<processName>iexplore.exe</processName>
    	<useSystemProxy>true</useSystemProxy> 
    	<capacity>5</capacity>  
    </browserType>
    

    You can also play scripts on IE 7 using testrunner now, using the keyword "ie7".

    Regards.
Sign In or Register to comment.