Это код //Log in by Underwriter scenario > send standart bond indication
import org.openqa.selenium.By;
import org.openqa.selenium.By.ByXPath;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import java.util.List;
import java.util.concurrent.TimeUnit;
public class Main {
public static void main(String[] args) {
System.setProperty(“webdriver.chrome.driver”, “/Users/vlad/Library/Mobile Documents/com~apple~CloudDocs/Vlad/Selenium study projects/2.iml/chromedriver”);
ChromeDriver driver = new ChromeDriver();
driver.get(“https://dev3.interpricetech.com/login”); // open the URL page
//log in
WebElement email_field = driver.findElement(new ByXPath(“//input[@name=‘Email’]”));// locator for email field
email_field.sendKeys(“iampritzker@gmail.com”);
WebElement submit_btn = driver.findElement(new ByXPath("//button"));// locator for Log in btn
submit_btn.click();
driver.manage().timeouts().implicitlyWait(2, TimeUnit.SECONDS);
WebElement pwd_field = driver.findElement(new ByXPath("//input[@name='password']"));// locator for pwd field
pwd_field.sendKeys("!DZqvVr4V+");
WebElement submit_btn2 = driver.findElement(new ByXPath("//Button"));// locator log in button
submit_btn2.click();
//Open prepare indication page > select issuer > fill up the quote > send to the issuer
driver.manage().timeouts().implicitlyWait(2, TimeUnit.SECONDS);
WebElement pwd_change_cancel_btn = driver.findElement(new ByXPath("//button[@style='display: inline-block;']"));// pwd_change_cancel_btn
pwd_change_cancel_btn.click();
driver.manage().timeouts().implicitlyWait(2, TimeUnit.SECONDS);
WebElement total_debt_btn = driver.findElement(new ByXPath("//*[@id='app']/div[2]/nav/div/div/ul[1]/li[1]/a"));// total debt btn
total_debt_btn.click(); // open total debt page
}
}
Почему то не нажимается последняя кнопка total_debt_btn