I have raised a query regarding the mouse hover issue.Can you please look into this?
FYI:
On Thursday, 27 June 2019 19:13:16 UTC+5:30, Pralabh Kashyap wrote:
Hi Team,
I have been facing the MouseHover issue(Using java and javascript) on the IE11 browser for quite some time. I have tried various approaches but they didn't work under RedwoodHq.But if run the same codes on IDE it works perfectly.
I have tried the following approaches:-
Actions action = new Actions(driver);
action.moveToElement(element).build().perform();
OR
Actions act = new Actions(driver);
act.moveToElement(menu).perform();
actions.moveToElement(menu).clickAndHold();
OR
String mouseOverScript = "var evObj = document.createEvent('MouseEvents');evObj.initMouseEvent(\"mouseover\",true, false, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null);arguments[0].dispatchEvent(evObj);";
((JavascriptExecutor) driver).executeScript(mouseOverScript,menu);
OR
Using pixel finding approach
OR
Using robot class.
OR
String mouseOverScript = "if(document.createEvent){var evObj = document.createEvent('MouseEvents');evObj.initEvent('mouseover', true, false); arguments[0].dispatchEvent(evObj);} else if(document.createEventObject) { arguments[0].fireEvent('onmouseover');}";
((JavascriptExecutor) odriver).executeScript(mouseOverScript,ele);
The selenium and other jar's versions are the same. Also, the drivers are the same.
Can you please help me?