Technical assignment - BrowserStack Inception
bstack_inception.py
pytest -n 1 bstack_inception.py
The -n 1 flag is to run one one test at a time because this uses Browserstack live
and multiple live sessions cannot be launched at once from the same account.
The -n flag is available because of the python library pytest-xdist.
- visit google.com
- search for "Browserstack"
- click on the correct entry from the google search results to visit Browserstack.com
- click on Sign in, thus, landing on the sign in page
- enter the email id and password and click submit
- from the live dashboard now, go to windows 11, and launch a live session with chrome 96
- inside the live session, there appears a banner for 'self signed certificate', click 'got it'
- search for browserstack on google inside the live session
- finally, stop the live session
The steps mentioned above are automated by bstack_inception.py
Visiting google.com fires up google in Dutch, because of which some element searches fail.
for eg. input[aria-label="Search"] is actually input[aria-label="Zock"] (or something like that)
Dutch.
Can be seen here - failure_due_to_location
-
Using Browserstack local testing with the
--force-localflag. Force-local-session -
Using
"browserstack.geoLocation": "IE"in capabilitites. geolocation-session