Skip to content

Commit

Permalink
added command to install msedge in the pipeline for running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mfaisalkhatri committed Jul 4, 2024
1 parent 18ee6f3 commit 46af2b6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ jobs:
java-version: '17'
distribution: 'temurin'
cache: maven

- name: Install Edge browser
run: mvn exec:java -e -D exec.mainClass=com.microsoft.playwright.CLI -D exec.args="install msedge"

- name: Build with Maven
run: mvn clean install
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,13 @@ public void locateFirstNameByLabel() {
Locator firstNameField = page.getByLabel("First name");
firstNameField.fill("Faisal");
}

@Test
public void locateFirstNameByPlaceholder() {
page.navigate("https://practicesoftwaretesting.com/contact");
Locator firstNameField = page.getByPlaceholder("Your first name *");
firstNameField.fill("John");


}
}

0 comments on commit 46af2b6

Please sign in to comment.