Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Appium : Original error: -[XCUIElement resolve]: unrecognized selector sent to instance

Please find config i am using as below

Xcode : 11 GM Seed Appium : 1.14.2 Real Device : iPhone 7 (12.4.1)

I have updated my Xcode to 11 Because of the xcode 10.3 doesn’t support iOS 12.4.1.

After upgrading it started giving an error

Original error: -[XCUIElement resolve]: unrecognized selector sent to instance

App is getting launched but nothing happens after that and i can see above error in my appium console.

like image 260
Manish Boricha Avatar asked Oct 15 '22 11:10

Manish Boricha


3 Answers

It seems you don't need to downgrade Xcode if using Appium 1.15.0:

$ npm install -g [email protected]

My device's iOS is 12.4.1, I have both 11 and 10.3 Xcode's.

When I used Appium Desktop 1.13.0, I launched WDA by opening it's Xcode project ( in Xcode 10.3 ) and started testing WRA-Runner target ( CMD + U ). Then I ran

$ python -m unittest my_ui_test.py

Now with Appium 1.15.0 I just run:

$ appium

and then

$ python -m unittest my_ui_test.py

from another terminal tab.

Hope this helps.

like image 68
olha Avatar answered Oct 22 '22 17:10

olha


I try and it works on IOS simulator and real devices

Install appium Appium v1.15.0-rc.5 via nmp

Xcode 11.
IOS 13
========
install webdriveragent via path *node_modules/appium/node_modules/appium-webdriveragent* ==> appium had been update

ref https://github.com/appium/appium/issues/13288#issuecomment-535574619

like image 1
mit4ever Avatar answered Oct 22 '22 18:10

mit4ever


I have faced the same issue here. ios:13.1. I have tried on the 12.4.1 iphone but got the same issue xcode: 10.3

please share the solution

like image 1
Pac Chan Avatar answered Oct 22 '22 18:10

Pac Chan