Skip to content

Commit b06004c

Browse files
committed
added footer link to check footer verifying that the message is displayed
1 parent 5b70869 commit b06004c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/test/java/io/github/mfaisalkhatri/pages/RegistrationPage.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,10 @@ public String pageHeader () {
5353
}
5454

5555
public String passwordAlertMessage () {
56+
Actions actions = new Actions (driver);
57+
actions.moveToElement (footerField ()).build ().perform ();
5658
WebElement warningMessage = wait.until (
5759
ExpectedConditions.visibilityOfElementLocated (By.cssSelector ("div.alert")));
58-
Actions actions = new Actions (driver);
5960
actions.moveToElement (warningMessage)
6061
.build ()
6162
.perform ();
@@ -114,4 +115,8 @@ private WebElement streetField () {
114115
return this.driver.findElement (By.id ("street"));
115116
}
116117

118+
private WebElement footerField () {
119+
return this.driver.findElement (By.cssSelector ("app-footer p"));
120+
}
121+
117122
}

0 commit comments

Comments
 (0)