Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion tests/AutoscalingTests/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,11 @@ def get_pod_count():
def create_session(browser_name):
options = BROWSER[browser_name]
options.set_capability("platformName", "Linux")
return webdriver.Remote(
driver = webdriver.Remote(
command_executor=CLIENT_CONFIG.remote_server_addr, options=options, client_config=CLIENT_CONFIG
)
print(f"Session created: {driver.session_id} ({browser_name})")
return driver


def wait_for_count_matches(sessions, timeout=10, interval=5):
Expand Down
10 changes: 5 additions & 5 deletions tests/SeleniumTests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
TEST_MULTIPLE_PLATFORMS = os.environ.get('TEST_MULTIPLE_PLATFORMS', 'false').lower() == 'true'
TEST_MULTIPLE_PLATFORMS_RELAY = os.environ.get('TEST_MULTIPLE_PLATFORMS_RELAY', 'false').lower() == 'true'
TEST_MULTIPLE_VERSIONS_EXPLICIT = os.environ.get('TEST_MULTIPLE_VERSIONS_EXPLICIT', 'true').lower() == 'true'
LIST_CHROMIUM_VERSIONS = ['137.0', '136.0', '135.0', '134.0', '133.0', '132.0', '131.0']
LIST_FIREFOX_VERSIONS = ['139.0', '138.0', '137.0', '136.0', '135.0', '134.0', '133.0']
LIST_CHROMIUM_VERSIONS = ['140.0', '139.0', '138.0', '137.0', '136.0', '135.0', '134.0']
LIST_FIREFOX_VERSIONS = ['142.0', '141.0', '140.0', '139.0', '138.0', '137.0', '136.0']
LIST_PLATFORMS = ['Linux', None, 'Windows 11']

if not TEST_MULTIPLE_VERSIONS_EXPLICIT:
Expand Down Expand Up @@ -194,7 +194,7 @@ def setUp(self):
)
end_time = time.time()
print(
f"Begin: {self._testMethodName} ({self.__class__.__name__}) WebDriver initialization completed in {end_time - start_time} (s)"
f"Begin: {self._testMethodName} ({self.__class__.__name__}) WebDriver initialization completed in {end_time - start_time} (s) - SessionID: {self.driver.session_id}"
)
except Exception as e:
print(f"::error::Exception: {str(e)}")
Expand Down Expand Up @@ -243,7 +243,7 @@ def setUp(self):
)
end_time = time.time()
print(
f"Begin: {self._testMethodName} ({self.__class__.__name__}) WebDriver initialization completed in {end_time - start_time} (s)"
f"Begin: {self._testMethodName} ({self.__class__.__name__}) WebDriver initialization completed in {end_time - start_time} (s) - SessionID: {self.driver.session_id}"
)
except Exception as e:
print(f"::error::Exception: {str(e)}")
Expand Down Expand Up @@ -297,7 +297,7 @@ def setUp(self):
)
end_time = time.time()
print(
f"Begin: {self._testMethodName} ({self.__class__.__name__}) WebDriver initialization completed in {end_time - start_time} (s)"
f"Begin: {self._testMethodName} ({self.__class__.__name__}) WebDriver initialization completed in {end_time - start_time} (s) - SessionID: {self.driver.session_id}"
)
except Exception as e:
print(f"::error::Exception: {str(e)}")
Expand Down
1 change: 1 addition & 0 deletions tests/get_started.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ def run_browser_instance(browser, grid_url):
command_executor=grid_url,
options=options,
)
print(f"Session created: {driver.session_id} ({browser})")
driver.get('https://www.google.com/')
print(driver.title)
time.sleep(100)
Expand Down
Loading