Run python tests on browserstack using the SDK.
python3 should be installed
- Clone the repo
git clone -b sdk https://github.com/browserstack/python-selenium-browserstack.git
- Install packages through requirements.txt
pip3 install -r requirements.txt
- 
Add your BrowserStack username and access key in the browserstack.ymlconfig fle.
- 
You can also export them as environment variables, BROWSERSTACK_USERNAMEandBROWSERSTACK_ACCESS_KEY:export BROWSERSTACK_USERNAME=<browserstack-username> export BROWSERSTACK_ACCESS_KEY=<browserstack-access-key>setx BROWSERSTACK_USERNAME=<browserstack-username> setx BROWSERSTACK_ACCESS_KEY=<browserstack-access-key>
- Run sample test:
- To run the sample test across platforms defined in the browserstack.ymlfile, run:browserstack-sdk ./tests/test.py
 
- To run the sample test across platforms defined in the 
- Run tests on locally hosted website:
- To run the local test across platforms defined in the browserstack.ymlfile, run:browserstack-sdk ./tests/local-test.py
 
- To run the local test across platforms defined in the