File tree Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change 82
82
lint-unit-39 : &lint-unit
83
83
working_directory : ~/dash
84
84
docker :
85
- - image : cimg /python:3.9-browsers
85
+ - image : circleci /python:3.9.4-node -browsers
86
86
auth :
87
87
username : dashautomation
88
88
password : $DASH_PAT_DOCKERHUB
@@ -102,6 +102,7 @@ jobs:
102
102
command : |
103
103
python -m venv venv && . venv/bin/activate
104
104
pip install --upgrade pip wheel
105
+ pip install webdriver-manager
105
106
pip install -e .[ci,dev,testing] --no-cache-dir --progress-bar off
106
107
- run :
107
108
name : 🌸 Python & JS Lint
Original file line number Diff line number Diff line change 20
20
MoveTargetOutOfBoundsException ,
21
21
)
22
22
23
+ from webdriver_manager .chrome import ChromeDriverManager
24
+ from webdriver_manager .utils import ChromeType
25
+ from webdriver_manager .firefox import GeckoDriverManager
26
+
23
27
from dash .testing .wait import text_to_equal , style_to_equal , contains_text , until
24
28
from dash .testing .dash_page import DashPageMixin
25
29
from dash .testing .errors import DashAppLoadingError , BrowserError , TestingTimeoutError
@@ -473,7 +477,11 @@ def _get_chrome(self):
473
477
desired_capabilities = capabilities ,
474
478
)
475
479
if self ._remote
476
- else webdriver .Chrome (options = options , desired_capabilities = capabilities )
480
+ else webdriver .Chrome (
481
+ ChromeDriverManager (chrome_type = ChromeType .GOOGLE ).install (),
482
+ options = options ,
483
+ desired_capabilities = capabilities ,
484
+ )
477
485
)
478
486
479
487
# https://bugs.chromium.org/p/chromium/issues/detail?id=696481
@@ -516,7 +524,10 @@ def _get_firefox(self):
516
524
)
517
525
if self ._remote
518
526
else webdriver .Firefox (
519
- firefox_profile = fp , options = options , capabilities = capabilities
527
+ executable_path = GeckoDriverManager ().install (),
528
+ firefox_profile = fp ,
529
+ options = options ,
530
+ capabilities = capabilities ,
520
531
)
521
532
)
522
533
You can’t perform that action at this time.
0 commit comments