Working with RobotFramework(python) I'm trying to implement a method that would click intercepted element. I know it's possible with JS. Here's two methods that should supposedly work:
Execute Javascript document.evaluate("X-PATH",document.body,null,9,null).singleNodeValue.click()
Execute JavaScript function getElementByXpath(path) { return document.evaluate(path, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue; } var element=getElementByXpath("X-PATH"); element.click()
Both of them get passed but on UI click doesn't happen. What might be a problem??
xpath is unique for the element so it should be seen
Here's a logz: enter image description here
P.S it has nothing to do with intercepted element, it doesn't click on any other element