コード例 #1
0
        public void openMovieFromCarousel(string movieName)
        {
            MoviesDetailPage moviesDetailPage = new MoviesDetailPage(WebDriver);
            NavBarPage       navBarPage       = new NavBarPage(WebDriver);

            navBarPage.lnkHome.Click();
            MovieHelper.ReadMovies(lnkMovies, WebDriver);
            var index = MovieHelper.findMovieIndex(movieName);

            lnkMovies.ElementAt(index).Click();
            moviesDetailPage.addtoCart();
            Thread.Sleep(1000);
        }
コード例 #2
0
        public void openMovieFromList(string movieName)
        {
            MoviesDetailPage moviesDetailPage = new MoviesDetailPage(WebDriver);

            MovieHelper.ReadMovies(lnkMovies, WebDriver);
            var index = MovieHelper.findMovieIndex(movieName);

            lnkMovies.ElementAt(index).Click();
            //txtSearchBar.SendKeys(movieName);
            //movieLink.Click();
            moviesDetailPage.addtoCart();
            //txtSearchBar.Clear();
            Thread.Sleep(1000);
        }