Can't return JS script results from iOS device (work with android)
Opened this issue · 2 comments
PatocheCS commented
Hi,
To test a webview based mobile application, I try to execute js command with keyword "Execute Script driver:return testing.module.getMyData();"
With Android Device I return correctly my liste of data but with iOS device, return seems doesn't work.
I don't understand why.
serhatbolsu commented
Please share full code example @PatocheCS
884105899 commented
@serhatbolsu
Code:
Execute Script return document.getElementById("card_number").value="${card_info.card_number}"
Error:
Keyword 'AppiumLibrary.Execute Script' expected 1 non-named argument, got 0.