All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.serenitybdd.core.steps.WebDriverScenarios Maven / Gradle / Ivy

There is a newer version: 4.2.8
Show newest version
package net.serenitybdd.core.steps;

import net.serenitybdd.core.pages.PageObject;

/**
 * A convenience class that can be used for very simple web tests, e.g.
 * 
 *     
 *@ExtendWith(SerenityJUnit5Extension.class)
 * class ShowProducts extends WebDriverScenarios {
 *
 *     @Nested
 *     class ShowProductsByCategory {
 *
 *         @Test
 *         void shouldListAllTheCategories() {
 *             openUrl("https://www.demoblaze.com/index.html");
 *             assertThat(findAll(".list-group-item").texts()).contains("Phones","Laptops","Monitors");
 *         }
 *     }
 * }
 *     >
 * 
*/ public class WebDriverScenarios extends PageObject {}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy