Skip to content

[tool_crash] UnknownException integration test flutter drive chrome #123602

Closed

Description

@kwiatek91

Command

flutter drive --driver=integration_test/test_driver/integration_test.dart --target=integration_test/login_test.dart -d web-server --browser-name chrome --headless

Steps to Reproduce

  1. When using selenium/chrome-standalone image as chrome test instance

Logs

UnknownException

#0      parseW3cResponse (package:webdriver/src/handler/w3c/utils.dart:99:9)
#1      W3cSessionHandler.parseCreateResponse (package:webdriver/src/handler/w3c/session.dart:19:21)
#2      InferSessionHandler.parseCreateResponse (package:webdriver/src/handler/infer_handler.dart:103:34)
#3      AsyncRequestClient.send (package:webdriver/src/common/request_client.dart:96:32)
<asynchronous suspension>
#4      createDriver (package:webdriver/async_core.dart:64:19)
<asynchronous suspension>
#5      WebDriverService.startTest (package:flutter_tools/src/drive/web_driver_service.dart:141:19)
<asynchronous suspension>
#6      DriveCommand.runCommand (package:flutter_tools/src/commands/drive.dart:274:30)
<asynchronous suspension>
#7      FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1183:27)
<asynchronous suspension>
#8      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#9      CommandRunner.runCommand (package:args/command_runner.dart:209:13)
<asynchronous suspension>
#10     FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:281:9)
<asynchronous suspension>
#11     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#12     FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:229:5)
<asynchronous suspension>
#13     run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:62:9)
<asynchronous suspension>
[✓] Flutter (Channel unknown, 3.0.1, on macOS 13.0.1 22A400 darwin-arm, locale pl-PL)
    • Flutter version 3.0.1 at /opt/homebrew/Caskroom/flutter/3.7.0/flutter
    • Upstream repository unknown
    • Framework revision fb57da5f94 (10 months ago), 2022-05-19 15:50:29 -0700
    • Engine revision caaafc5604
    • Dart version 2.17.1
    • DevTools version 2.12.2

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Users/arkadiuszkwiatkowski/Library/Android/sdk
    • Platform android-33, build-tools 31.0.0
    • ANDROID_HOME = /Users/arkadiuszkwiatkowski/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • CocoaPods version 1.11.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)

[✓] IntelliJ IDEA Community Edition (version 2021.2.1)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 71.0.2
    • Dart plugin version 212.5744

[✓] Connected device (3 available)
    • macOS (desktop)  • macos      • darwin-arm64   • macOS 13.0.1 22A400 darwin-arm
    • Web Server (web) • web-server • web-javascript • Flutter Tools
    • Chrome (web)     • chrome     • web-javascript • Google Chrome 111.0.5563

