mirror of
https://github.com/keycloak/keycloak.git
synced 2026-01-09 23:12:06 -03:30
More clickLink issues for 26.1
Signed-off-by: rmartinc <rmartinc@redhat.com>
This commit is contained in:
parent
e368185abd
commit
42a5154ebe
@ -24,7 +24,7 @@ public class ResetOtpPage extends AbstractPage {
|
||||
}
|
||||
|
||||
public void selectOtp(int index) {
|
||||
driver.findElement(By.id("kc-otp-credential-" + index)).click();
|
||||
UIUtils.switchCheckbox(driver.findElement(By.id("kc-otp-credential-" + index)), true);
|
||||
}
|
||||
|
||||
public void submitOtpReset() {
|
||||
|
||||
@ -340,7 +340,7 @@ public class OAuthClient {
|
||||
WaitUtils.waitForPageToLoad();
|
||||
WebElement linkAccountButton = driver.findElement(By.id("linkAccount"));
|
||||
waitUntilElement(linkAccountButton).is().clickable();
|
||||
linkAccountButton.click();
|
||||
UIUtils.clickLink(linkAccountButton);
|
||||
|
||||
WaitUtils.waitForPageToLoad();
|
||||
fillLoginForm(username, password, false);
|
||||
@ -385,10 +385,10 @@ public class OAuthClient {
|
||||
passwordField.sendKeys(password);
|
||||
|
||||
if (rememberMe) {
|
||||
driver.findElement(By.id("rememberMe")).click();
|
||||
UIUtils.switchCheckbox(driver.findElement(By.id("rememberMe")), true);
|
||||
}
|
||||
|
||||
driver.findElement(By.name("login")).click();
|
||||
UIUtils.clickLink(driver.findElement(By.name("login")));
|
||||
|
||||
}
|
||||
|
||||
@ -412,7 +412,7 @@ public class OAuthClient {
|
||||
|
||||
WebElement submitButton = driver.findElement(By.cssSelector("input[type=\"submit\"]"));
|
||||
waitUntilElement(submitButton).is().clickable();
|
||||
submitButton.click();
|
||||
UIUtils.clickLink(submitButton);
|
||||
}
|
||||
|
||||
public void doLoginGrant(String username, String password) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user