Skip to content

Commit

Permalink
fix the chromedriver creation
Browse files Browse the repository at this point in the history
  • Loading branch information
burak-58 committed Aug 21, 2023
1 parent ec7a6cf commit 8134511
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ jobs:
python-version: '3.9'

- name: Install python packages
run: pip3 install requests selenium==3.141.0 flask
run: pip3 install requests selenium==3.141.0 flask webdriver-manager


- name: Run Multitrack Conference Test Server
run: python3 multitrack-conference-server.py &
Expand Down
6 changes: 5 additions & 1 deletion multitrack-conference-server.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
from selenium.webdriver.common.alert import Alert
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
from flask import Flask, request
from webdriver_manager.chrome import ChromeDriverManager



class Browser:
Expand All @@ -27,7 +29,9 @@ def init(self, is_headless):

dc = DesiredCapabilities.CHROME.copy()
dc['goog:loggingPrefs'] = { 'browser':'ALL' }
self.driver = webdriver.Chrome(executable_path="/usr/bin/chromedriver", chrome_options=chrome_options)


self.driver = webdriver.Chrome(ChromeDriverManager().install(), chrome_options=chrome_options)

def open_in_new_tab(self, url, tab_id):
self.driver.execute_script("window.open('about:blank', '"+tab_id+"');")
Expand Down

0 comments on commit 8134511

Please sign in to comment.