appium / appium-flutter-driver

Appium Flutter Driver is a test automation tool for Flutter apps on multiple platforms/OSes. Appium Flutter Driver is part of the Appium mobile test automation tool maintained by community
MIT License
440 stars 179 forks source link

Launching native camera app with "automationName:Flutter" is looking for Observatory by default. #634

Closed pothurajtharun closed 7 months ago

pothurajtharun commented 7 months ago

I have to perform a scenario to capture the Photos in between the flutter application. When i follow the below steps appium-flutter-driver is looking for Observatory by default.

Steps followed:

  1. Start the session with automationName: Flutter and without app capability.
  2. Perform some operations on flutter application.
  3. Switch the context to NATIVE_APP.
  4. Launch the native camera app as ((IOSDriver) driver).activateApp("com.apple.camera");

Actual Output: Cannot determine the Dart Observatory URL after 30 retries. Original error: No observatory URL matching to '/(Observatory listening on |An Observatory debugger and profiler on\s.+\sis available at: |The Dart VM service is listening on )((http|\/\/)[a-zA-Z0-9:/=_-.[]]+)/' was found in the device log. Please make sure the application under test is configured properly according to https://github.com/appium-userland/appium-flutter-driver#usage and that it does not crash on startup.

@KazuCocoa , could you please let me know how to skip looking for observatory when we run the native applications using driver.activateApp method ?

Attaching the appium log: appium.log

Thanks!

pothurajtharun commented 7 months ago

I see i found the way here after little more search : https://github.com/appium/appium-flutter-driver/pull/563/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5R313