Skip to content

Commit

Permalink
new implementation on click
Browse files Browse the repository at this point in the history
  • Loading branch information
licanhua committed Nov 28, 2020
1 parent 2de64a4 commit 884b519
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/Infra/Communication/Element.cs
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ public bool IsSelected()
public void Click()
{
EnsureNotOffScreen();
/*
foreach (var pattern in _uiObject.GetSupportedPatterns())
{
if (pattern.Id == InvokePattern.Pattern.Id)
Expand All @@ -191,13 +192,15 @@ public void Click()
}
}
_uiObject.Click();

*/
PointerInput.Click(_uiObject);
}

public void DoubleClick()
{
EnsureNotOffScreen();
_uiObject.DoubleClick();
//_uiObject.DoubleClick();
PointerInput.DoubleClick(_uiObject);
}

public bool IsStaleElement()
Expand Down

0 comments on commit 884b519

Please sign in to comment.