Unofficial Browserstack integration for Django
The full documentation is at https://django-browserstack-tools.readthedocs.org.
Install django-browserstack-tools:
pip install django-browserstack-tools
Then use it in a project:
from browserstack_tools.testcases import BrowserStackLiveServerTestCase
class SeleniumTest(BrowserStackLiveServerTestCase):
desired_capabilities = {'browser': 'Chrome',
'browser_version': '33.0',
'os': 'Windows',
'os_version': '8.1',
'resolution': '1680x1050'}
def test_login(self):
self.selenium.get('%s%s' % (self.live_server_url, reverse('home')))
self.assertIn("Hello", self.selenium.title)
- Create Selenium Test using BrowserStack in Django