Hello I need to click on web view in my test. Button in webView code has following code:
<input type="submit" onclick="ignoreClose()" name="UsernamePasswordEntry" value="Submit">
I try to handle it like that:
onWebView().withElement(findElement(Locator.NAME, "UsernamePasswordEntry")).perform(webClick());
But I get:
java.lang.RuntimeException: java.lang.RuntimeException: Atom evaluation returned null!
Is there any way to handle it?
Try to use Locator.XPATH
, ex.
onWebView().withElement(findElement(Locator.XPATH, "here put XPATH")).perform(webClick())
To get XPATH
, just go to inspect elements on Web and right click on marked element and just copy XPATH
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With