0
I’m using Selenium to test a page but the button I need to click is inside an iframe that is inside a frame.
this.wait.until(ExpectedConditions.elementToBeClickable(By.id("corpo")));
WebElement iframeCorpo = this.driver.findElement(By.id("corpo"));
WebDriver frame2 = this.frame.switchTo().frame(iframeCorpo);
frame2.findElement(By.id("btnQueryLivre")).click();