Web

Description

  • Handles configuration for web apps

  • # Web
    webApp="http://demo.autonomx.io/admin/"
    web.browserType = CHROME
    web.capabilities.takesScreenshot = true
    chrome.options.start-fullscreen = false
    firefox.options.start-fullscreen = false
    chrome.pref.intl.accept_languages = language
    firefox.pref.intl.accept_languages = language
    web.element.highlight.enable = false
    web.element.highlight.waitDurationInSeconds = 0.1
    web.driverVersion = LATEST
    web.maximizeBrowser = false
    web.webdriverType = LOCAL_WEBDRIVER
    web.remote.server.url = localhost
    web.remote.server.port = 4444

Parameters

  • The format of the parameter is <web application name> = <url>

  • The web application name is the name of the module folder

Parameter

Description

<web application name>. eg. webApp

url for the web app

web.browserType

Options: CHROME, FIREFOX, INTERNET_EXPLORER, MICROSOFT_EDGE, Opera, CHROME_HEADLESS, FIREFOX_HEADLESS, SAFARI

web.capabilities.takeScreenshot

To add additional web desired capabilities, add capability after the prefix: "web.capabilities."

chrome.options.start-fullscreen

To add additional chrome options, add options after the prefix: "chrome.options."

  • eg. chrome.options.headless, which equals chrome option argument: --headless

  • For more arguments: https://peter.sh/experiments/chromium-command-line-switches/

firefox.options.start-fullscreen = false

To add additional firefox options, add options after the prefix: "firefox.options."

  • eg. firefox.options.headless, which equals chrome option argument: --headless

chrome.pref.intl.accept_languages

To add additional chrome preferences, add options after the prefix: "chrome.pref."

firefox.pref.intl.accept_languages

To add additional firefox preferences, add options after the prefix: "firefox.pref."

web.element.highlight.enable

Highlights click and send key field

web.element.highlight.waitDurationInSeconds

Duration is time in seconds to pause during highlight

web.driverVersion

Options: LATEST or version number. eg. 56.4

web.maximizeBrowser

Maximize the browser on start

web.webdriverType

Options: REMOTE_WEBDRIVER, LOCAL_WEBDRIVER

web.remote.server.url

URL for remote Selenium Grid Server Valid when REMOTE_WEBDRIVER is selected

web.remote.server.port

Port for remote Selenium Grid Server