try downloading the edgedriver during build
This commit is contained in:
parent
842ddb4399
commit
7908af7f95
@ -8,16 +8,26 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
python-version: [ "3.12" ]
|
python-version: [ "3.12" ]
|
||||||
|
env:
|
||||||
|
EDGEDRIVER_VERSION: 126.0.2592.113
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Set up Python ${{ matrix.python-version }}
|
- name: Set up Python ${{ matrix.python-version }}
|
||||||
uses: actions/setup-python@v3
|
uses: actions/setup-python@v3
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
- name: Install dependencies
|
|
||||||
|
- name: Install python dependencies
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
python -m pip install -r requirements.txt
|
python -m pip install -r requirements.txt
|
||||||
|
|
||||||
|
- name: Collect browser drivers
|
||||||
|
run: |
|
||||||
|
https://msedgedriver.azureedge.net/${EDGEDRIVER_VERSION}/edgedriver_win64.zip
|
||||||
|
unzip edgedriver_win64.zip .
|
||||||
|
mv edgedriver_win64/msedgedriver .
|
||||||
|
|
||||||
- name: Run the pytests
|
- name: Run the pytests
|
||||||
run: pytest -c pytest.ini
|
run: pytest -c pytest.ini
|
||||||
- name: Run the behave tests
|
- name: Run the behave tests
|
||||||
|
@ -39,7 +39,9 @@ def edge(headless=True):
|
|||||||
options.add_argument('disable-gpu')
|
options.add_argument('disable-gpu')
|
||||||
if headless:
|
if headless:
|
||||||
options.add_argument('headless')
|
options.add_argument('headless')
|
||||||
return webdriver.Edge(options=options)
|
edge_driver = webdriver.Edge(options=options)
|
||||||
|
print(edge_driver.service.path)
|
||||||
|
return edge_driver
|
||||||
|
|
||||||
|
|
||||||
def safari():
|
def safari():
|
||||||
|
Loading…
Reference in New Issue
Block a user