mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fixed feature tests.
This commit is contained in:
committed by
Akshay Joshi
parent
74f7fee8b5
commit
95f63f6af8
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user