In opposite to scala's DynamicVariable this class is using a ThreadLocal.
Because the scala test assert macros, when using DiagrammedAssertions, generate code that don't throw AssertionError's, this object is used to detect the cases like this.
Support for running multiple browsers in parallel.
OS detection
Helper object to check how long a code block needs to execute
Support for running multiple browsers in parallel.
Can be set by environment variable or with typesafe config under the path org.pageobject.<name>-limit
Overall test limit: Use TEST_LIMIT=-1 to allow unlimited parallel test runs The default TEST_LIMIT is 1, use TEST_LIMIT=4 to allow 4 tests to be executed at the same time.
Browser test limit: When not configured, a limit of 1 is assumed if the browser driver is configured. Use 0 to disable a Browser. Use -1 to allow an unlimited count for the given Browser type.
Example: FIREFOX_LIMIT=0 ->Do not start Firefox tests
Example: FIREFOX_LIMIT=3 CHROME_LIMIT=5 TEST_LIMIT=5 -> Start up to 5 tests, but no more then 3 Firefox Tests at the same time.
Only Browsers that are supported for the platform where the tests are executed will be started. E.g. you don't need to disable Internet Explorer or Safari on Linux