AppiumTestDistribution / appium-device-farm

This is an Appium 2.0 plugin designed to manage and create driver sessions on available devices.
https://devicefarm.org
MIT License
284 stars 87 forks source link

iOS Device Not Show When Click Use Device #1207

Open erdncyz opened 1 week ago

erdncyz commented 1 week ago

When I click to use the device on iPhone devices, the devices do not appear and the screen remains as in the image I shared.

Use version device-farm : 8.4.7-rc.45

image

Log gist: https://gist.github.com/erdncyz/273e33df956845a07d0f7377da61dcb4

saikrishna321 commented 1 week ago

@erdncyz I tried and it works fine.

Steps:

  1. Started a session from the appium-device-farm
  2. Once I'm able to interaction with device from device-farm browser. I opened appium inspector and provided the host and remote port in inspector.
  3. Selected the Attach to session tab.
  4. From the dropdown you should be able to see the session id. select that on click on Attach to Session.

image

Please confirm if you have the same way and the issue exists.

nskcashHH commented 1 week ago

@erdncyz try to make these values the same in the browser

Screenshot 2024-06-23 at 18 43 18
sudharsan-selvaraj commented 1 week ago

Currently there is a limitation with appium inspector for loading images from device connected to a remote machine. I have raised a issue in appium inspector to address it https://github.com/appium/appium-inspector/issues/1505/

erdncyz commented 1 week ago

Hi @sudharsan-selvaraj

I think it has nothing to do with appium inspector. When I tried the old version of appium device farm on my old computer, it worked without any problems.

Appium version: 2.6.0 the same Appium Inspector: 2024.3.4 The same version Appium device farm version : device-farm@8.4.7-rc.37 But this version'da android remain loading on inspector

I added a video and a gist, can you take a look? https://gist.github.com/erdncyz/7d573455aea5ab5406af5aeee9e2e819

https://github.com/AppiumTestDistribution/appium-device-farm/assets/80248091/7731b157-c7f3-4ca6-831a-79e5fef8642a

saikrishna321 commented 1 week ago

@erdncyz In the video I see it's local machine where device and inspector are in the same machine.

Issue is with hub and node concept.

erdncyz commented 1 week ago

@saikrishna321

No, it works when I try it both ways, but in this version (37) it does not work at all in the 45th version. In version 37, the only problem is Android loading in Appium Inspectar.

Moreover, But I also wanted to point out that in the 45th version, it does not work when the device and the controller are on the same machine.

saikrishna321 commented 1 week ago

@erdncyz going forward the route that device-farm is going to work with inspector is you need to start the session from device-farm and attach the session in inspector.

There are multiple capabilities that needs to be considered and DF is handling them internally and communicates with Appium.

For iOS you need to upload the wda-resign.ipa for it to work.

Currently as there is a open issue with inspector like @sudharsan-selvaraj mentioned above. We need to wait until that is fixed for remote configuration.

For local setup things should be working fine.

Thanks for raising this issue and giving enough information to understand the use case better.

erdncyz commented 1 week ago

Okay, thank you @saikrishna321 I will wait for the problem to be resolved and try to use wda-resign during that time. But I shot a video in the 45th version and wanted to share it running on the same machine.

https://github.com/AppiumTestDistribution/appium-device-farm/assets/80248091/04dc0c50-7f84-4f58-bbf3-e60dd03b465a