appcenter-docs icon indicating copy to clipboard operation
appcenter-docs copied to clipboard

"InvokeJS on iOS" doesn't work as explained

Open MaxFmi opened this issue 3 years ago • 0 comments

InvokeJS on Android works as described and expected. App.Query(x => x.WebView().InvokeJS("any JavaScrip command"));

Invoking the same command under iOS results in doing nothing and just stepping over the execution. App.Query(x => x.WebView().InvokeJS("any JavaScrip command"));

In my case I tried to scroll to a specific element by id "document.getElementById('any_id').scrollIntoView(true)";

Original documentation https://docs.microsoft.com/en-us/appcenter/test-cloud/frameworks/uitest/features/webviews#invokejs-on-ios

FYI: I've found some posts but they weren't very helpful. They just confused me even more. Would be great if the original documentation would describe how to use it insimple steps.

PS: The Example section is empty. https://docs.microsoft.com/en-us/appcenter/test-cloud/frameworks/uitest/features/webviews#examples -> https://github.com/MicrosoftDocs/appcenter-docs/issues/1301

Workaround: I don't know any yet. If anyone knows a solution or have a work-around, please let me know.

Thanks for your effort.

Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

MaxFmi avatar Nov 08 '21 10:11 MaxFmi