title: Webdriver in Java: couldn't fill a text box
body: <p>I'm using Webdriver in Java to login into Instagram:</p>
  <pre><code>WebDriver driver = new ChromeDriver();
  
  //open instagram.com:
  
  driver.get(&quot;https://www.instagram.com&quot;);
  
  //type my_username in the user text box
  
  WebElement user = driver.findElement(By.xpath(&quot;//*[@id=\&quot;loginForm\&quot;]/div/div[1]/div/label/input&quot;));
  
  user.sendKeys(&quot;my_username&quot;);
  </code></pre>
  <p>Webdriver opens instagram but I receive this error (and the text field is not filled):</p>
  <pre><code>Driver info: org.openqa.selenium.chrome.ChromeDriver
  Command: [12eccee1a2fd0dbabc426dca6651ef75, findElement {using=xpath, value=//*[@id=&quot;loginForm&quot;]/div/div[1]/div/label/input}]
  Capabilities {acceptInsecureCerts: false, browserName: chrome, browserVersion: 101.0.4951.54, chrome: {chromedriverVersion: 101.0.4951.41 (93c720db8323..., userDataDir: /var/folders/_y/x_dzvzfj1vs...}, goog:chromeOptions: {debuggerAddress: localhost:53345}, javascriptEnabled: true, networkConnectionEnabled: false, pageLoadStrategy: normal, platform: MAC, platformName: MAC, proxy: Proxy(), se:cdp: ws://localhost:53345/devtoo..., se:cdpVersion: 101.0.4951.54, setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify, webauthn:extension:credBlob: true, webauthn:extension:largeBlob: true, webauthn:virtualAuthenticators: true}
  Session ID: 12eccee1a2fd0dbabc426dca6651ef75
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
      at org.openqa.selenium.remote.codec.w3c.W3CHttpResponseCodec.createException(W3CHttpResponseCodec.java:200)
      at org.openqa.selenium.remote.codec.w3c.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:133)
      at org.openqa.selenium.remote.codec.w3c.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:53)
      at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:184)
      at org.openqa.selenium.remote.service.DriverCommandExecutor.invokeExecute(DriverCommandExecutor.java:167)
      at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:142)
      at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:567)
      at org.openqa.selenium.remote.ElementLocation$ElementFinder$2.findElement(ElementLocation.java:162)
      at org.openqa.selenium.remote.ElementLocation.findElement(ElementLocation.java:60)
      at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:385)
      at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:377)
  </code></pre>
  <p>Thanks!</p>