Skip to content
This repository was archived by the owner on Dec 19, 2023. It is now read-only.

Latest commit

 

History

History
46 lines (32 loc) · 1.32 KB

File metadata and controls

46 lines (32 loc) · 1.32 KB

automate-python-samples

Documentation for writing Automate test scripts in Python.

Environment variables

To test varios sample repositories with ease, it is recommended to setup BROWSERSTACK_USERNAME and BROWSERSTACK_ACCESS_KEY environment variables. If you don't wish you can directly edit the samples and add add credentials in them.

Install Python

For Windows:

For Mac and Linux:

  • Run python --version to see what python version is installed and make sure it is 2.5.X and above.
  • Mac OS, Ubuntu and many flavors of linux come with pre-installed python.

Install Selenium

For Unix:

sudo easy_install selenium

For Windows:

easy_install selenium

If you prefer pip, then use the following command:

sudo pip install selenium

If pip is not installed, you can install it using:

sudo easy_install pip

For Python frameworks samples and integrations with BrowserStack, refer to their individual repositories -