The "domain" of the page to test.
The "domain" of the page to test.
You need to specify a full qualified url without path here.
Example:
val domain = "https://my.testserver.com:12345"
the string should not end with slash
The path of the page represented by this page object.
The path of the page represented by this page object. That is the path from the domain to the page.
Example:
val url = "/index.html"
the string should start with slash
The URL of the page represented by this page object.
The URL of the page represented by this page object.
Trait to separate the domain and the path of the page to test.
You can write your own implementation of
domain
and query e.g. the system environment to decide if a test server url or a local development url should be returned.Example:
trait GoogleDomainPage extends DomainPage { val domain = sys.env.getOrElse("DEV_SERVER_PREFIX", "https://www.google.com") }