From 46e4f33f080b4d32ca116b295bac80fdcec1cb23 Mon Sep 17 00:00:00 2001 From: rohitanand1614 <43907988+rohitanand1614@users.noreply.github.com> Date: Wed, 23 Feb 2022 12:17:32 +0530 Subject: [PATCH] Update browserstack.py proposing these changes due to new updates in the url in browserstack, also an additional argument "keep_live" should be set true is suggested by browserstack --- pytest_selenium/drivers/browserstack.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pytest_selenium/drivers/browserstack.py b/pytest_selenium/drivers/browserstack.py index 1c89964..bd050b6 100644 --- a/pytest_selenium/drivers/browserstack.py +++ b/pytest_selenium/drivers/browserstack.py @@ -18,7 +18,7 @@ def auth(self): @property def executor(self): - return "https://hub.browserstack.com/wd/hub" + return "https://hub-cloud.browserstack.com/wd/hub" @property def username(self): @@ -102,5 +102,6 @@ def driver_kwargs(request, test, capabilities, **kwargs): kwargs = { "command_executor": provider.executor, "desired_capabilities": capabilities, + "keep_alive": True } return kwargs