예제 #1
0
 public void AddNoticeOnInfoPage(string noticeText)
 {
     infoPage = new Pages.InfoPage(driver);
     infoPage.ClickaddNotice();
     infoPage.FillFieldNotice(noticeText);
     infoPage.ClickSaveNotice();
 }
예제 #2
0
 public bool IsDeleteActorFromFavorite(string name)
 {
     infoPage = new Pages.InfoPage(driver);
     Search(name);
     DeleteFavoriteActore();
     return(infoPage.IsExistClass());
 }
예제 #3
0
 public bool IsAddNotice(string noticeText)
 {
     AddNoticeOnInfoPage(noticeText);
     Thread.Sleep(4000);
     infoPage = new Pages.InfoPage(driver);
     return(infoPage.GetNoticeText().Contains(noticeText));
 }
예제 #4
0
 public bool IsOpenDirectorInfoPageFromFilmPage(string name)
 {
     infoPage = new Pages.InfoPage(driver);
     Search(name);
     infoPage.ClickDirector();
     return(infoPage.IsDirectorBestFilmsLabelExist());
 }
예제 #5
0
 public bool IsAddFilmToFavorite(string name)
 {
     infoPage = new Pages.InfoPage(driver);
     Search(name);
     AddFilmToFavorite();
     return(infoPage.IsFavoriteFilmsListExist());
 }
예제 #6
0
 public bool IsPushMark(string name)
 {
     infoPage = new Pages.InfoPage(driver);
     Search(name);
     infoPage.PushMark();
     return(infoPage.IsMyMarkLableExist());
 }
예제 #7
0
 public bool IsAddActoreToFavorite(string name)
 {
     infoPage = new Pages.InfoPage(driver);
     Search(name);
     AddActoreToFavorite();
     infoPage = new Pages.InfoPage(driver);
     return(infoPage.IsFavoriteStarsListExist());
 }
예제 #8
0
        public bool IsDeleteNotice()
        {
            DeleteNoticeOnInfoPage();

            Thread.Sleep(4000);
            infoPage = new Pages.InfoPage(driver);
            return(infoPage.GetNoticeText() == "");
        }
예제 #9
0
 public bool IsSortByMark(string actoreName)
 {
     mainPage = new Pages.MainPage(driver);
     mainPage.OpenPage();
     Search(actoreName);
     infoPage = new Pages.InfoPage(driver);
     infoPage.ClickSortByMarkBtn();
     return(infoPage.IsFirstMarkElementMoreThenSecond());
 }
예제 #10
0
        public bool IsPutMarkWithoutAuthorization(string name)
        {
            mainPage = new Pages.MainPage(driver);
            mainPage.OpenPage();
            Search(name);
            infoPage = new Pages.InfoPage(driver);
            infoPage.PushMark();

            return(infoPage.IsWarningMessageExist());
        }
예제 #11
0
 public void DeleteFavoriteActore()
 {
     infoPage = new Pages.InfoPage(driver);
     infoPage.ClickListButton();
     infoPage.ClickfavButton();
 }
예제 #12
0
 public void DeleteFromFavoritList()
 {
     infoPage = new Pages.InfoPage(driver);
     infoPage.ClickfavButton();
 }
예제 #13
0
 public void AddFilmToFavorite()
 {
     infoPage = new Pages.InfoPage(driver);
     infoPage.ClickAddFilmToFavoriteButton();
     Thread.Sleep(5000);
 }
예제 #14
0
 public void AddActoreToFavorite()
 {
     infoPage = new Pages.InfoPage(driver);
     infoPage.ClickListButton();
     infoPage.ClickfavButton();
 }
예제 #15
0
 public void DeleteNoticeOnInfoPage()
 {
     infoPage = new Pages.InfoPage(driver);
     infoPage.ClickremoveNotice();
     driver.SwitchTo().Alert().Accept();
 }