public static void ShowLogoutPageAndDoLogout(IRunWebPage runPage, string logoutPageUrl, string logoutSucceedCheckUrl, int timeout) { IWebBrowser wb = runPage.ShowWebPage(logoutPageUrl, "logout", timeout, false, WebBrowserType.Chromium); DoLogoutMethod(runPage, wb, logoutSucceedCheckUrl, timeout); runPage.CloseWebPage("logout"); }
private static void ShowLoginPageAndDoLogin(IRunWebPage runPage, string loginPageUrl, string loginSucceedCheckUrl, int timeout, string loginName, string loginPassword) { IWebBrowser wb = runPage.ShowWebPage(loginPageUrl, "login", timeout, false, WebBrowserType.Chromium); DoLoginMethod(runPage, wb, loginName, loginPassword); runPage.CheckWebBrowserUrl(wb, loginSucceedCheckUrl, false, timeout); runPage.CloseWebPage("login"); }