/// <summary> /// Navigates to about me page /// </summary> public static void NavigateToAboutMe() { string dashboardUrl = Configuration.DashboardUrl; WebDriver.CurrentState.Navigate($"{dashboardUrl}/Home/AboutMe"); if (!WebDriver.CurrentState.URL().StartsWith($"{dashboardUrl}/Home/AboutMe")) { // We may have to consent a second time since we are asking for a new audience try { // Loading takes time, while opening the dashboard for the first time after setting the environment Thread.Sleep(20000); ClickNext(); } catch { // Nothing to do } } var aboutMePageAction = new AboutMePageAction(); aboutMePageAction.ValidateTitle(); }
/// <summary> /// Navigates to about me page /// </summary> public static void NavigateToAboutMe() { string dashboardUrl = Configuration.DashboardUrl; WebDriver.CurrentState.Navigate($"{dashboardUrl}/Home/AboutMe"); if (!WebDriver.CurrentState.URL().StartsWith($"{dashboardUrl}/Home/AboutMe")) { // We may have to consent a second time since we are asking for a new audience try { ClickNext(); } catch { // Nothing to do } } var aboutMePageAction = new AboutMePageAction(); aboutMePageAction.ValidateTitle(); }