AppiumTestDistribution / appium-device-farm

This is an Appium 2.0 plugin designed to manage and create driver sessions on available devices.
https://devicefarm.org
Other
341 stars 104 forks source link

XCUIApplicationProcess waitForQuiescenceIncludingAnimationsIdle:]: unrecognized selector sent to instance Error on Driver.PageSource #1442

Closed Hammad1954 closed 1 week ago

Hammad1954 commented 1 week ago

Describe the bug

XCUIApplicationProcess waitForQuiescenceIncludingAnimationsIdle:]: unrecognized selector sent to instance Error on Driver.PageSource

Link to Appium logs

GIST : https://gist.github.com/Hammad1954/647119e5aff704750bbc21b491635682

Client Side Driver Error : OpenQA.Selenium.WebDriverException HResult=0x80131500 Message=An unknown server-side error occurred while processing the command. Original error: -[XCUIApplicationProcess waitForQuiescenceIncludingAnimationsIdle:]: unrecognized selector sent to instance 0x3008dce80 Source=WebDriver StackTrace: at OpenQA.Selenium.Remote.RemoteWebDriver.UnpackAndThrowOnError(Response errorResponse) at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary2 parameters) at OpenQA.Selenium.Appium.AppiumDriver1.Execute(String driverCommandToExecute, Dictionary`2 parameters) at OpenQA.Selenium.Remote.RemoteWebDriver.get_PageSource()

saikrishna321 commented 1 week ago

This issue is not related to the plugin. Please raise to appium

Hammad1954 commented 1 week ago

@saikrishna321 I have done some research on above issue . I found that WDA provided in this project is not build with latest XCUITest . could you please let me know if this is the case. which is causing the issue. I am using iPhone 12 with 17.6.1 version. In this project WDA is 3 month old so it could be that we need to rebuild the WDA.ipa with latest XCUITest.

saikrishna321 commented 1 week ago

@Hammad1954 You can build your own WDA.ipa. Please check this section https://devicefarm.org/ios-signing/ How do I build WebDriverAgent from source?

Hammad1954 commented 1 week ago

Like the WDA.ipa you have provided in project you can rebuild that on latest XCUITest and provide the updated WDA.ipa for all. but thanks @saikrishna321 for the resource will check on this and update you.

saikrishna321 commented 1 week ago

ike the WDA.ipa you have provided in project you can rebuild that on latest XCUITest and provide the updated WDA.ipa for all

Yes ur right!

Hammad1954 commented 1 week ago

@saikrishna321 I have gone through the document and this process I have already done in which I have resigned the WDA.ipa with my provisional profile and uploaded on appium device farm with wda-resign.ipa. but as original WDA is build on older version so I think you need to provide the latest version of that. please let me know if we can get that that will be very helpful?

saikrishna321 commented 1 week ago

@Hammad1954

I have gone through the document and this process I have already done in which I have resigned the WDA.ipa with my provisional profile and uploaded on appium device farm with wda-resign.ipa

Did this solve your issue ?

Hammad1954 commented 1 week ago

I have already done the process before reporting the issue only. so this will not resolve the issue. @saikrishna321

saikrishna321 commented 1 week ago

@Hammad1954 If you have already build the latest wda and pushed to appium-device-farm and still encounter this problem then its not device-farm.

Hammad1954 commented 1 week ago

I have not build the WDA , I have just resigned your WDA with my provisional profile. @saikrishna321 , if possible can you let me know the XCUITest version you have used when building this WDA that you have provided.

saikrishna321 commented 3 days ago

@Hammad1954 You build any version of the WDA from the source.

Hammad1954 commented 3 days ago

@saikrishna321 Thanks for the help , just one doubt I have, if I build my WDA using xcodeproj of WDA so do I have to keep bundleID as com.atd.pro.xctrunner.

saikrishna321 commented 3 days ago

@Hammad1954 you can provide any bundleID that fits ur cert