Hi,
i have tried to search for a while now the reason why actions built in this way shown below stopped working:
IWebElement MoveToElement;
Actions actions = new Actions(wd);
/* TESTSTEP 17. */
handler.reportStep("SELECT DRAW POLYLINE");
wd.FindAndWait(By.XPath("//a[contains(@class,'icon-drawpolyline')]")).Click();
MoveToElement = wd.FindAndWait(By.Id("mapcontainer"));
actions = new Actions(wd);
actions.MoveToElement(MoveToElement, 400, 300);
actions.Click();
actions.Perform();
handler.ThreadSleep(500);
MoveToElement = wd.FindAndWait(By.Id("mapcontainer"));
actions.MoveToElement(MoveToElement, 600, 300);
actions.Click();
actions.Perform();
handler.ThreadSleep(500);
The first click works ok in some cases at least with chromefriver but geckodriver does not work that well at all.
Some times i get notImplemented moveMouseTo exceptions in c# console output and at same time selenium logs noSuppoerted moveMouseTo
At some point i read that new w3c standardization is the issue why actions wont work. At that point w3c stated that actions are still unimplemented. But now they seem to be implemented but does not work for me.
Could the nuget selenium version 3.3.0 be the issue, thus should i wait for nuget package 3.3.1 ?
This kind of interactions works in chrome with newest version (nuget 3.3.0, standalone.jar 3.3.1
/* TESTSTEP 12. */
handler.reportStep("MOVE MOUSE WITH ACTIONS TO PICK A POINT > TAB > TAB > ENTER");
MoveToElement = wd.FindAndWait(By.Id("mapcontainer"));
actions = new Actions(wd);
actions.MoveToElement(MoveToElement, 600, 280);
actions.Click();
actions.Perform();
My workaround for the issue is to use
- Nuget package of selenium of version 3.0.1
- StandaloneSelenium.jar sever version 2.53.0
- geckodriver 0.15
- chromedriver is 2.29...
I'm wondering what is the part that makes this thing not to work properly ? -> Is it browserdrivers eg. chromedriver/qeckodriver or is it selenium nuget package or the standalone server ?