Development

When I am trying to run the below mentioned Selenium web driver code in IE 11 browser, I get below error:
Exception in thread “main” org.openqa.selenium.NoSuchElementException: Unable to find element with css selector == #text-input-what

Code:
package com.indeed.tests;
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 main(String[] args) {
// TODO Auto-generated method stub
// Call the IE server to invoke IE browser
System.setProperty(“webdriver.ie.driver”,”C:\Users\paulso\Desktop\Testing\Automation\Selenium Automation\IEDriverServer_Win32_3.14.0\IEDriverServer.exe”);
// Create Internet explorer driver to driver the browser
WebDriver driver= new InternetExplorerDriver();
// Maximize the window server.
driver.manage().window().maximize();
// Open Indeed home page
driver.get(“https://www.indeed.co.uk/”);
driver.manage().timeouts().implicitlyWait(10,TimeUnit.SECONDS);
// Find What field and enter Selenium
driver.findElement(By.id(“text-input-what”)).sendKeys(“Selenium”);
}
}

Error (Console log):
Started InternetExplorerDriver server (32-bit)
3.14.0.0
Listening on port 8609
Only local connections are allowed
Sep 20, 2018 11:31:15 AM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: W3C
Exception in thread “main” org.openqa.selenium.NoSuchElementException: Unable to find element with css selector == #text-input-what
For documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html

I am not able click on the specific element, which is in the image format. I have tried using available locators i.e id and image using XPath and remaining locators are same for all remaining menus.

Below is the HTML code. In the below code class locator is same for all other menus. How to automate this type of scenario?

<a href=”#” class=”nav-link nav-toggle” onclick=”OnReportImageClick()”>
<img src=”/Images/reports.png”>
<span class=”title”>Reports</span>
</a>

The XPath I have tried is //*[@id=”ReportsView”].

Whenever I ran the test logs are not displayed in log viewer panel in application, logs are displayed in command prompt.

Can anyone pls suggest for this issue?
How can I see logs in log viewer panel instead of cmd prompt?

I was enabled logviewer check box also.