Beispiel #1
0
        public PersonPage LoginAction()
        {
            PersonPage personPage = new PersonPage(Driver);

            Login     = "";
            Password  = "";
            UrlString = "https://vk.com/id136721861";
            GoToURL <PersonPage> (personPage, UrlString, PageTitle);
            FillInformationAndSubmitLogin(Login, Password);
            return(personPage);
        }
Beispiel #2
0
        public void LikeWallNote()
        {
            PersonPage personPage = new PersonPage(Driver);

            personPage.LoginAction();
            personPage.Wait();
            WallNotePage wallNotePage = personPage.EnterWallNotePage();

            wallNotePage.Wait();
            Assert.IsTrue(wallNotePage.IsVisible());
            wallNotePage.ClickLike(15);
        }
Beispiel #3
0
        public void LikeImage()
        {
            PersonPage personPage = new PersonPage(Driver);

            personPage.LoginAction();
            personPage.Wait();
            ImagePage imagePage = personPage.EnterImagePage();

            imagePage.Wait();
            Assert.IsTrue(imagePage.IsVisible());
            imagePage.ClickLike(15);
        }
Beispiel #4
0
        public void LikeVideo()
        {
            PersonPage personPage = new PersonPage(Driver);

            personPage.LoginAction();
            personPage.Wait();
            VideoPage videoPage = personPage.EnterVideoPage();

            videoPage.Wait();
            Assert.IsTrue(videoPage.IsVisible());
            videoPage.ClickLike(15);

            Refresh(personPage);
            Refresh(videoPage);
        }