<dependency>
<groupId>com.holmos.framework</groupId>
<artifactId>holmos-webtest</artifactId>
<version>1.0.0</version>
</dependency>
import com.holmos.webtest.HolmosWindow;
import com.holmos.webtest.element.Element;
import com.holmos.webtest.hamcrest.HolmosAssertions;
public class WebAppTest {
private HolmosWindow window;
@Before
public void setup() {
window = new HolmosWindow();
window.open("http://example.com");
}
@Test
public void testLogin() {
Element usernameInput = window.getElementById("username");
usernameInput.setValue("admin");
Element passwordInput = window.getElementById("password");
passwordInput.setValue("password");
Element loginButton = window.getElementById("loginButton");
loginButton.click();
Element successMessage = window.getElementById("successMessage");
}
@After
public void teardown() {
window.close();
}
}