Check Dart Observatory URI is received

The problem

Executing the code to connect to the device I’ve reached the problem with Connecting to Dart Observatory

Environment

  • Appium version = 2.0.0-beta.44
  • Desktop OS: Windows 10
  • Npm version = 8.15.0
  • Mobile platform/version under test:
  • Android emulator

Capabilities:
driver = Remote(‘http://localhost:4723/wd/hub’, dict(
platformName=“Android”,
deviceName=“Android”,
automationName=“flutter”,
app=’{}/appium524.apk’.format(
os.path.dirname(os.path.realpath(file))),
))

Details

Hi all,
Want to describe my whole problem that I’m not able to connect flutter application via Appium
Firstly I’ve got the problem of
[FlutterDriver] [object Object] [FlutterDriver] Check Dart Observatory URI ws://127.0.0.1:36748/Qj6G0Afxrbw=/ws [FlutterDriver] Waiting 3 seconds before trying... [FlutterDriver] Attempt #17

I’ve found a solution that I have to change the proxy of device
I’ve run the command
adb forward tcp:36748 tcp:36748

But still receive the same problem

I see that I have this port in list:
adb forward --list
192.168.247.102:5555 tcp:8200 tcp:36748
192.168.247.102:5555 tcp:36748 tcp:36748
192.168.247.102:5555 tcp:8201 tcp:36748

Please, note that I’ve tried to launch the example of flutter-finder test from:


And it works
Maybe some package needs to be installed by executing my application…?

Link to Appium logs

Code To Reproduce Issue [ Good To Have ]

import os
import time

from appium.webdriver import Remote
from appium_flutter_finder.flutter_finder import FlutterElement, FlutterFinder

driver = Remote(‘http://localhost:4723/wd/hub’, dict(
platformName=“Android”,
deviceName=“Android”,
automationName=“flutter”,
app=’{}/appium524.apk’.format(
os.path.dirname(os.path.realpath(file))),
))
finder = FlutterFinder()

key_finder = finder.by_value_key(“usernameField”)
username_field = FlutterElement(driver, key_finder)
username_field.click()
username_field.send_keys(“ASD”)
driver.quit()