Skip to content

Commit

Permalink
Fix to check for more commands overflow button (#989)
Browse files Browse the repository at this point in the history
  • Loading branch information
TYLEROL authored Sep 20, 2020
1 parent 640add1 commit ab35488
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 @@ -1233,10 +1233,10 @@ internal BrowserCommandResult<bool> ClickCommand(string name, string subname = n
else
{
//Is the button in More Commands?
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();

//Click the button
Expand Down

0 comments on commit ab35488

Please sign in to comment.