Skip to content

hrishi1096/browserstack_inception

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

Browserstack Inception

Technical assignment - BrowserStack Inception

bstack_inception.py

How to run the test ?

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.

What does it do?

  • 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

Some problems while running this with Browserstack remote driver

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

Ways to solve this problem

Jenkins integration

Jenkins-build

About

Technical assignment - BrowserStack Inception

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages