Skip to content

Commit c190c2f

Browse files
committed
use webdriver local.
1 parent 97e187b commit c190c2f

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

apps/integration_tests/selenium_generic.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
from selenium.webdriver.support import expected_conditions as EC
1010
from selenium.webdriver.support.wait import WebDriverWait
1111
from selenium.webdriver.common.keys import Keys
12+
from selenium.webdriver.chrome.service import Service
1213
from .common_utils import extract_href_from_html, extract_last_part_of_url
1314

1415
from .selenium_cases import (
@@ -69,8 +70,14 @@ def setup_method(self, method):
6970
opt.add_argument("--window-size=1920,1080")
7071
opt.add_argument("--headless")
7172

72-
self.driver = webdriver.Remote(
73-
command_executor='http://chrome:4444/wd/hub', options=opt)
73+
# Define the chrome driver path
74+
ser=Service('/usr/bin/chromedriver')
75+
76+
# Initiate the Chromedriver by passing options as argument
77+
self.driver = webdriver.Chrome(service=ser,options=opt)
78+
79+
# self.driver = webdriver.Remote(
80+
# command_executor='http://chrome:4444/wd/hub', options=opt)
7481

7582
self.actions = {
7683
Action.LOAD_PAGE: self._load_page,

0 commit comments

Comments
 (0)