Skip to content

Commit

Permalink
Fixing mouse movement in .NET
Browse files Browse the repository at this point in the history
The previous commit to the mouse movement for .NET changed the optional
element ID from `null` to the empty string. This is incorrect. If no
element is specified in the move (for non-spec-compliant driver), omit the
ID altogether.
  • Loading branch information
jimevans committed Jun 5, 2018
1 parent 32b8c43 commit 8b82f79
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions dotnet/src/webdriver/Remote/RemoteMouse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,6 @@ public void MouseMove(ICoordinates where, int offsetX, int offsetY)
string elementId = where.AuxiliaryLocator.ToString();
parameters.Add("element", elementId);
}
else
{
parameters.Add("element", string.Empty);
}

parameters.Add("xoffset", offsetX);
parameters.Add("yoffset", offsetY);
Expand Down

0 comments on commit 8b82f79

Please sign in to comment.