Skip to content

Commit

Permalink
Fixing keyboard tests for Chrome
Browse files Browse the repository at this point in the history
  • Loading branch information
jimevans committed Apr 11, 2019
1 parent e002511 commit 6d8ac2c
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions dotnet/test/common/Interactions/BasicKeyboardInterfaceTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -189,10 +189,12 @@ public void SelectionSelectBySymbol()

WaitFor(() => input.GetAttribute("value") == "abc def", "did not send initial keys");

if (TestUtilities.IsFirefox(driver))
if (!TestUtilities.IsInternetExplorer(driver))
{
// When using geckodriver, the click in the below action
// sequence may fall inside the double-click threshold,
// When using drivers other than the IE, the click in
// the below action sequence may fall inside the double-
// click threshold (the IE driver has guards to prevent
// inadvertent double-clicks with multiple actions calls),
// so we call the "release actions" end point before
// doing the second action.
IActionExecutor executor = driver as IActionExecutor;
Expand Down Expand Up @@ -224,10 +226,12 @@ public void SelectionSelectByWord()

WaitFor(() => input.GetAttribute("value") == "abc def", "did not send initial keys");

if (TestUtilities.IsFirefox(driver))
if (!TestUtilities.IsInternetExplorer(driver))
{
// When using geckodriver, the click in the below action
// sequence may fall inside the double-click threshold,
// When using drivers other than the IE, the click in
// the below action sequence may fall inside the double-
// click threshold (the IE driver has guards to prevent
// inadvertent double-clicks with multiple actions calls),
// so we call the "release actions" end point before
// doing the second action.
IActionExecutor executor = driver as IActionExecutor;
Expand Down

0 comments on commit 6d8ac2c

Please sign in to comment.