Here is my code
@Test
public void validate_login() {
driver.findElement(By.xpath(“//input[@name=’username’]”)).sendKeys(“CRM708153”);
driver.findElement(By.xpath(“//input[@name=’password’]”)).sendKeys(“bRSNWey6”);
driver.findElement(By.xpath(“//button[@name=’login’]”)).click();
WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(40));
wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(“//span[contains(@class, ‘font-sm eMNotSelectable’) and text()=’I accept’]”)));
driver.findElement(By.xpath(“//span[contains(@class, ‘font-sm eMNotSelectable’) and text()=’I accept’]”)).click();
I am trying to click on I accept checkbox and continue button
Vikash Yadav is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.