I need to open mail ethat I get from services https://10minemail.com/ru/
I get exception NoSuchElement if start test from command line. If I started in Intellij - ok.
((JavascriptExecutor) driver).executeScript("arguments[0].scrollIntoView();",
driver.findElement(By.xpath("//div[text()='Отправитель']")));
WebElement mailPage = new WebDriverWait(driver, 20)
.until(ExpectedConditions.elementToBeClickable(By.xpath("//a[@class='viewLink title-subject'][text()]")));
mailPage.click();
Aucun commentaire:
Enregistrer un commentaire