diff --git a/tests/local-test.py b/tests/local-test.py index 5271b2b..2478a77 100644 --- a/tests/local-test.py +++ b/tests/local-test.py @@ -3,6 +3,7 @@ from selenium.webdriver.chrome.options import Options as ChromeOptions options = ChromeOptions() +options.set_capability('sessionName', 'BStack Local Test') # The webdriver management will be handled by the browserstack-sdk # so this will be overridden and tests will run browserstack - diff --git a/tests/test.py b/tests/test.py index 0426dba..c242b14 100644 --- a/tests/test.py +++ b/tests/test.py @@ -4,11 +4,14 @@ from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.common.by import By from selenium.common.exceptions import NoSuchElementException +from selenium.webdriver.chrome.options import Options as ChromeOptions # The webdriver management will be handled by the browserstack-sdk # so this will be overridden and tests will run browserstack - # without any changes to the test files! -driver = webdriver.Chrome() +options = ChromeOptions() +options.set_capability('sessionName', 'BStack Sample Test') +driver = webdriver.Chrome(options=options) try: driver.get('https://bstackdemo.com/')