コード例 #1
0
 /// <summary>
 /// Method that navigates to the main page
 /// </summary>
 /// <returns></returns>
 public MainMailPage NavigateToMainPage()
 {
     _driver.Url = "https://m.mail.ru/";
     return(_mainPage = new MainMailPage(_driver));
 }
コード例 #2
0
 /// <summary>
 /// Class constructor
 /// </summary>
 /// <param name="driver">Driver that will be used</param>
 public MailRu(IWebDriver driver)
 {
     _driver     = driver;
     _driver.Url = "https://m.mail.ru/";
     _mainPage   = new MainMailPage(_driver);
 }