title: Selenium webdriver error..It is unable to send keys with selenium webdriver
body: <p>I am using Selenium Webdriver. I have searched many times and tried every answer in order to successfully testing a case. I am new to test automation.</p>
  
  <p><strong>Problem:</strong> There is an error when I use <code>.sendKeys()</code> and also click on some web element. I am really upset about this. I want to go forward with testing. Please help me solve this.</p>
  
  <p>And also it displays an error stating <code>InvalidValueError: initMap is not a function</code>. Previously I have ran this codes successfully.</p>
  
  <p><strong>My setup is a follows:</strong></p>
  
  <ul>
  <li>Firefox 53.0 </li>
  <li>Eclipse Juno 32bit</li>
  <li>Selenium Wevdriver 3.3.1</li>
  <li>GeckoDriver 16.0</li>
  <li>logger <code>apache-log4j-1.2.17</code></li>
  </ul>
  
  <p><strong>This is the error:</strong></p>
  
  <blockquote>
    <p>1495778288530 geckodriver INFO    Listening on 127.0.0.1:23817
    1495778289152 mozprofile::profile INFO    Using profile path
    C:\Users\EXTROG~1\AppData\Local\Temp\rust_mozprofile.pTb73U1lR7sv
    1495778289154 geckodriver::marionette INFO    Starting browser C:\Program
    Files\Mozilla Firefox\firefox.exe with args []
    1495778289159 geckodriver::marionette INFO    Connecting to Marionette on
    localhost:50245 1495778293537 Marionette  INFO    Listening on port 50245
    May 26, 2017 11:28:13 AM org.openqa.selenium.remote.ProtocolHandshake
    createSession INFO: Detected dialect: W3C <strong>JavaScript error: , line 0:
    uncaught exception: InvalidValueError: initMap is not a function</strong>  INFO
    [main] (SearchBarTest.java:20)- search bar is there Error : Expected
    [object Undefined] undefined to be a string Build info: version:
    'unknown', revision: '5234b32', time: '2017-03-10 09:00:17 -0800'
    System info: host: 'EXTROGENE-PC', ip: '192.168.1.18', os.name:
    'Windows 7', os.arch: 'x86', os.version: '6.1', java.version:
    '1.8.0_121' Driver info: org.openqa.selenium.firefox.FirefoxDriver
    Capabilities
    [{moz:profile=C:\Users\EXTROG~1\AppData\Local\Temp\rust_mozprofile.pTb73U1lR7sv,
    rotatable=false, timeouts={implicit=0, pageLoad=300000, script=30000},
    pageLoadStrategy=normal, platform=ANY, specificationLevel=0,
    moz:accessibilityChecks=false, acceptInsecureCerts=false,
    browserVersion=53.0.3, platformVersion=6.1, moz:processID=1896,
    browserName=firefox, platformName=windows_nt}] Session ID:
    0d78f916-fa2e-4325-8baf-08b8e444d250</p>
  </blockquote>
  
  <p><strong>This is my code:</strong></p>
  
  <pre><code>WebElement element=driver.findElement(By.xpath("//*[@id='serchkey']"));
  driver.findElement(By.xpath("//*[@id='serchkey']")).sendKeys(new String("toy"));
  </code></pre>