A sample to run py.test over BrowserStack Automate. Setup pip install pytest Execution To run the tests, set correct environment variables or add you credentials to google-search-browserstack.py and execute: py.test google-search-browserstack.py