Fixed feature tests.

This commit is contained in:
Yogesh Mahajan
2022-06-22 17:47:09 +05:30
committed by Akshay Joshi
parent 74f7fee8b5
commit 95f63f6af8
4 changed files with 31 additions and 27 deletions

View File

@@ -1384,7 +1384,7 @@ def launch_url_in_browser(driver_instance, url, title='pgAdmin 4', timeout=50):
raise WebDriverException(exception_msg)
def get_remote_webdriver(hub_url, browser, browser_ver, test_name):
def get_remote_webdriver(hub_url, browser, browser_ver, test_name, url_client):
"""
This functions returns remote web-driver instance created in selenoid
machine.
@@ -1421,6 +1421,8 @@ def get_remote_webdriver(hub_url, browser, browser_ver, test_name):
elif browser == 'chrome':
options = Options()
options.add_argument("--window-size=1280,1024")
options.add_argument(
'--unsafely-treat-insecure-origin-as-secure=' + url_client)
desired_capabilities["browserName"] = "chrome"
driver_local = webdriver.Remote(
command_executor=hub_url,