Skip to content

Commit c9147e7

Browse files
committed
Setup Chrome and chromedriver via selenium-manager
We want to setup Chrome before we execute the tasks so that we can avoid selenium-manager doing at the time of execution and changing the debug log messages.
1 parent f197a40 commit c9147e7

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/CI.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,18 @@ jobs:
1717
uses: actions/setup-python@v4
1818
with:
1919
python-version: ${{ matrix.python-version }}
20+
- name: Setup Chrome
21+
uses: browser-actions/setup-chrome@latest
22+
with:
23+
chrome-version: latest
24+
id: setup-chrome
25+
- run: |
26+
echo Installed chromium version: ${{ steps.setup-chrome.outputs.chrome-version }}
27+
${{ steps.setup-chrome.outputs.chrome-path }} --version
28+
- run: |
29+
SELENIUM_MANAGER_EXE=$(python -c 'from selenium.webdriver.common.selenium_manager import SeleniumManager; sm=SeleniumManager(); print(f"{str(sm.get_binary())}")')
30+
echo "$SELENIUM_MANAGER_EXE"
31+
$SELENIUM_MANAGER_EXE --browser chrome --debug
2032
- name: Start xvfb
2133
run: |
2234
export DISPLAY=:99.0

0 commit comments

Comments
 (0)