Help me please! I try to enter to my app (https://testing.shipnext.com/), but modal window don't allow me. I must to enter the logon / password, but i can't do it. I try to use this code:
Alert alert;
@BeforeClass
public static void setup(){
System.setProperty("webdriver.chrome.driver", "/home/qa-1/IdeaProjects/chromedriver");
driver = new ChromeDriver();
loginPage = new LoginPage(driver);
driver.manage().window().maximize();
driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
driver.get("https://testing.shipnext.com/");
}
@Test
public void alertText(){
alert = driver.switchTo().alert();
alert.sendKeys("myLogin");