You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var userLogin = "test";
var userPassword = "test"
Thread.sleep(1000);
driver.findElement(By.id("Username")).sendKeys(userLogin);
driver.findElement(By.id("Password")).sendKeys(userPassword);
// Submitting the login page
driver.findElement(By.className("btn-primary")).click();
// Waiting till user profile page is shown
function pageIsLoaded() {
return driver.findElement(By.className("logo")) != null;
}
Thread.sleep(4000);
waitFor(pageIsLoaded);
function waitFor(func) {
var timeout = 10;
while(timeout > 0 && !func()) {
timeout = timeout - 1;
Thread.sleep(1000);
}
if (!func()) {
throw new Error("Wait timeout");
}
}
here is an ERROR i get every time:
org.mozilla.javascript.WrappedException: Wrapped org.openqa.selenium.NoSuchElementException: no such element: Unable to locate element: {"method":"css selector","selector":"#Username"}
(Session info: chrome=84.0.4147.105)
but if I use local chrome driver it works well.
The text was updated successfully, but these errors were encountered:
Hi guys, I have the next galen.config :
and I have the next login.js script:
here is an ERROR i get every time:
but if I use local chrome driver it works well.
The text was updated successfully, but these errors were encountered: