browser automation – Exception in thread “fundamental” org.openqa.selenium.NoSuchElementException: Unable to search out ingredient with css selector ==

0
27
browser automation – Exception in thread “fundamental” org.openqa.selenium.NoSuchElementException: Unable to search out ingredient with css selector ==


When I’m making an attempt to run the beneath talked about Selenium net driver code in IE 11 browser, I get beneath error:

    Exception in thread "fundamental" org.openqa.selenium.NoSuchElementException: Unable to search out ingredient with css selector == #text-input-what

Code:

       bundle com.certainly.exams;
       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 fundamental(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 area 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 "fundamental" org.openqa.selenium.NoSuchElementException: Unable to search out ingredient with css selector == #text-input-what
    For documentation on this error, please go to: http://seleniumhq.org/exceptions/no_such_element.html

LEAVE A REPLY

Please enter your comment!
Please enter your name here