CouponFollow
It is test to find coupon code for Domino Pizza using search. My main motivation was traning Page Object Model pattern.
- Java
- Selenium WebDriver - version 3.141.59
- JUnit - version 5.3.2
Describe how to install / setup your local environement / add link to demo version.
- Open folder 'Selenium Server'
- Open file 'hubstart'
- Open file 'nodestart' After you start tests.
Test search
@Test public void findCouponBrandUsingSearch() throws IOException, UnsupportedFlavorException { HomePage homePage = new HomePage(driver).goTo(configuration.getBaseUrl()); int couponCode = homePage.findBrandInSearch(brandName).findCouponsCode(); assertEquals(Integer.parseInt(configuration.getCouponCode()), couponCode, "Wrong value of coupon code"); }
Project is: in progress