Configuring browsers

Configuring default browser

By default Galen uses Firefox browser but you can configure it to use any other browser in case it is not explicitly declared in your test suite. You can do it using this property in your config file

galen.default.browser=chrome

Here is the list of all supported browsers: firefox, chrome, ie, phantomjs, edge

Chrome

In case you want to run tests in Chrome you first need to install a ChromeDriver. Once that is done you need to provide a path to your local chromedriver installation in a command line every time you run a test:

galen test mytest01.test -Dwebdriver.chrome.driver=/opt/chromedriver/chromedriver

PhantomJs

Once you download and install PhantomJs from official website you have to specify the path to its binary in a command line like this:

galen test mytest01.test -Dphantomjs.binary.path=/opt/phantomjs/bin/phantomjs

Comments

We are moving all the discussions to Google Groups. From this moment, if you have problems with your test code or some issues with installation, please ask your questions in https://groups.google.com/forum/#!forum/galen-framework. This way more people will be able to help you.

comments powered by Disqus