Repository navigation
better error message when WebDriver/Selenium not available #50146
Copy link
Copy link
Closed
Labels
c: crashStack traces logged to the consoleStack traces logged to the consoleplatform-webWeb applications specificallyWeb applications specificallytoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter respondsThe Flutter team cannot make further progress on this issue until the original reporter responds
Description
From crash logging for the flutter drive -d chrome command on master/1.14.7-pre.101 First seen in master/1.14.7-pre.27.
SocketException: Connection failed (OS Error: No connection could be made because the target machine actively refused it., errno = 10061), address = localhost, port = 4444
| at _NativeSynchronousSocket.connectSync.connectNext | (sync_socket_patch.dart:91 )
| at _NativeSynchronousSocket.connectSync.connectNext | (sync_socket_patch.dart:102 )
| at _NativeSynchronousSocket.connectSync.connectNext | (sync_socket_patch.dart:102 )
| at _NativeSynchronousSocket.connectSync | (sync_socket_patch.dart:118 )
| at _RawSynchronousSocket.connectSync | (sync_socket_patch.dart:25 )
| at RawSynchronousSocket.connectSync | (sync_socket_patch.dart:13 )
| at new SyncHttpClientRequest._ | (sync_http.dart:67 )
| at SyncHttpClient.postUrl | (sync_http.dart:20 )
| at SyncHttpRequestClient.sendRaw | (sync_http_request_client.dart:20 )
| at SyncRequestClient.send | (request_client.dart:46 )
| at createDriver | (sync_core.dart:63 )
| at createDriver | (sync_io.dart:35 )
| at _createDriver | (drive.dart:441 )
| at DriveCommand.runCommand | (drive.dart:182 )
| at <asynchronous gap> | (async )
| at FlutterCommand.verifyThenRunCommand | (flutter_command.dart:639 )
| at <asynchronous gap> | (async )
| at FlutterCommand.run.<anonymous closure> | (flutter_command.dart:537 )
| at <asynchronous gap> | (async )
| at AppContext.run.<anonymous closure> | (context.dart:150 )
| at _rootRun | (zone.dart:1126 )
| at _CustomZone.run | (zone.dart:1023 )
| at _runZoned | (zone.dart:1518 )
| at runZoned | (zone.dart:1465 )
| at AppContext.run | (context.dart:149 )
| at FlutterCommand.run | (flutter_command.dart:527 )
| at CommandRunner.runCommand | (command_runner.dart:197 )
| at FlutterCommandRunner.runCommand.<anonymous closure> | (flutter_command_runner.dart:338 )
| at <asynchronous gap> | (async )
| at AppContext.run.<anonymous closure> | (context.dart:150 )
| at _rootRun | (zone.dart:1126 )
| at _CustomZone.run | (zone.dart:1023 )
| at _runZoned | (zone.dart:1518 )
| at runZoned | (zone.dart:1465 )
| at AppContext.run | (context.dart:149 )
| at FlutterCommandRunner.runCommand | (flutter_command_runner.dart:288 )
| at CommandRunner.run.<anonymous closure> | (command_runner.dart:112 )
| at new Future.sync | (future.dart:224 )
| at CommandRunner.run | (command_runner.dart:112 )
| at FlutterCommandRunner.run | (flutter_command_runner.dart:231 )
| at run.<anonymous closure>.<anonymous closure> | (runner.dart:64 )
| at _rootRun | (zone.dart:1126 )
| at _CustomZone.run | (zone.dart:1023 )
| at _runZoned | (zone.dart:1518 )
| at runZoned | (zone.dart:1502 )
| at run.<anonymous closure> | (runner.dart:62 )
| at <asynchronous gap> | (async )
| at AppContext.run.<anonymous closure> | (context.dart:150 )
| at _rootRun | (zone.dart:1126 )
| at _CustomZone.run | (zone.dart:1023 )
| at _runZoned | (zone.dart:1518 )
| at runZoned | (zone.dart:1465 )
| at AppContext.run | (context.dart:149 )
| at runInContext | (context_runner.dart:64 )
| at run | (runner.dart:51 )
| at main | (executable.dart:65 )
| at main | (flutter_tools.dart:8 )
| at _startIsolate.<anonymous closure> | (isolate_patch.dart:299 )
| at _RawReceivePortImpl._handleMessage | (isolate_patch.dart:168 )
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
c: crashStack traces logged to the consoleStack traces logged to the consoleplatform-webWeb applications specificallyWeb applications specificallytoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter respondsThe Flutter team cannot make further progress on this issue until the original reporter responds
Activity
angjieli commentedon Feb 6, 2020
Currently,
Flutter Drivecommand not support running test like this. In addition, it requires WebDriver binary to be launched beforehand.As for now, I will add some safeguard to prevent crash from happening.
[-]flutter drive webdriver connection refused crash[/-][+]better error message when WebDriver/Selenium not available[/+]nturgut commentedon Feb 11, 2020
The steps to run a drive test with the web:
I definitely agree, we should make it simpler or give better errors. I am noting them here so if anybody wants to use flutter driver with web.
ferhatb commentedon Mar 31, 2020
@angjieli , thank you for contribution. Can we close issue ?
angjieli commentedon Mar 31, 2020
Sure. Closing.
lock commentedon Apr 15, 2020
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.