示例#1
0
        public void SetUp()
        {
            WebDriverUtil.Init();
            WebDriverUtil.GetWebDriver().Url = MailRuConstants.MailRuUrl;
            WebDriverUtil.GetWebDriver().Manage().Window.Maximize();
            LoginPage loginPage = new LoginPage();
            HomePage  homePage  = loginPage.Login(User.GetDefaultUser());

            Assert.IsTrue(loginPage.IsLogoutLinkDisplayed());
        }
示例#2
0
 public LoginPage()
 {
     PageFactory.InitElements(WebDriverUtil.GetWebDriver(), this);
 }
示例#3
0
 public string GetPageTitle()
 {
     return(WebDriverUtil.GetWebDriver().Title);
 }
 public SendLetterPage()
 {
     PageFactory.InitElements(WebDriverUtil.GetWebDriver(), this);
 }