Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I cant't connect appium-server desktop and appium inspector with my smartphone while i can see my device is well connected in my terminal on windows

I just used Appium-desktop to see logs during the connection with my smartphone and Appium-inspector to inspect the DOM too, I'm new in this exercise and I search a lot without any result for the moment. I can see my smartphone is well connected and the server seems to work.
enter image description here

I created a Android folder in C:\Users<USERNAME>\AppData\Local, in it I have installed cmdline-tools, platform-tools and run the command :
sdkmanager "build-tools;28.0.3" to install others packages in the Android folder
My environment:

OS : Windows 10  
Appium version : 1.22.0  
Node : v14.17.6  
Npm : 6.14.15  
Sdkmanager : 4.0.1  

I show you in pictures the state of Appium-desktop at the starting and during the processus
enter image description here

My host is 0.0.0.0, port: 4723
enter image description here

Disared capabilities: platformName: Android  
                      deviceName: HUAWEI VNS-L31  
                      udid: FUH7N16607025752  
                      plateformVersion: 7.0  

And unfortunately it doesn't work when I start session
enter image description here
enter image description here

I have this error message:

"Error
Failed to create session. The requested resource could not be found, or a request was received using an HTTP method that is not supported by the mapped resource"

enter image description here

Does anyone have an idea please?

like image 928
Bardinet-Langlois Thibault Avatar asked Jan 19 '26 13:01

Bardinet-Langlois Thibault


1 Answers

I had the same problem. Try the following:

  1. Go to Appium Server GUI -> Advanced
    Server address: localhost
    Port: 4723
    Allow CORP: yes

  2. Go to Appium Inspector
    Remote host: localhost
    Port: 4723
    Path: /wd/hub

  3. Allow Unauthorized Certificates

  4. Select your capabilities

  5. Start server

like image 142
Juan Pablo Rodriguez Avatar answered Jan 22 '26 08:01

Juan Pablo Rodriguez



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!