File tree Expand file tree Collapse file tree 3 files changed +11
-7
lines changed
Expand file tree Collapse file tree 3 files changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,9 @@ before_install:
2626 - sh -e /etc/init.d/xvfb start
2727
2828before_script :
29- - wget http://chromedriver.storage.googleapis.com/2.46/chromedriver_linux64.zip
29+ - " export CHROME_LATEST_VERSION=$(/usr/bin/google-chrome --version | cut -d' ' -f3 | cut -d'.' -f1)"
30+ - " export CHROME_DRIVER_VERSION=$(wget -qO- https://chromedriver.storage.googleapis.com/LATEST_RELEASE_$CHROME_LATEST_VERSION)"
31+ - " wget https://chromedriver.storage.googleapis.com/$CHROME_DRIVER_VERSION/chromedriver_linux64.zip"
3032 - unzip chromedriver_linux64.zip
3133 - export PATH=$PATH:$PWD
3234 - ./tool/travis-setup.sh
Original file line number Diff line number Diff line change @@ -22,4 +22,4 @@ dependencies:
2222dev_dependencies :
2323 shelf_static : ^0.2.8
2424 test : ^1.5.3
25- webdriver : ^2.0 .0
25+ webdriver : ^2.1 .0
Original file line number Diff line number Diff line change @@ -41,11 +41,13 @@ void main() {
4141 listDirectories: true , defaultDocument: 'index.html' ));
4242
4343 server = await io.serve (cascade.handler, 'localhost' , 0 );
44- webdriver = await createDriver (desired: {
45- 'chromeOptions' : {
46- 'args' : ['--headless' ]
47- }
48- });
44+ var capabilities = Capabilities .chrome
45+ ..addAll ({
46+ Capabilities .chromeOptions: {
47+ 'args' : ['--headless' ]
48+ }
49+ });
50+ webdriver = await createDriver (desired: capabilities);
4951 });
5052
5153 tearDown (() async {
You can’t perform that action at this time.
0 commit comments