Activity

  1. darshankawar commented on Mar 29, 2023

    @darshankawar
    Member

    @kwiatek91
    Can you upgrade to latest stable or master and run your scenario again to see if the crash still occurs or not ?

  2. added
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on Mar 29, 2023
  3. kwiatek91 commented on Mar 29, 2023

    @kwiatek91
    Author

    @kwiatek91 Can you upgrade to latest stable or master and run your scenario again to see if the crash still occurs or not ?

    Same story problem is visible only when I try to run chrome driver from selenium/chrome-standalone docker image I try to use 110 tag
    When I run the same command on my local machine with chrome installed, there is no issue
    Maybe I should try to pass chrome options but IDK if flutter supports such possibility, I can't find anything about this in docs

    Command

    flutter drive --driver=integration_test/test_driver/integration_test.dart --target=integration_test/login_test.dart -d web-server --browser-name chrome --headless
    

    Logs

    UnknownException

    #0      parseW3cResponse (package:webdriver/src/handler/w3c/utils.dart:102:9)
    #1      W3cSessionHandler.parseCreateResponse (package:webdriver/src/handler/w3c/session.dart:19:21)
    #2      InferSessionHandler.parseCreateResponse (package:webdriver/src/handler/infer_handler.dart:103:34)
    #3      AsyncRequestClient.send (package:webdriver/src/common/request_client.dart:96:32)
    <asynchronous suspension>
    #4      createDriver (package:webdriver/async_core.dart:64:19)
    <asynchronous suspension>
    #5      WebDriverService.startTest (package:flutter_tools/src/drive/web_driver_service.dart:145:19)
    <asynchronous suspension>
    #6      DriveCommand.runCommand (package:flutter_tools/src/commands/drive.dart:309:30)
    <asynchronous suspension>
    #7      FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1257:27)
    <asynchronous suspension>
    #8      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
    <asynchronous suspension>
    #9      CommandRunner.runCommand (package:args/command_runner.dart:209:13)
    <asynchronous suspension>
    #10     FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:283:9)
    <asynchronous suspension>
    #11     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
    <asynchronous suspension>
    #12     FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:229:5)
    <asynchronous suspension>
    #13     run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:64:9)
    <asynchronous suspension>
    
    Doctor summary (to see all details, run flutter doctor -v):
    [✓] Flutter (Channel stable, 3.7.8, on macOS 13.0.1 22A400 darwin-arm64, locale pl-PL)
    [✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    [✓] Xcode - develop for iOS and macOS (Xcode 14.2)
    [✓] Chrome - develop for the web
    [✓] Android Studio (version 2021.3)
    [✓] IntelliJ IDEA Community Edition (version 2021.2.1)
    [✓] Connected device (2 available)
    [✓] HTTP Host Availability
    
    • No issues found!
    
  4. removed
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on Mar 29, 2023
  5. darshankawar commented on Mar 29, 2023

    @darshankawar
    Member

    Thanks for the update. Keeping this issue open and labeling for team's attention.

  6. added
    toolAffects the "flutter" command-line tool. See also t: labels.
    platform-webWeb applications specifically
    f: integration_testThe flutter/packages/integration_test plugin
    c: crashStack traces logged to the console
    and removed
    in triagePresently being triaged by the triage team
    on Mar 29, 2023
  7. darshankawar commented on Mar 29, 2023

    @darshankawar
    Member

    /cc @yjbanov and @christopherfujino for thoughts.

  8. yjbanov commented on Mar 30, 2023

    @yjbanov
    Contributor

    The removal of jsonwire was intentional. I was told by WebDriver maintainers that it's deprecated and is going away.

    #122560

    For now, a solution is to not upgrade the Flutter SDK and upgrade the test browser instead. Unfortunately, I don't know how to do it with Selenium. We don't test Flutter with Selenium.

  9. kwiatek91 commented on Mar 31, 2023

    @kwiatek91
    Author

    @yjbanov
    On my machine, I have local installed chrome ver 111 and flutter 3.0.1
    run flutter drive command and everything looks ok

    I tested this also with flutter 3.7.8 a chrome ver 111
    Everything was also ok, there's no problem

    My goal is: prepare run test on GitLabCi, this is why I use image with preinstalled chrome and chromedriver: selenium/standalone-chrome/111.0

    To test the solution I shut down my local chromedrvier and then run on my local machine a new docker container (standalone-chrome) and when I try to run the same flutter drive command then I always got w3c error
    Logs from container:
    docker standalone chrome logs.txt

  10. added
    P2Important issues not at the top of the work list
    on Apr 2, 2023
  11. yjbanov commented on Apr 2, 2023

    @yjbanov
    Contributor

    Setting to P4, but honestly I don't know enough about Selenium to be confident that I can fix this. Moreover, we don't test with Selenium, so it has worked by accident. According to https://www.lambdatest.com/blog/selenium4-w3c-webdriver-protocol/ Selenium supports W3C mode, so I'm not sure what the problem is.

    From the logs, Selenium is trying to parse chromedriver options and chokes on goog:chromeOptions setting.

    2023-03-31 11:09:54 java.lang.IllegalArgumentException: Illegal key values seen in w3c capabilities: [chromeOptions]
    

    Right now it seems like a bug in Selenium. It should accept that key and pass it to Chrome. We need those options to be able to run tests. Also, apparently is supported it in jsonwire mode. So maybe they just forgot to implement it in their W3C?

  12. kwiatek91 commented on Apr 4, 2023

    @kwiatek91
    Author

    Setting to P4, but honestly I don't know enough about Selenium to be confident that I can fix this. Moreover, we don't test with Selenium, so it has worked by accident. According to https://www.lambdatest.com/blog/selenium4-w3c-webdriver-protocol/ Selenium supports W3C mode, so I'm not sure what the problem is.

    From the logs, Selenium is trying to parse chromedriver options and chokes on goog:chromeOptions setting.

    2023-03-31 11:09:54 java.lang.IllegalArgumentException: Illegal key values seen in w3c capabilities: [chromeOptions]
    

    Right now it seems like a bug in Selenium. It should accept that key and pass it to Chrome. We need those options to be able to run tests. Also, apparently is supported it in jsonwire mode. So maybe they just forgot to implement it in their W3C?

    If I find any solution to this problem, I will post details here.

  13. kwiatek91 commented on Apr 19, 2023

    @kwiatek91
    Author

    Currently I resign from using docker image and I created a shell gitlabci runner with linux and installed GUI that solution works for me. ;)

    But still it bothering me
    I didnt find any solution for docker runner (why flutter drive freez after start flutter drive command).
    I create my own dockerfile but still didnt help

    
    FROM ubuntu:20.04
    ARG DEBIAN_FRONTEND=noninteractive
    ARG FLUTTER_VERSION=3.7.7
    
    RUN apt-get update && \
        apt-get install -y git libglu1-mesa curl mpv zip clang cmake ninja-build pkg-config libgtk-3-dev liblzma-dev mosquitto xvfb sqlite3 lftp libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev gstreamer1.0-plugins-good gstreamer1.0-plugins-bad
    
    RUN git clone https://github.com/flutter/flutter.git -b $FLUTTER_VERSION --depth 1 /flutter
    ENV PATH="/flutter/bin:${PATH}"
    RUN flutter doctor
    RUN dart pub global activate melos
    RUN flutter config --enable-linux-desktop
    RUN flutter config --enable-macos-desktop
    RUN flutter config --enable-web
    RUN flutter config --enable-android
    WORKDIR /app
    
    CMD ["/bin/bash"]
    
    

    then in script I install chrome browser, starting chromedrvier and then flutter drive command
    like this:

    - apt install -y wget
    - wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
    - apt update
    - apt install -y ./google-chrome-stable_current_amd64.deb
    - | 
      dart apps/esonel_web/integration_test/web_drivers/web_driver_installer.dart chromedriver \
      --driver-version="111.0.5563.64" &> apps/esonel_web/integration_test/log.txt &
    - |
      flutter drive \
      --driver=integration_test/test_driver/integration_test.dart \
      --target=integration_test/login_test.dart \
      -d web-server --headless -v
    

    then it freez on run
    part of logs:

    IO  : Writing 2693139 characters to text file /builds/eSonel_Client/eSonel_client/.pub-cache/log/pub_log.txt.
    MSG : Logs written to /builds/eSonel_Client/eSonel_client/.pub-cache/log/pub_log.txt.
    [+3391 ms] Found plugin audioplayers at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/audioplayers-3.0.0/
    [   +3 ms] Found plugin audioplayers_android at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/audioplayers_android-2.0.0/
    [   +1 ms] Found plugin audioplayers_darwin at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/audioplayers_darwin-3.0.1/
    [   +1 ms] Found plugin audioplayers_linux at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/audioplayers_linux-1.0.4/
    [   +1 ms] Found plugin audioplayers_web at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/audioplayers_web-2.2.0/
    [        ] Found plugin audioplayers_windows at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/audioplayers_windows-1.1.3/
    [  +22 ms] Found plugin flutter_keyboard_visibility at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/flutter_keyboard_visibility-5.4.0/
    [        ] Found plugin flutter_keyboard_visibility_linux at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/flutter_keyboard_visibility_linux-1.0.0/
    [        ] Found plugin flutter_keyboard_visibility_macos at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/flutter_keyboard_visibility_macos-1.0.0/
    [   +1 ms] Found plugin flutter_keyboard_visibility_web at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/flutter_keyboard_visibility_web-2.0.0/
    [        ] Found plugin flutter_keyboard_visibility_windows at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/flutter_keyboard_visibility_windows-1.0.0/
    [  +24 ms] Found plugin path_provider at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/path_provider-2.0.14/
    [        ] Found plugin path_provider_android at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/path_provider_android-2.0.24/
    [        ] Found plugin path_provider_foundation at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/path_provider_foundation-2.2.1/
    [        ] Found plugin path_provider_linux at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/path_provider_linux-2.1.10/
    [   +1 ms] Found plugin path_provider_windows at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/path_provider_windows-2.1.5/
    [   +4 ms] Found plugin shared_preferences at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/shared_preferences-2.1.0/
    [        ] Found plugin shared_preferences_android at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/shared_preferences_android-2.1.0/
    [        ] Found plugin shared_preferences_foundation at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/shared_preferences_foundation-2.2.0/
    [        ] Found plugin shared_preferences_linux at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/shared_preferences_linux-2.2.0/
    [        ] Found plugin shared_preferences_web at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/shared_preferences_web-2.1.0/
    [        ] Found plugin shared_preferences_windows at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/shared_preferences_windows-2.2.0/
    [   +3 ms] Found plugin sqlite3_flutter_libs at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/sqlite3_flutter_libs-0.5.13/
    [   +3 ms] Found plugin video_player at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/video_player-2.6.1/
    [        ] Found plugin video_player_android at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/video_player_android-2.4.4/
    [        ] Found plugin video_player_avfoundation at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/video_player_avfoundation-2.4.3/
    [        ] Found plugin video_player_web at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/video_player_web-2.0.16/
    [        ] Found plugin wakelock at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/wakelock-0.6.2/
    [        ] Found plugin wakelock_macos at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/wakelock_macos-0.4.0/
    [        ] Found plugin wakelock_web at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/wakelock_web-0.4.0/
    [   +1 ms] Found plugin webview_flutter at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/webview_flutter-2.8.0/
    [        ] Found plugin webview_flutter_android at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/webview_flutter_android-2.10.4/
    [        ] Found plugin webview_flutter_wkwebview at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/webview_flutter_wkwebview-2.9.5/
    [  +17 ms] Found plugin integration_test at /flutter/packages/integration_test/
    [  +37 ms] Found plugin audioplayers at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/audioplayers-3.0.0/
    [        ] Found plugin audioplayers_android at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/audioplayers_android-2.0.0/
    [        ] Found plugin audioplayers_darwin at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/audioplayers_darwin-3.0.1/
    [        ] Found plugin audioplayers_linux at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/audioplayers_linux-1.0.4/
    [        ] Found plugin audioplayers_web at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/audioplayers_web-2.2.0/
    [        ] Found plugin audioplayers_windows at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/audioplayers_windows-1.1.3/
    [   +9 ms] Found plugin flutter_keyboard_visibility at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/flutter_keyboard_visibility-5.4.0/
    [        ] Found plugin flutter_keyboard_visibility_linux at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/flutter_keyboard_visibility_linux-1.0.0/
    [        ] Found plugin flutter_keyboard_visibility_macos at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/flutter_keyboard_visibility_macos-1.0.0/
    [        ] Found plugin flutter_keyboard_visibility_web at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/flutter_keyboard_visibility_web-2.0.0/
    [        ] Found plugin flutter_keyboard_visibility_windows at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/flutter_keyboard_visibility_windows-1.0.0/
    [   +7 ms] Found plugin path_provider at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/path_provider-2.0.14/
    [        ] Found plugin path_provider_android at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/path_provider_android-2.0.24/
    [        ] Found plugin path_provider_foundation at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/path_provider_foundation-2.2.1/
    [        ] Found plugin path_provider_linux at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/path_provider_linux-2.1.10/
    [        ] Found plugin path_provider_windows at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/path_provider_windows-2.1.5/
    [   +2 ms] Found plugin shared_preferences at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/shared_preferences-2.1.0/
    [        ] Found plugin shared_preferences_android at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/shared_preferences_android-2.1.0/
    [        ] Found plugin shared_preferences_foundation at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/shared_preferences_foundation-2.2.0/
    [        ] Found plugin shared_preferences_linux at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/shared_preferences_linux-2.2.0/
    [        ] Found plugin shared_preferences_web at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/shared_preferences_web-2.1.0/
    [        ] Found plugin shared_preferences_windows at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/shared_preferences_windows-2.2.0/
    [   +1 ms] Found plugin sqlite3_flutter_libs at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/sqlite3_flutter_libs-0.5.13/
    [   +2 ms] Found plugin video_player at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/video_player-2.6.1/
    [        ] Found plugin video_player_android at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/video_player_android-2.4.4/
    [        ] Found plugin video_player_avfoundation at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/video_player_avfoundation-2.4.3/
    [        ] Found plugin video_player_web at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/video_player_web-2.0.16/
    [        ] Found plugin wakelock at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/wakelock-0.6.2/
    [        ] Found plugin wakelock_macos at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/wakelock_macos-0.4.0/
    [        ] Found plugin wakelock_web at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/wakelock_web-0.4.0/
    [        ] Found plugin webview_flutter at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/webview_flutter-2.8.0/
    [        ] Found plugin webview_flutter_android at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/webview_flutter_android-2.10.4/
    [        ] Found plugin webview_flutter_wkwebview at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/webview_flutter_wkwebview-2.9.5/
    [   +5 ms] Found plugin integration_test at /flutter/packages/integration_test/
    [  +13 ms] Found plugin audioplayers at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/audioplayers-3.0.0/
    [        ] Found plugin audioplayers_android at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/audioplayers_android-2.0.0/
    [        ] Found plugin audioplayers_darwin at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/audioplayers_darwin-3.0.1/
    [        ] Found plugin audioplayers_linux at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/audioplayers_linux-1.0.4/
    [        ] Found plugin audioplayers_web at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/audioplayers_web-2.2.0/
    [        ] Found plugin audioplayers_windows at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/audioplayers_windows-1.1.3/
    [   +5 ms] Found plugin flutter_keyboard_visibility at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/flutter_keyboard_visibility-5.4.0/
    [        ] Found plugin flutter_keyboard_visibility_linux at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/flutter_keyboard_visibility_linux-1.0.0/
    [        ] Found plugin flutter_keyboard_visibility_macos at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/flutter_keyboard_visibility_macos-1.0.0/
    [        ] Found plugin flutter_keyboard_visibility_web at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/flutter_keyboard_visibility_web-2.0.0/
    [        ] Found plugin flutter_keyboard_visibility_windows at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/flutter_keyboard_visibility_windows-1.0.0/
    [   +6 ms] Found plugin path_provider at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/path_provider-2.0.14/
    [        ] Found plugin path_provider_android at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/path_provider_android-2.0.24/
    [        ] Found plugin path_provider_foundation at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/path_provider_foundation-2.2.1/
    [        ] Found plugin path_provider_linux at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/path_provider_linux-2.1.10/
    [        ] Found plugin path_provider_windows at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/path_provider_windows-2.1.5/
    [   +2 ms] Found plugin shared_preferences at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/shared_preferences-2.1.0/
    [        ] Found plugin shared_preferences_android at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/shared_preferences_android-2.1.0/
    [        ] Found plugin shared_preferences_foundation at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/shared_preferences_foundation-2.2.0/
    [        ] Found plugin shared_preferences_linux at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/shared_preferences_linux-2.2.0/
    [        ] Found plugin shared_preferences_web at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/shared_preferences_web-2.1.0/
    [        ] Found plugin shared_preferences_windows at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/shared_preferences_windows-2.2.0/
    [   +1 ms] Found plugin sqlite3_flutter_libs at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/sqlite3_flutter_libs-0.5.13/
    [   +1 ms] Found plugin video_player at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/video_player-2.6.1/
    [        ] Found plugin video_player_android at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/video_player_android-2.4.4/
    [        ] Found plugin video_player_avfoundation at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/video_player_avfoundation-2.4.3/
    [        ] Found plugin video_player_web at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/video_player_web-2.0.16/
    [        ] Found plugin wakelock at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/wakelock-0.6.2/
    [        ] Found plugin wakelock_macos at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/wakelock_macos-0.4.0/
    [        ] Found plugin wakelock_web at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/wakelock_web-0.4.0/
    [        ] Found plugin webview_flutter at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/webview_flutter-2.8.0/
    [        ] Found plugin webview_flutter_android at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/webview_flutter_android-2.10.4/
    [        ] Found plugin webview_flutter_wkwebview at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/webview_flutter_wkwebview-2.9.5/
    [   +4 ms] Found plugin integration_test at /flutter/packages/integration_test/
    [  +39 ms] Launching integration_test/login_test.dart on Web Server in debug mode...
    [  +49 ms] Initializing file store
    [   +4 ms] Skipping target: gen_localizations
    [   +2 ms] Skipping target: gen_dart_plugin_registrant
    [        ] _composite: Starting due to {}
    [        ] _composite: Complete
    [   +1 ms] complete
    [        ] Updating assets
    [  +90 ms] Manifest contained wildcard assets. Inserting missing file into build graph to force rerun. for more information see #56466.
    [   +5 ms] Waiting for connection from debug service on Web Server...
    [   +6 ms] Found plugin audioplayers at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/audioplayers-3.0.0/
    [        ] Found plugin audioplayers_android at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/audioplayers_android-2.0.0/
    [        ] Found plugin audioplayers_darwin at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/audioplayers_darwin-3.0.1/
    [        ] Found plugin audioplayers_linux at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/audioplayers_linux-1.0.4/
    [        ] Found plugin audioplayers_web at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/audioplayers_web-2.2.0/
    [        ] Found plugin audioplayers_windows at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/audioplayers_windows-1.1.3/
    [   +5 ms] Found plugin flutter_keyboard_visibility at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/flutter_keyboard_visibility-5.4.0/
    [        ] Found plugin flutter_keyboard_visibility_linux at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/flutter_keyboard_visibility_linux-1.0.0/
    [        ] Found plugin flutter_keyboard_visibility_macos at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/flutter_keyboard_visibility_macos-1.0.0/
    [        ] Found plugin flutter_keyboard_visibility_web at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/flutter_keyboard_visibility_web-2.0.0/
    [        ] Found plugin flutter_keyboard_visibility_windows at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/flutter_keyboard_visibility_windows-1.0.0/
    [   +5 ms] Found plugin path_provider at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/path_provider-2.0.14/
    [        ] Found plugin path_provider_android at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/path_provider_android-2.0.24/
    [        ] Found plugin path_provider_foundation at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/path_provider_foundation-2.2.1/
    [        ] Found plugin path_provider_linux at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/path_provider_linux-2.1.10/
    [        ] Found plugin path_provider_windows at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/path_provider_windows-2.1.5/
    [   +1 ms] Found plugin shared_preferences at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/shared_preferences-2.1.0/
    [        ] Found plugin shared_preferences_android at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/shared_preferences_android-2.1.0/
    [        ] Found plugin shared_preferences_foundation at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/shared_preferences_foundation-2.2.0/
    [        ] Found plugin shared_preferences_linux at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/shared_preferences_linux-2.2.0/
    [        ] Found plugin shared_preferences_web at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/shared_preferences_web-2.1.0/
    [        ] Found plugin shared_preferences_windows at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/shared_preferences_windows-2.2.0/
    [   +2 ms] Found plugin sqlite3_flutter_libs at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/sqlite3_flutter_libs-0.5.13/
    [   +1 ms] Found plugin video_player at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/video_player-2.6.1/
    [        ] Found plugin video_player_android at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/video_player_android-2.4.4/
    [        ] Found plugin video_player_avfoundation at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/video_player_avfoundation-2.4.3/
    [        ] Found plugin video_player_web at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/video_player_web-2.0.16/
    [        ] Found plugin wakelock at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/wakelock-0.6.2/
    [        ] Found plugin wakelock_macos at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/wakelock_macos-0.4.0/
    [        ] Found plugin wakelock_web at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/wakelock_web-0.4.0/
    [        ] Found plugin webview_flutter at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/webview_flutter-2.8.0/
    [        ] Found plugin webview_flutter_android at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/webview_flutter_android-2.10.4/
    [        ] Found plugin webview_flutter_wkwebview at /builds/eSonel_Client/eSonel_client/.pub-cache/hosted/pub.dev/webview_flutter_wkwebview-2.9.5/
    [   +4 ms] Found plugin integration_test at /flutter/packages/integration_test/
    [ +145 ms] <- reset
    [   +3 ms] /flutter/bin/cache/dart-sdk/bin/dart --disable-dart-dev /flutter/bin/cache/dart-sdk/bin/snapshots/frontend_server.dart.snapshot --sdk-root /flutter/bin/cache/flutter_web_sdk/ --incremental --target=dartdevc --experimental-emit-debug-metadata -DFLUTTER_WEB_AUTO_DETECT=true --output-dill /tmp/flutter_tools.PJDAGJ/flutter_tool.YUYYWK/app.dill --packages /builds/eSonel_Client/eSonel_client/apps/esonel_web/.dart_tool/package_config.json -Ddart.vm.profile=false -Ddart.vm.product=false --enable-asserts --track-widget-creation --filesystem-root /builds/eSonel_Client/eSonel_client/apps/esonel_web/integration_test --filesystem-root /builds/eSonel_Client/eSonel_client/apps/esonel_web/test --filesystem-root /tmp/flutter_tools.PJDAGJ/flutter_tools.KAVAMN --filesystem-scheme org-dartlang-app --initialize-from-dill build/b1b715402d823b7fd5c2b68d2edcb2ce.cache.dill.track.dill --platform file:///flutter/bin/cache/flutter_web_sdk/kernel/flutter_ddc_sdk_sound.dill --verbosity=error --sound-null-safety
    [   +6 ms] <- compile org-dartlang-app:/web_entrypoint.dart
    [+32557 ms] Waiting for connection from debug service on Web Server... (completed in 32.7s)
    [        ] Synced 64.0MB.
    [        ] <- accept
    [        ] Caching compiled dill
    [  +34 ms] integration_test/login_test.dart is being served at http://localhost:41079
    [        ] The web-server device requires the Dart Debug Chrome extension for debugging. Consider using the Chrome or Edge devices for an improved development workflow.
    [   +6 ms] Registering signal handlers...
    [ +357 ms] executing: /flutter/bin/cache/dart-sdk/bin/dart integration_test/test_driver/integration_test.dart -rexpanded
    
  14. HugoLeapFinancial commented on Aug 1, 2023

    @HugoLeapFinancial

    HI

    I am using

    [✓] Flutter (Channel stable, 3.10.6, on macOS 13.4.1 22F770820d darwin-x64, locale en-AR)
    [✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
    [✓] Xcode - develop for iOS and macOS (Xcode 14.3)
    [✓] Chrome - develop for the web
    [✓] Android Studio (version 2021.3)
    [✓] VS Code (version 1.80.2)
    [✓] Connected device (3 available)
    [✓] Network resources

    And I have the same problem with ChromeDriver()

    The error => Oops; flutter has exited unexpectedly: "UnknownException (500): unknown error: cannot find Chrome binary".

  15. kwiatek91 commented on Aug 2, 2023

    @kwiatek91
    Author

    @HugoLeapFinancial
    SeleniumHQ/selenium#12381 -> i think this was your issue

  16. kwiatek91 commented on Aug 2, 2023

    @kwiatek91
    Author

    We can close this issue.
    We resolved problem how to run integration test (web chrome) on docker environment
    Chrome cannot be used as root user if you create docker image, you must remember this and everything will work as on native solution

  17. github-actions commented on Aug 21, 2023

    @github-actions

    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 -v and a minimal reproduction of the issue.

  18. locked as resolved and limited conversation to collaborators on Aug 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listc: crashStack traces logged to the consolef: integration_testThe flutter/packages/integration_test pluginplatform-webWeb applications specificallyr: solvedIssue is closed as solvedteam-webOwned by Web platform teamtoolAffects the "flutter" command-line tool. See also t: labels.triaged-webTriaged by Web platform team

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions