Skip to content

Commit f6c6935

Browse files
authored
fix: 'what's new' pop-ups intercepting clicks (#48)
1 parent d6424e4 commit f6c6935

File tree

1 file changed

+11
-0
lines changed
  • bindings/src/Capgemini.PowerApps.SpecFlowBindings/Steps

1 file changed

+11
-0
lines changed

bindings/src/Capgemini.PowerApps.SpecFlowBindings/Steps/LoginSteps.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
namespace Capgemini.PowerApps.SpecFlowBindings.Steps
22
{
33
using Microsoft.Dynamics365.UIAutomation.Browser;
4+
using OpenQA.Selenium;
45
using TechTalk.SpecFlow;
56

67
/// <summary>
@@ -25,6 +26,16 @@ public static void GivenIAmLoggedInToTheAppAs(string appName, string userAlias)
2526
user.Password.ToSecureString());
2627

2728
XrmApp.Navigation.OpenApp(appName);
29+
30+
CloseTeachingBubbles();
31+
}
32+
33+
private static void CloseTeachingBubbles()
34+
{
35+
foreach (var closeButton in Driver.FindElements(By.ClassName("ms-TeachingBubble-closebutton")))
36+
{
37+
closeButton.Click();
38+
}
2839
}
2940
}
3041
}

0 commit comments

Comments
 (0)