Exemplo n.º 1
0
 public static void SearchRestaurantsTestCase()
 {
     RestaurantsPage.goWebsite();
     RestaurantsPage.goToRestaurantPage();
     RestaurantsPage.search();
     RestaurantsPage.quitBrowser();
 }
Exemplo n.º 2
0
 public static void EditRestaurantsTestCase()
 {
     RestaurantsPage.goWebsite();
     RestaurantsPage.goToRestaurantPage();
     RestaurantsPage.editRestaurants();
     RestaurantsPage.quitBrowser();
 }
Exemplo n.º 3
0
 public static void AddReviewsTestCase()
 {
     RestaurantsPage.goWebsite();
     RestaurantsPage.goToRestaurantPage();
     RestaurantsPage.addReviews();
     RestaurantsPage.quitBrowser();
 }
Exemplo n.º 4
0
 public static void SortByTestCase()
 {
     RestaurantsPage.goWebsite();
     RestaurantsPage.goToRestaurantPage();
     RestaurantsPage.sortByName();
     RestaurantsPage.sortByOthers();
     RestaurantsPage.quitBrowser();
 }
Exemplo n.º 5
0
 public static void DeleteRestaurantsTestCase()
 {
     RestaurantsPage.goWebsite();
     RestaurantsPage.goToRestaurantPage();
     RestaurantsPage.deleteRestaurants();
     RestaurantsPage.deleteRestaurants();
     RestaurantsPage.deleteRestaurants();
     RestaurantsPage.quitBrowser();
 }
Exemplo n.º 6
0
        public void SetUp(String browserName)
        {
            if (browserName.Equals("chrome"))
            {
                driver = new ChromeDriver(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location));
            }
            else
            {
                driver = new FirefoxDriver(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location));
            }

            driver.Manage().Window.Maximize();
            homePage           = new HomePage(driver);
            restaurantsPage    = new RestaurantsPage(driver);
            testRestaurantPage = new TestRestaurantPage(driver);
            addressAndPayPage  = new AddressAndPayPage(driver);
            orderNumberPage    = new OrderNumberPage(driver);
        }
Exemplo n.º 7
0
 public static void CreateRestaurantsTestCase()
 {
     RestaurantsPage.goWebsite();
     RestaurantsPage.goToRestaurantPage();
     RestaurantsPage.addRestaurant();
     RestaurantsPage.createMcDonalds();
     RestaurantsPage.addRestaurant();
     RestaurantsPage.createWendies();
     RestaurantsPage.addRestaurant();
     RestaurantsPage.createKfc();
     RestaurantsPage.addRestaurant();
     RestaurantsPage.createBurgerKing();
     RestaurantsPage.addRestaurant();
     RestaurantsPage.createIHOP();
     RestaurantsPage.addRestaurant();
     RestaurantsPage.createWaffleHouse();
     RestaurantsPage.quitBrowser();
 }