Comments (13)
If the issue is communication with real iPhone, I guess this is because port forward.
We're improving the logic like appium/appium-xcuitest-driver#1066
I guess you need to establish a connection to 54061
on the real device from this driver.
Probably flutter uses iproxy to achieve it. https://github.com/flutter/flutter/search?q=iproxy&unscoped_q=iproxy
(Appium replaced from iproxy to our own implementation for the usage)
from appium-flutter-driver.
@hongbiangoal Could you please send us to complete logs using gist.
from appium-flutter-driver.
https://gist.github.com/hongbiangoal/a45d27cbb9cd80b967c407d5e0df975c
from appium-flutter-driver.
@hongbiangoal I got below in the given logs.
Error: Couldn't start port forwarding on port 8202. Please provide a different port using 'wdaLocalPort' capability
2019-09-11 09:40:35:258 [XCUITest] at WebDriverAgent.createIProxy (/usr/local/lib/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/lib/wda/webdriveragent.js:263:13)
Didn't get any flutter related error.
Please use the available port in wdaLocalPort capability.
from appium-flutter-driver.
I use available port, but failed!
from appium-flutter-driver.
WebDriverAgent successfully started after 6969ms
[debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1568195760633 (17:56:00 GMT+0800 (**标准时间))
[debug] [XCUITest] Sending createSession command to WDA
[debug] [WD Proxy] Matched '/session' to command name 'createSession'
[debug] [WD Proxy] Proxying [POST /session] to [POST http://localhost:8402/session] with body: {"capabilities":{"firstMatch":[{"bundleId":"com.example.helloWorld","arguments":[],"environment":{},"eventloopIdleDelaySec":0,"shouldWaitForQuiescence":true,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true}],"alwaysMatch":{}}}
[debug] [WD Proxy] Got response with status 200: {"value":{"sessionId":"E3893CD7-CDBD-408E-9E67-91223B3E1D1E","capabilities":{"device":"iphone","browserName":"hello_world","sdkVersion":"12.4.1","CFBundleIdentifier":"com.example.helloWorld"}},"sessionId":"E3893CD7-CDBD-408E-9E67-91223B3E1D1E"}
[WD Proxy] Determined the downstream protocol as 'W3C'
[debug] [BaseDriver] Event 'wdaSessionStarted' logged at 1568195763123 (17:56:03 GMT+0800 (**标准时间))
[debug] [BaseDriver] Event 'wdaStarted' logged at 1568195763123 (17:56:03 GMT+0800 (**标准时间))
[XCUITest] Skipping setting of the initial display orientation. Set the "orientation" capability to either "LANDSCAPE" or "PORTRAIT", if this is an undesired behavior.
[debug] [BaseDriver] Event 'orientationSet' logged at 1568195763123 (17:56:03 GMT+0800 (**标准时间))
[FlutterDriver] Attempt #1
[FlutterDriver] Connecting to Dart Observatory: ws://127.0.0.1:54061/OP35kYReO6Q=/ws
[FlutterDriver] Error: connect ECONNREFUSED 127.0.0.1:54061
[FlutterDriver] at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1056:14)
[FlutterDriver] Check Dart Observatory URI ws://127.0.0.1:54061/OP35kYReO6Q=/ws
[FlutterDriver] Waiting 300 seconds before trying...
it seems ws's port not listen
from appium-flutter-driver.
Ok, will try to reproduce here and get back to you.
@truongsinh Any points you want to add here if you faced this earlier.
from appium-flutter-driver.
@hongbiangoal you are using this on real iphone device right?
from appium-flutter-driver.
@truongsinh yes
@KazuCocoa thanks,the port foward has work ok~~
from appium-flutter-driver.
resolved by iproxy localport deviceport
from appium-flutter-driver.
Can you explain how to Fix this issue . Even am facing the Same issue @hongbiangoal @KazuCocoa @shibupanda
from appium-flutter-driver.
Hi All,
I am also facing the same issue. Please help to resolve this issue.
from appium-flutter-driver.
I've same issues when run with android virual 9.0 google play.
I using app hello_word in default flutter C:\flutter\examples\hello_world
I using https://pypi.org/project/Appium-Flutter-Finder version 0.1.3
from appium-flutter-driver.
Related Issues (20)
- Observatory URL Issue HOT 9
- `scrollUntilVisible` and `scrollUntilTappable` are broken. HOT 1
- Some Android keyevents are not working with Flutter app
- [Tag 2.2.2] ScrollUntilVisible don't work well HOT 1
- Sometime Appium not working in about 30s
- iOS real device. Can't handle iOS prompt for Flutter tools - question HOT 1
- Swipe actions issue HOT 2
- Cannot perform method closeapp on flutter IOS HOT 2
- Real iOS device automation is getting "xcodebuild failed with code 70" error with "automationName: Flutter" setting, however, XCUITest is working fine HOT 7
- Launching native camera app with "automationName:Flutter" is looking for Observatory by default. HOT 1
- How can I confirm clickability, visibility, and retrieving attributes of Flutter elements using the appium-flutter-driver. HOT 1
- connection timed out issue after element.click command HOT 2
- How to perform waitFor on appium flutter driver java HOT 4
- add waitUntilFirstFrameRasterized?
- driver.activateApp method has not yet been implemented when running through IOS device HOT 6
- Appium opens the flutter application and then hangs, says port is busy HOT 2
- Cannot execute command WaitFor HOT 1
- driver.context("Native_APP") no longer works in io.appium java-client 9.0 HOT 1
- Sometimes WebView Context Not found HOT 10
- add check command
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from appium-flutter-driver.