Skip to content
/ .. / .. /
Selenium Configuration





Selenium Configuration

The Selenium configuration must be set to test websites using the UI Language. For testing apps, one of the Selenium configuration or Appium must be used.

Syntax

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
Selenium = {
    iePath = <String>
    chromePath = <String>
    chromeOptions = [<String>, ...]
    firefoxPath = <String>
    fireFoxOptions = [<String>, ...]
    firefoxProfilePath = <String>
    apksPath = <String>
    edgePath = <String>
    edgeOptions = [<String>, ...]
}

Parameters

  • iePath - The path to the Selenium driver for Internet Explorer

    • This may be in the intaQt configuration or a project's configuration file
  • chromePath - The path to the Selenium ChromeDriver

    • This may be in the intaQt configuration or a project's configuration file
  • chromeOptions (Optional) - A comma-separated list of Chrome browser options, for example, "incognito"

  • firefoxPath - The path to the Firefox GeckoDriver

  • firefoxOptions (Optional) - A comma-separated list of Firefox browser options, for example, "-private"

  • firefoxProfilePath (Optional) - The path to the Firefox profile

    • The custom profile path can be obtained in the Firefox Profile Manager
  • apksPath - The path to where APKs (Android application packages) are stored

    • If the path is reconfigured while running intaQt, the Selendroid service will shut down and relaunched on demand
  • edgePath - The path to the Selenium driver for Edge

  • edgeOptions (Optional) - A comma-separated list of Edge browser options

Configuration Examples

Global Path to Geckodriver on an Ubuntu Operating System Example

1
2
3
4
Selenium = {
    firefoxPath = "/home/User/webdrivers/GeckoDriver"
    firefoxOptions = ["-private"]
}

Windows with ChromeDriver Example As shown in the example below, the ChromeDriver's file path is set with forward slash characters. The associated global Windows folder path evaluates to C:\QiTASC\webdrivers\.

1
2
3
4
Selenium = {
    chromePath = "/QitASC/webdrivers/chromedriver.exe"
    chromeOptions = ["incognito", "start-maximized"]
}

Note: If using a Windows machine, the global path can be defined by using double back slash characters, for example, firefoxPath : "C:\\QitASC\\webdrivers\\GeckoDriver.exe". This procedure is not recommended by intaQt.

Mac OS with GeckoDriver and ChromeDriver Example

1
2
3
4
5
6
Selenium = {
    firefoxPath = "/Users/testteam/QiTASC/GeckoDriver"
    firefoxOptions = ["-private"]
    chromePath = "/Users/testteam/QiTASC/chromedriver"
    chromeOptions = ["incognito", "start-maximized"]
}

Error Messages

Note: If an incorrect path is in the Selenium configuration file, intaQt will not start and an error message will be created in the QiTASC/intaqt/logs/intaqt.log file.

intaqt.log Error Message Example

1
2
3
2017-01-17 00:00:00,004 ERROR | main | intaqt.a                      | configure error
java.lang.RuntimeException:
  * Selenium.firefoxPath: file doesnt exist "/home/User/WrongDirectory/TypoGeckoDriver"