Skip to content

Commit

Permalink
Adjust check for more commands overflow button (#987)
Browse files Browse the repository at this point in the history
  • Loading branch information
TYLEROL authored Sep 20, 2020
1 parent b2f1193 commit 96e191f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Microsoft.Dynamics365.UIAutomation.Api.UCI/WebClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1992,10 +1992,10 @@ public BrowserCommandResult<bool> ClickSubGridCommand(string subGridName, string
else
{
//Is the button in More Commands Overflow?
if (items.Any(x => x.GetAttribute("aria-label").Equals("More Commands", StringComparison.OrdinalIgnoreCase)))
if (items.Any(x => x.GetAttribute("aria-label").Contains("More Commands", StringComparison.OrdinalIgnoreCase)))
{
//Click More Commands
items.FirstOrDefault(x => x.GetAttribute("aria-label").Equals("More Commands", StringComparison.OrdinalIgnoreCase)).Click(true);
items.FirstOrDefault(x => x.GetAttribute("aria-label").Contains("More Commands", StringComparison.OrdinalIgnoreCase)).Click(true);
driver.WaitForTransaction();

// Locate the overflow button (More Commands flyout)
Expand Down

0 comments on commit 96e191f

Please sign in to comment.