File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
src/test/java/com/serenitydojo/playwright/toolshop/contact Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,11 @@ public ContactForm(Page page) {
2525 this .sendButton = page .getByText ("Send" );
2626 }
2727
28+ public void open () {
29+ page .navigate ("https://practicesoftwaretesting.com/contact" );
30+ page .waitForSelector ("[data-test=contact-submit]" );
31+ }
32+
2833 public void setFirstName (String firstName ) {
2934 firstNameField .fill (firstName );
3035 }
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ public class ContactFormTest extends PlaywrightTestCase {
2626 @ BeforeEach
2727 void openContactPage () {
2828 contactForm = new ContactForm (page );
29- page . navigate ( "https://practicesoftwaretesting.com/contact" );
29+ contactForm . open ( );
3030 }
3131
3232 @ DisplayName ("Customers can use the contact form to contact us" )
You can’t perform that action at this time.
0 commit comments