From 1d5910e3874c5e256b369ea2fbe442efd9fd707c Mon Sep 17 00:00:00 2001 From: Karan Shah <64479353+karanshah-browserstack@users.noreply.github.com> Date: Tue, 20 Jun 2023 12:21:12 +0530 Subject: [PATCH 1/2] Revert "small fix" This reverts commit 0f53e6c281c949749fc22955799f9cb8973f1f45. --- tests/local-test.py | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/local-test.py b/tests/local-test.py index 2478a77..0a324b6 100644 --- a/tests/local-test.py +++ b/tests/local-test.py @@ -4,7 +4,6 @@ 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 - # without any changes to the test files! From 328942bf380ca12a573e201e0b8657fdccf99c41 Mon Sep 17 00:00:00 2001 From: Karan Shah <64479353+karanshah-browserstack@users.noreply.github.com> Date: Tue, 20 Jun 2023 12:21:12 +0530 Subject: [PATCH 2/2] Revert "Added sessionName" This reverts commit 52866f8573feddcd4385ed7a00190c33674eb78e. --- tests/local-test.py | 2 +- tests/test.py | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/tests/local-test.py b/tests/local-test.py index 0a324b6..5271b2b 100644 --- a/tests/local-test.py +++ b/tests/local-test.py @@ -3,7 +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 - # without any changes to the test files! diff --git a/tests/test.py b/tests/test.py index c242b14..0426dba 100644 --- a/tests/test.py +++ b/tests/test.py @@ -4,14 +4,11 @@ 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! -options = ChromeOptions() -options.set_capability('sessionName', 'BStack Sample Test') -driver = webdriver.Chrome(options=options) +driver = webdriver.Chrome() try: driver.get('https://bstackdemo.com/')