From ab354881d3d7da19307bfaf2445948f1f70281c7 Mon Sep 17 00:00:00 2001 From: Tyler Olson Date: Sun, 20 Sep 2020 16:16:22 -0500 Subject: [PATCH] Fix to check for more commands overflow button (#989) --- Microsoft.Dynamics365.UIAutomation.Api.UCI/WebClient.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Microsoft.Dynamics365.UIAutomation.Api.UCI/WebClient.cs b/Microsoft.Dynamics365.UIAutomation.Api.UCI/WebClient.cs index 0870da67..2ab912ab 100644 --- a/Microsoft.Dynamics365.UIAutomation.Api.UCI/WebClient.cs +++ b/Microsoft.Dynamics365.UIAutomation.Api.UCI/WebClient.cs @@ -1233,10 +1233,10 @@ internal BrowserCommandResult 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