Summary Table

Categories Total Count
PII 0
URL 0
DNS 0
EKL 0
IP 0
PORT 0
VsID 0
CF 0
AI 0
VPD 0
PL 0
Other 0

File Content

package po;


import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.WebDriverWait;

import automation.TestSuite;

public class LoginPO {
WebDriver driver;

public LoginPO(WebDriver driver){
this.driver = driver;
PageFactory.initElements(driver, this);
}


@FindBy(id = "BTN_ssoAccept_login_1")
private WebElement acceptBtn;



public void submitBtnClick(){
WebDriverWait wait = new WebDriverWait(driver, 25);
wait.until(ExpectedConditions.elementToBeClickable(acceptBtn)).click();
// JavascriptExecutor executor = (JavascriptExecutor)driver;
// executor.executeScript("arguments[0].click();", acceptBtn);
}


}