File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 99from selenium .webdriver .support import expected_conditions as EC
1010from selenium .webdriver .support .wait import WebDriverWait
1111from selenium .webdriver .common .keys import Keys
12+ from selenium .webdriver .chrome .service import Service
1213from .common_utils import extract_href_from_html , extract_last_part_of_url
1314
1415from .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 ,
You can’t perform that action at this time.
0 commit comments