-
Notifications
You must be signed in to change notification settings - Fork 188
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Appium iOS Driver Returns Unexpected Context Values During Automation #841
Comments
@SarmadSaleeem can you please share the appium version you are using? Both server and the client. |
@Dor-bl |
I am testing on ios 16.0 simulator. |
@SarmadSaleeem we no longer support appium client 4.x.y Please update to version 5.x.y and try again |
@Dor-bl I updated to latest version and fixed all the code issues. Now When I try to run I get this error "'automationName' can't be blank" Capability using Server log: |
Appium options already has the automationName property. |
@Dor-bl Still getting the same issue. Not able to get the WebView. var context = driver.Context; context is returning "Native app" [1] "System.Collections.Generic.Dictionary`2[System.String,System.Object]" |
So it might be a bug, I'll try to have a look at some point in the next few days |
@Dor-bl I updated my IOS simulator to 16.4 Now On appium inspector I am getting all the contexts but in code still having the same issue. |
The issue is solved now. I was using some additional capabilities. Now I removed all of them and left with only the required ones. Now I am able to get the correct values. Maybe some capability was causing the issue. Thank you so much @Dor-bl for your assistance. |
Good to hear. |
Ok I will try to figure out which capability was causing the issue. Then will update here. |
I am experiencing an issue with the Appium iOS Driver where the contexts returned during webview automation are incorrect. Despite the Appium server logs showing valid context values, my automation scripts are receiving unexpected strings, specifically "System.Collections.Generic.Dictionary`2[System.String,System.Object]" instead of the expected webview context IDs.
And in server logs
[61112fad][XCUITestDriver@edc5] Responding to client with driver.getContexts() result: [{"id":"NATIVE_APP"},{"id":"WEBVIEW_18156.1","title":"Floor Plan","url":"https://devapp.nfsonline.net/AutomationFP/?AppUserId=0eb8c8cb-5a70-4bca-8739-74881854ee90&Source=mobile&Functionality=floorplan&Platform=flutter","bundleId":"com.nfs.mobile"}]
The text was updated successfully, but these errors were encountered: