Closed Bouqui closed 2 years ago
Could you try out the latest version with appium 2 and share the full appium log?
npm install -g appium@next
Then https://github.com/appium-userland/appium-flutter-driver#installation
@KazuCocoa I have installed the appium-flutter-driver using the installation guide but I am still getting the error.
I have appium 1.22.2 installed and below is the full appium log
[info] [35m[Appium][39m Welcome to Appium v1.22.2
[info] [35m[Appium][39m Non-default server args:
[info] [35m[Appium][39m relaxedSecurityEnabled: true
[info] [35m[Appium][39m allowInsecure: {
[info] [35m[Appium][39m }
[info] [35m[Appium][39m denyInsecure: {
[info] [35m[Appium][39m }
[info] [35m[Appium][39m Appium REST http interface listener started on 0.0.0.0:4723[info] [35m[HTTP][39m [37m-->[39m [37mPOST[39m [37m/wd/hub/session[39m
[info] [35m[HTTP][39m [90m{"desiredCapabilities":{"app":"
/repos/rq_mobile-automation/apps/Runner.app","noReset":"true","platformVersion":"16.0","automationName":"Flutter","skipUnlock":"true","platformName":"ios","udid":"15FC87B5-38ED-4C88-BF90-68C916FE2C6B","deviceName":"iPhone 13 Pro"},"capabilities":{"firstMatch":[{"appium:app":"
repos/rq_mobile-automation/apps/Runner.app","appium:automationName":"Flutter","appium:deviceName":"iPhone 13 Pro","appium:noReset":"true","platformName":"ios","appium:platformVersion":"16.0","skipUnlock":"true","appium:udid":"15FC87B5-38ED-4C88-BF90-68C916FE2C6B"}]}}[39m
[debug] [35m[W3C][39m Calling AppiumDriver.createSession() with args: [{"app":"/repos/rq_mobile-automation/apps/Runner.app","noReset":"true","platformVersion":"16.0","automationName":"Flutter","skipUnlock":"true","platformName":"ios","udid":"15FC87B5-38ED-4C88-BF90-68C916FE2C6B","deviceName":"iPhone 13 Pro"},null,{"firstMatch":[{"appium:app":"/repos/rq_mobile-automation/apps/Runner.app","appium:automationName":"Flutter","appium:deviceName":"iPhone 13 Pro","appium:noReset":"true","platformName":"ios","appium:platformVersion":"16.0","skipUnlock":"true","appium:udid":"15FC87B5-38ED-4C88-BF90-68C916FE2C6B"}]}]
[debug] [35m[BaseDriver][39m Event 'newSessionRequested' logged at 1665146016179 (13:33:36 GMT+0100 (Irish Standard Time))
[warn] [35m[BaseDriver][39m The following capabilities are not standard capabilities and should have an extension prefix:
[warn] [35m[BaseDriver][39m skipUnlock
[info] [35m[Appium][39m Appium v1.22.2 creating new FlutterDriver (v0.0.32) session
[info] [35m[Appium][39m Applying relaxed security to 'FlutterDriver' as per server command line argument. All insecure features will be enabled unless explicitly disabled by --deny-insecure
[debug] [35m[BaseDriver][39m W3C capabilities and MJSONWP desired capabilities were provided
[debug] [35m[BaseDriver][39m Creating session with W3C capabilities: {
[debug] [35m[BaseDriver][39m "alwaysMatch": {
[debug] [35m[BaseDriver][39m "platformName": "ios",
[debug] [35m[BaseDriver][39m "appium:skipUnlock": "true",
[debug] [35m[BaseDriver][39m "appium:app": "/repos/rq_mobile-automation/apps/Runner.app",
[debug] [35m[BaseDriver][39m "appium:automationName": "Flutter",
[debug] [35m[BaseDriver][39m "appium:deviceName": "iPhone 13 Pro",
[debug] [35m[BaseDriver][39m "appium:noReset": "true",
[debug] [35m[BaseDriver][39m "appium:platformVersion": "16.0",
[debug] [35m[BaseDriver][39m "appium:udid": "15FC87B5-38ED-4C88-BF90-68C916FE2C6B"
[debug] [35m[BaseDriver][39m },
[debug] [35m[BaseDriver][39m "firstMatch": [
[debug] [35m[BaseDriver][39m {}
[debug] [35m[BaseDriver][39m ]
[debug] [35m[BaseDriver][39m }
[warn] [35m[BaseDriver][39m Capability 'noReset' changed from string to boolean. This may cause unexpected behavior
[warn] [35m[BaseDriver][39m The following capabilities were provided, but are not recognized by Appium:
[warn] [35m[BaseDriver][39m skipUnlock
[warn] [35m[BaseDriver][39m app
[info] [35m[BaseDriver][39m Session created with session id: 1ddf2290-aa64-466d-983c-31a1cdbd23c7
[info] [35m[FlutterDriver][39m Starting an IOS proxy session
[debug] [35m[BaseDriver][39m W3C capabilities and MJSONWP desired capabilities were provided
[debug] [35m[BaseDriver][39m Creating session with W3C capabilities: {
[debug] [35m[BaseDriver][39m "alwaysMatch": {
[debug] [35m[BaseDriver][39m "platformName": "ios",
[debug] [35m[BaseDriver][39m "appium:skipUnlock": "true",
[debug] [35m[BaseDriver][39m "appium:app": "/repos/rq_mobile-automation/apps/Runner.app",
[debug] [35m[BaseDriver][39m "appium:automationName": "Flutter",
[debug] [35m[BaseDriver][39m "appium:deviceName": "iPhone 13 Pro",
[debug] [35m[BaseDriver][39m "appium:noReset": "true",
[debug] [35m[BaseDriver][39m "appium:platformVersion": "16.0",
[debug] [35m[BaseDriver][39m "appium:udid": "15FC87B5-38ED-4C88-BF90-68C916FE2C6B"
[debug] [35m[BaseDriver][39m },
[debug] [35m[BaseDriver][39m "firstMatch": [
[debug] [35m[BaseDriver][39m {}
[debug] [35m[BaseDriver][39m ]
[debug] [35m[BaseDriver][39m }
[warn] [35m[BaseDriver][39m Capability 'noReset' changed from string to boolean. This may cause unexpected behavior
[warn] [35m[BaseDriver][39m The following capabilities were provided, but are not recognized by Appium:
[warn] [35m[BaseDriver][39m skipUnlock
[info] [35m[BaseDriver][39m Session created with session id: b0cdd4be-1ae5-4056-956b-b4588813155b[debug] [35m[XCUITest][39m Current user:
[debug] [35m[XCUITest][39m Available devices:
[debug] [35m[XCUITest][39m No real device with udid '15FC87B5-38ED-4C88-BF90-68C916FE2C6B'. Looking for simulator
[info] [35m[iOSSim][39m Constructing iOS simulator for Xcode version 14.0.1 with udid '15FC87B5-38ED-4C88-BF90-68C916FE2C6B'
[info] [35m[XCUITest][39m Determining device to run tests on: udid: '15FC87B5-38ED-4C88-BF90-68C916FE2C6B', real device: false
[debug] [35m[BaseDriver][39m Event 'xcodeDetailsRetrieved' logged at 1665146017090 (13:33:37 GMT+0100 (Irish Standard Time))
[info] [35m[BaseDriver][39m Using local app '/repos/rq_mobile-automation/apps/Runner.app'
[debug] [35m[BaseDriver][39m Event 'appConfigured' logged at 1665146017092 (13:33:37 GMT+0100 (Irish Standard Time))
[debug] [35m[XCUITest][39m Checking whether app '/repos/rq_mobile-automation/apps/Runner.app' is actually present on file system
[debug] [35m[XCUITest][39m App is present
[debug] [35m[XCUITest][39m Getting bundle ID from app '/repos/rq_mobile-automation/apps/Runner.app': 'com.reliaquest.rqfirst'
[debug] [35m[BaseDriver][39m Event 'resetStarted' logged at 1665146017095 (13:33:37 GMT+0100 (Irish Standard Time))
[debug] [35m[XCUITest][39m Reset: noReset is on. Leaving simulator as is
[debug] [35m[BaseDriver][39m Event 'resetComplete' logged at 1665146017095 (13:33:37 GMT+0100 (Irish Standard Time))
[info] [35m[WebDriverAgent][39m Using WDA path: '/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/appium-webdriveragent'
[info] [35m[WebDriverAgent][39m Using WDA agent: '/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj'[debug] [35m[IOSSimulatorLog][39m Starting log capture for iOS Simulator with udid '15FC87B5-38ED-4C88-BF90-68C916FE2C6B' using simctl[debug] [35m[BaseDriver][39m Event 'logCaptureStarted' logged at 1665146017690 (13:33:37 GMT+0100 (Irish Standard Time))
[info] [35m[XCUITest][39m Setting up simulator
[debug] [35m[XCUITest][39m No reason to set locale
[debug] [35m[XCUITest][39m No iOS / app preferences to set
[debug] [35m[XCUITest][39m Setting did not need to be updated
[debug] [35m[iOSSim][39m Setting preferences of 15FC87B5-38ED-4C88-BF90-68C916FE2C6B Simulator to {"ConnectHardwareKeyboard":false}
[debug] [35m[iOSSim][39m Setting common Simulator preferences to {"RotateWindowWhenSignaledByGuest":true,"ConnectHardwareKeyboard":false,"PasteboardAutomaticSync":false}
[debug] [35m[iOSSim][39m Updated 15FC87B5-38ED-4C88-BF90-68C916FE2C6B Simulator preferences at '/Library/Preferences/com.apple.iphonesimulator.plist' with {"RotateWindowWhenSignaledByGuest":true,"ConnectHardwareKeyboard":false,"PasteboardAutomaticSync":false,"DevicePreferences":{"15FC87B5-38ED-4C88-BF90-68C916FE2C6B":{"ConnectHardwareKeyboard":false,"SimulatorExternalDisplay":2114,"ChromeTint":"","SimulatorWindowOrientation":"Portrait","SimulatorWindowGeometry":{"EDDF8291-776B-4149-A3E9-43011DEF0508":{"WindowCenter":"{1237, 526}","WindowScale":1}},"SimulatorWindowRotationAngle":0}}}[debug] [35m[iOSSim][39m Got Simulator UI client PID: 688
[info] [35m[iOSSim][39m Both Simulator with UDID '15FC87B5-38ED-4C88-BF90-68C916FE2C6B' and the UI client are currently running[debug] [35m[BaseDriver][39m Event 'simStarted' logged at 1665146018448 (13:33:38 GMT+0100 (Irish Standard Time))
[debug] [35m[XCUITest][39m Verifying application platform
[debug] [35m[XCUITest][39m CFBundleSupportedPlatforms: ["iPhoneSimulator"][debug] [35m[XCUITest][39m App 'com.reliaquest.rqfirst' is already installed. No need to reinstall.
[debug] [35m[BaseDriver][39m Event 'appInstalled' logged at 1665146018759 (13:33:38 GMT+0100 (Irish Standard Time))
[debug] [35m[WebDriverAgent][39m No obsolete cached processes from previous WDA sessions listening on port 8100 have been found
[info] [35m[DevCon Factory][39m Requesting connection for device 15FC87B5-38ED-4C88-BF90-68C916FE2C6B on local port 8100
[debug] [35m[DevCon Factory][39m Cached connections count: 0
[info] [35m[DevCon Factory][39m Successfully requested the connection for 15FC87B5-38ED-4C88-BF90-68C916FE2C6B:8100
[debug] [35m[XCUITest][39m Starting WebDriverAgent initialization with the synchronization key 'XCUITestDriver'
[debug] [35m[WD Proxy][39m Matched '/status' to command name 'getStatus'
[debug] [35m[WD Proxy][39m Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[debug] [35m[WD Proxy][39m Got response with status 200: {"value":{"message":"WebDriverAgent is ready to accept commands","state":"success","os":{"testmanagerdVersion":28,"name":"iOS","sdkVersion":"15.4","version":"16.0"},"ios":{"simulatorVersion":"16.0","ip":"10.6.20.39"},"ready":true,"build":{"upgradedAt":"1644399105000","time":"Sep 12 2022 15:30:35","productBundleIdentifier":"com.facebook.WebDriverAgentRunner"}},"sessionId":null}
[debug] [35m[WebDriverAgent][39m Upgrade timestamp of the currently bundled WDA: 1644399105000
[debug] [35m[WebDriverAgent][39m Upgrade timestamp of the WDA on the device: 1644399105000
[info] [35m[WebDriverAgent][39m Will reuse previously cached WDA instance at 'http://127.0.0.1:8100/' with 'com.facebook.WebDriverAgentRunner'. Set the wdaLocalPort capability to a value different from 8100 if this is an undesired behavior.
[debug] [35m[XCUITest][39m Trying to start WebDriverAgent 2 times with 10000ms interval
[debug] [35m[XCUITest][39m These values can be customized by changing wdaStartupRetries/wdaStartupRetryInterval capabilities
[debug] [35m[BaseDriver][39m Event 'wdaStartAttempted' logged at 1665146018864 (13:33:38 GMT+0100 (Irish Standard Time))
[info] [35m[WebDriverAgent][39m Using provided WebdriverAgent at 'http://127.0.0.1:8100/'
[debug] [35m[WD Proxy][39m Matched '/status' to command name 'getStatus'
[debug] [35m[WD Proxy][39m Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[debug] [35m[WD Proxy][39m Got response with status 200: {"value":{"message":"WebDriverAgent is ready to accept commands","state":"success","os":{"testmanagerdVersion":28,"name":"iOS","sdkVersion":"15.4","version":"16.0"},"ios":{"simulatorVersion":"16.0","ip":"10.6.20.39"},"ready":true,"build":{"upgradedAt":"1644399105000","time":"Sep 12 2022 15:30:35","productBundleIdentifier":"com.facebook.WebDriverAgentRunner"}},"sessionId":null}
[debug] [35m[BaseDriver][39m Event 'wdaSessionAttempted' logged at 1665146018868 (13:33:38 GMT+0100 (Irish Standard Time))
[debug] [35m[XCUITest][39m Sending createSession command to WDA
[debug] [35m[WD Proxy][39m Matched '/session' to command name 'createSession'
[debug] [35m[WD Proxy][39m Proxying [POST /session] to [POST http://127.0.0.1:8100/session] with body: {"capabilities":{"firstMatch":[{"bundleId":"com.reliaquest.rqfirst","arguments":[],"environment":{},"eventloopIdleDelaySec":0,"shouldWaitForQuiescence":true,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true,"shouldTerminateApp":false,"forceAppLaunch":false,"useNativeCachingStrategy":true,"forceSimulatorSoftwareKeyboardPresence":true}],"alwaysMatch":{}}}[debug] [35m[WD Proxy][39m Got response with status 200: {"value":{"sessionId":"DABECD83-9E85-426A-8303-07D94C1785C5","capabilities":{"device":"iphone","browserName":"RQBuzz","sdkVersion":"16.0","CFBundleIdentifier":"com.reliaquest.rqfirst"}},"sessionId":"DABECD83-9E85-426A-8303-07D94C1785C5"}
[info] [35m[WD Proxy][39m Determined the downstream protocol as 'W3C'
[debug] [35m[BaseDriver][39m Event 'wdaSessionStarted' logged at 1665146018916 (13:33:38 GMT+0100 (Irish Standard Time))
[debug] [35m[BaseDriver][39m Event 'wdaStarted' logged at 1665146018916 (13:33:38 GMT+0100 (Irish Standard Time))
[info] [35m[XCUITest][39m Skipping setting of the initial display orientation. Set the "orientation" capability to either "LANDSCAPE" or "PORTRAIT", if this is an undesired behavior.
[debug] [35m[BaseDriver][39m Event 'orientationSet' logged at 1665146018917 (13:33:38 GMT+0100 (Irish Standard Time))
[debug] [35m[BaseDriver][39m The value of 'elementResponseAttributes' setting did not change. Skipping the update for it
[debug] [35m[BaseDriver][39m The value of 'shouldUseCompactResponses' setting did not change. Skipping the update for it
[debug] [35m[WD Proxy][39m Matched '/session/b0cdd4be-1ae5-4056-956b-b4588813155b' to command name 'deleteSession'
[debug] [35m[WD Proxy][39m Proxying [DELETE /session/b0cdd4be-1ae5-4056-956b-b4588813155b] to [DELETE http://127.0.0.1:8100/session/DABECD83-9E85-426A-8303-07D94C1785C5] with no body
[debug] [35m[WD Proxy][39m Got response with status 200: {"value":null,"sessionId":null}
[info] [35m[DevCon Factory][39m Releasing connections for 15FC87B5-38ED-4C88-BF90-68C916FE2C6B device on any port number
[info] [35m[DevCon Factory][39m Found cached connections to release: ["15FC87B5-38ED-4C88-BF90-68C916FE2C6B:8100"]
[debug] [35m[DevCon Factory][39m Cached connections count: 0
[debug] [35m[XCUITest][39m Not clearing log files. Use `clearSystemFiles` capability to turn on.
[debug] [35m[IOSSimulatorLog][39m Stopping iOS log capture
[debug] [35m[FlutterDriver][39m Deleting Flutter Driver session
[debug] [35m[BaseDriver][39m Event 'newSessionStarted' logged at 1665146018934 (13:33:38 GMT+0100 (Irish Standard Time))
[debug] [35m[W3C][39m Encountered internal error running command: TypeError: Cannot read property 'match' of undefined
[debug] [35m[W3C][39m at Object.exports.processLogToGetobservatory (/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/appium-flutter-driver/build/driver/lib/sessions/observatory.js:118:9)
[debug] [35m[W3C][39m at Object.exports.getObservatoryWsUri (/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/appium-flutter-driver/lib/sessions/ios.ts:77:21)
[debug] [35m[W3C][39m at Object.exports.startIOSSession (/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/appium-flutter-driver/lib/sessions/ios.ts:31:30)
[debug] [35m[W3C][39m at processTicksAndRejections (internal/process/task_queues.js:85:5)
[debug] [35m[W3C][39m at FlutterDriver.exports.createSession (/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/appium-flutter-driver/lib/sessions/session.ts:15:47)
[debug] [35m[W3C][39m at AppiumDriver.createSession (/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/lib/appium.js:387:35)
[info] [35m[HTTP][39m [37m<-- POST /wd/hub/session [39m[31m500[39m [90m2808 ms - 667[39m
[info] [35m[HTTP][39m [90m[39m[debug] [35m[WebDriverAgent][39m Parsed BUILD_DIR configuration value: '
Library/Developer/Xcode/DerivedData/WebDriverAgent-aghlrsejdreqngftgvcqwnjgrbou/Build/Products'
[debug] [35m[WebDriverAgent][39m Got derived data root: '
/Library/Developer/Xcode/DerivedData/WebDriverAgent-aghlrsejdreqngftgvcqwnjgrbou'
Also, "npm i -g appium@next" isn't installing appium 2.0 on my machine
Also, "npm i -g appium@next" isn't installing appium 2.0 on my machine
hm, what message was raised? As https://www.npmjs.com/package/appium, next
tag has 2.0.0-beta
Please share the npm install log (maybe debug flag may help) if still something error occurred
Hi, I am pretty new to appium-flutter-driver. I am currently trying to do a set up for it but I am getting an error every time I set "automationName" as "Flutter"
Error - An unknown server-side error occurred while processing the command. Original error: Cannot read property 'match' of undefined
Below are the dependencies I added to my pom.xml
Language - Java
Pls, help as I am currently stuck
Thanks