Problem in a simple login with IEDriverServer (64 bits) and Iexplorer11

15 views
Skip to first unread message

Pablo

unread,
Apr 24, 2017, 10:26:40 AM4/24/17
to Selenium Users
Hi:

I have a code that works in debug mode, but in run mode it didn`t work. 

The code:

(inside a try)

driver.get("http://mipage");
Thread.sleep(3000);
System.out.println("Paso el primer delay");
driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
WebElement user = driver.findElement(By.name("username"));
user.sendKeys("admin");
Thread.sleep(1000);
WebElement pass = driver.findElement(By.name("password"));
pass.sendKeys("123456");
            WebElement formulario = driver.findElement(By.name("formLogin"));
            formulario.submit();
       // Print a Log In message to the screen
       System.out.println("Successfully opened the website www.google.cl");
 
//Wait for 5 Sec
Thread.sleep(5);
       // Close the driver
       driver.quit();


The Exception

No Such Window Exception


I repeat: If i run this code on debug mode it works, its strange. Please Help me.

Regards

Pablo.

Reply all
Reply to author
Forward
0 new messages