C# Selenium nuget 3.3.0 + Selenium standalon server 3.3.1 and action builders

53 views
Skip to first unread message

peter....@trimble.com

unread,
Apr 24, 2017, 10:26:40 AM4/24/17
to Selenium Users
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 ?

peter....@trimble.com

unread,
Apr 25, 2017, 5:03:44 AM4/25/17
to Selenium Users
Problems with selenium nuget 3.4.0 + standaloneserver 3.4.0 and geckodriver +0.16 with firefox 53.0 does not still work with the code shown above.
Single clicks in firefox may work but eg. drawing a line with several points will occur in a crash.
Reply all
Reply to author
Forward
0 new messages