I'm attempting to automate some of the tedious tasks involved in our email security protocols. Unfortunately, our email security provider's API doesn't include endpoints for 90% of the functions we need. As such, I've opted to employ Selenium for some browser automation. The trouble is, the web-page uses iFrames which is making Selenium less than intuitive.
As of now, I'm attempting to invoke the onMouseOver event handler of an element from a small snippet of executed JS. However, I've been depressingly unsuccessful. I've yet to find anyway to actually simulate a mouse pointer moving over an element.
Here is some of what I've tried so far that hasn't worked:
document.mcFrame1.document.querySelector("#menu_0").mouseover()
var eventMouseOver = new Event('pointerover'); document.mcFrame1.document.querySelector("#menu_0").dispatchEvent(eventMouseOver)
Any help would be greatly appreciated.