Skip to content

Commit

Permalink
fix: 'what's new' pop-ups intercepting clicks (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
ewingjm authored Nov 19, 2020
1 parent d6424e4 commit f6c6935
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
namespace Capgemini.PowerApps.SpecFlowBindings.Steps
{
using Microsoft.Dynamics365.UIAutomation.Browser;
using OpenQA.Selenium;
using TechTalk.SpecFlow;

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

XrmApp.Navigation.OpenApp(appName);

CloseTeachingBubbles();
}

private static void CloseTeachingBubbles()
{
foreach (var closeButton in Driver.FindElements(By.ClassName("ms-TeachingBubble-closebutton")))
{
closeButton.Click();
}
}
}
}

0 comments on commit f6c6935

Please sign in to comment.