Checking
To check a web application against a specification, use the
quickstrom check
command. Supply the module name of the
specification along with the origin URL.
$ quickstrom check \
spec-module-name \
http://example.com
The origin can also be a local file:
$ quickstrom check \
spec-module-name \
/path/to/my/webapp.html
Cross-Browser Testing
Quickstrom currently supports these browsers:
Firefox (
firefox
)Chrome (
chrome
)Microsoft Edge (
edge
)Safari (
safari
)
Unless specified, the default browser used is Firefox. To override,
use the --browser
option and set the appropriate browser when
running the check
command:
$ quickstrom check \
--browser=chrome \
... # more options
You can also override which binary it uses when launching the browser:
$ quickstrom check \
--browser=chrome \
--browser-binary=/usr/bin/google-chrome-stable \
... # more options
Remote WebDriver Support
The remote WebDriver mode is useful for services like SauceLabs or BrowserStack, where you pass in the driver URL, and possibly extra desired capabilities to control the environment:
$ capabilities=$(cat <<-END
{
"browserVersion": "102.0",
...
}
END
)
$ quickstrom check \
--browser=chrome \
--remote-webdriver-url="https://webdriver.example.com:443/wd/hub" \
--extra-desired-capabilities="$capabilities" \
... # more options