Ejemplo n.º 1
0
 public void testUsersPlaylist()
 {
     try
     {
         SeleniumLoginMethod.loginToYoutube(this.email, this.password);
         youTubePage.clickPersonalPlaylist();
         youTubePage.clickOnTheFirstVideoThatAppearsOnThePlaylist();
         youTubePage.clickOnTheFourthVideo();
         Assert.IsTrue(youTubePage.isVideoPlaying());
         youTubePage.CloseWindow();
     }
     catch (Exception err)
     {
         Assert.Fail("Error in testUsersPlaylist method", err);
         Console.Write(err);
     }
 }
Ejemplo n.º 2
0
 public void testHistoryOfVideoIsDeleted()
 {
     try
     {
         //Login with user
         SeleniumLoginMethod.loginToYoutube(this.email, this.password);
         youTubePage.clickOnTheFirstRecommendedVideo();
         youTubePage.clickOnTheMenuBar();
         youTubePage.clickOnHistoryTab();
         string videoTitle = youTubePage.getFirstVideoTitleInHistoryList();
         youTubePage.removeVideo();
         youTubePage.refreshPage();
         //Verify that the title ofthe video you just deleted is not displayed on the list
         Assert.IsFalse(youTubePage.isTextVisible(videoTitle));
     }
     catch (Exception err)
     {
         Assert.Fail("Error in test history of viewed video", err);
         Console.Write(err);
     }
 }
Ejemplo n.º 3
0
 public void testHistoryOfViewedVideo()
 {
     try
     {
         SeleniumLoginMethod.loginToYoutube(this.email, this.password);
         youTubePage.clickOnTheFirstRecommendedVideo();
         string text = youTubePage.getVideoTitle();
         Console.WriteLine(text);
         youTubePage.clickOnTheMenuBar();
         youTubePage.clickOnHistoryTab();
         youTubePage.refreshPage();
         String history_title = youTubePage.getTheFirstVideoInTheHistoryList();
         Console.WriteLine(history_title);
         Assert.IsTrue(text.Equals(history_title));
         youTubePage.CloseWindow();
     }
     catch (Exception err)
     {
         Assert.Fail("Error in test history of viewed video", err);
         Console.Write(err);
     }
 }