Kantu does not click button


#1

Hi,
Kantu does not click on simple button with it’s visualVerify command, but it identifies the image match.
How to make Kantu to click on the button found in following test page “Click me”

link: https://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_onclick

Source:
{
“CreationDate”: “2018-7-26”,
“Commands”: [
{
“Command”: “open”,
“Target”: “https://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_onclick”,
“Value”: “”
},
{
“Command”: “visualVerify”,
“Target”: “FjE4dr_dpi_96.png”,
“Value”: “btn”
},
{
“Command”: “clickAt”,
“Target”: “#efp”,
“Value”: “”
}
]
}


#2

This is because the button is inside an iFrame. So before the Click #efp command you need to add:

{
  "Command": "selectFrame",
  "Target": "id=iframeResult",
  "Value": ""
},

#efp (= ElementFromPoint) is not a desktop mouseclick like the SeeShell Browser can do, it operates inside the browser’s DOM. Thus you need to tell it in which iframe it should look for the element. That is a limitation of browser extensions in general. By contrast, our customized Chromium browser (SeeShell Browser) can simulate real Windows mouse clicks.


#3

thanks for you response.

in the similar way I have tried but it didn’t work in the following link (clicking on “Try it” does not show pop-up alert as expected)
https://www.w3schools.com/js/tryit.asp?filename=tryjs_alert

Could you please help…
(I’m a newbie and just started experimenting Kantu and have little knowledge about html/javascript/css…)

I have also tried SeeShell Browser but
* couldn’t locate recordings in right side(Available Record(s))
* gets stuck when getting pop-up alert (clicking “Try it” on the above link)