SeleniumBase/console_scripts
Michael Mintz 22d24c328a Update generated content when using "seleniumbase mkdir [DIR_NAME]" 2018-08-07 22:21:25 -04:00
..
ReadMe.md Update example for "seleniumbase mkdir [DIR_NAME]" 2018-08-07 22:17:10 -04:00
__init__.py Add seleniumbase console scripts interface 2018-07-25 02:15:12 -04:00
run.py Update example for "seleniumbase mkdir [DIR_NAME]" 2018-08-07 22:17:10 -04:00
sb_install.py Update "seleniumbase install [BROWSER]" to include IE and Opera 2018-08-07 22:14:17 -04:00
sb_mkdir.py Update generated content when using "seleniumbase mkdir [DIR_NAME]" 2018-08-07 22:21:25 -04:00

ReadMe.md

Console Scripts

SeleniumBase console scripts help you get things done more easily, such as installing web drivers, creating a test directory with necessary configuration files, converting old Webdriver unittest scripts into SeleniumBase code, and using the Selenium Grid.

For running tests from the command line, use pytest with SeleniumBase.

install

  • Usage: seleniumbase install [DRIVER_NAME] (Drivers: chromedriver, geckodriver, edgedriver)

  • Example: seleniumbase install chromedriver

  • Output: Installs the specified webdriver. (chromedriver is required for Google Chrome automation) (geckodriver is required for Mozilla Firefox automation) (edgedriver is required for Microsoft Edge automation)

mkdir

  • Usage: seleniumbase mkdir [DIRECTORY_NAME]

  • Example: seleniumbase mkdir browser_tests

  • Output: Creates a new folder for running SeleniumBase scripts. The new folder contains default config files, sample tests for helping new users get started, and Python boilerplates for setting up customized test frameworks.

convert

  • Usage: seleniumbase convert [PYTHON_WEBDRIVER_UNITTEST_FILE]

  • Output: Converts a Selenium IDE exported WebDriver unittest file into a SeleniumBase file. Adds _SB to the new file name while keeping the original file intact. Works with Katalon Recorder scripts. See: http://www.katalon.com/automation-recorder

grid-hub

  • Usage: seleniumbase grid-hub {start|stop|restart}

  • Options: -v, --verbose (Increases verbosity of logging output.)

  • Output: Controls the Selenium Grid Hub server, which allows for running tests on multiple machines in parallel to speed up test runs and reduce the total time of test suite execution. You can start, restart, or stop the Grid Hub server.

grid-node

  • Usage: seleniumbase grid-node {start|stop|restart} [OPTIONS]

  • Options: --hub=HUB_IP (The Grid Hub IP Address to connect to.) (Default: 127.0.0.1) -v, --verbose (Increases verbosity of logging output.)

  • Output: Controls the Selenium Grid node, which serves as a worker machine for your Selenium Grid Hub server. You can start, restart, or stop the Grid node.