We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 305f6c2 commit ab00ebfCopy full SHA for ab00ebf
src/test/java/com/serenitydojo/playwright/toolshop/contact/ContactForm.java
@@ -3,9 +3,12 @@
3
import com.microsoft.playwright.Locator;
4
import com.microsoft.playwright.Page;
5
import com.microsoft.playwright.options.AriaRole;
6
+import com.microsoft.playwright.options.WaitForSelectorState;
7
8
import java.nio.file.Path;
9
10
+import static com.microsoft.playwright.assertions.PlaywrightAssertions.assertThat;
11
+
12
public class ContactForm {
13
private final Page page;
14
private Locator firstNameField;
@@ -59,5 +62,6 @@ public String getAlertMessage() {
59
62
60
63
public void clearField(String fieldName) {
61
64
page.getByLabel(fieldName).clear();
65
+ assertThat(page.getByLabel(fieldName)).isEmpty();
66
}
67
0 commit comments