When I’m making an attempt to run the under talked about Selenium internet driver code in IE 11 browser, I get under error:
Exception in thread "principal" org.openqa.selenium.NoSuchElementException: Unable to seek out aspect with css selector == #text-input-what
Code:
package deal com.certainly.checks;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.ie.InternetExplorerDriver;
public class IndeedJobSearch {
public static void principal(String[] args) {
// TODO Auto-generated technique stub
// Name the IE server to invoke IE browser
System.setProperty("webdriver.ie.driver","C:CustomerspaulsoDesktopTestingAutomationSelenium AutomationIEDriverServer_Win32_3.14.0IEDriverServer.exe");
// Create Web explorer driver to driver the browser
WebDriver driver= new InternetExplorerDriver();
// Maximize the window server.
driver.handle().window().maximize();
// Open Certainly dwelling web page
driver.get("https://www.certainly.co.uk/");
driver.handle().timeouts().implicitlyWait(10,TimeUnit.SECONDS);
// Discover What subject and enter Selenium
driver.findElement(By.id("text-input-what")).sendKeys("Selenium");
}
}
Error (Console log):
Began InternetExplorerDriver server (32-bit)
3.14.0.0
Listening on port 8609
Solely native connections are allowed
Sep 20, 2018 11:31:15 AM org.openqa.selenium.distant.ProtocolHandshake createSession
INFO: Detected dialect: W3C
Exception in thread "principal" org.openqa.selenium.NoSuchElementException: Unable to seek out aspect with css selector == #text-input-what
For documentation on this error, please go to: http://seleniumhq.org/exceptions/no_such_element.html