This is the web inspection
<span jsslot="">
<button class="LkLjZd ScJHi IfEcue HPiPcc KXT7c" jsaction="click:yTqzwd" jsname="HxVe9c" autofocus="">Install</button>
</span>
I want to click on this element using the keyword Execute Javascript. I try like this
Execute JavaScript document.evaluate("//button[contains(text(),'Install')]",document.body,null,9,null).singleNodeValue.click()
After run test, it is PASS but no any action on web. It's still at the same. Could you please help?
I've already found the solution. According to there are several iframe, so should be select expected iframe before execute above command like this
Select Frame xpath=//*[@id="obj"]/div[5]/iframe
Execute JavaScript document.evaluate("//button[contains(text(),'Install')]",document.body,null,9,null).singleNodeValue.click()