title: unknown error: cannot focus element using ChromeDriver Chrome and Selenium through VB Net
body: <p>I face the error cannot focus element. it looks like</p>
  
  <p><a href="https://i.stack.imgur.com/PB4RN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PB4RN.png" alt="enter image description here"></a></p>
  
  <p>i have no idea for fix it, this is what I was did, can anyone help me to fix it?</p>
  
  <pre><code>Try
          Dim options As ChromeOptions = FrmWABot.options
          options = New ChromeOptions
          options.AddArguments("user-data-dir=" &amp; Application.StartupPath &amp; "/profile")
          Clipboard.SetText(no)
          Dim element As IWebElement = driver.FindElement(By.XPath("//*[@title='Search or start new chat']"))
          Clipboard.SetText(no)
          With element
              .SendKeys(Keys.Control + "v")
              .SendKeys(Keys.Enter)
          End With
          Dim elpesan As IWebElement = driver.FindElement(By.XPath("//*[@id='main']/footer/div[1]/div[2]/div/div[2]"))
  
          With elpesan
              Clipboard.SetImage(getImage())
              .SendKeys(Keys.Control + "v")
              .SendKeys(Keys.Enter)
          End With
  
          Dim element1 As IWebElement = driver.FindElement(By.XPath("//*[@id='app']/div[1]/div[1]/div[2]/div[2]/span/div[1]/span/div[1]/div[1]/div[2]/div[1]/span/div[1]/div[2]/div[1]/div[3]/div[2]"))
          element1.Click()
          With element1
              Clipboard.SetText("Happy Birthday...")
              .SendKeys(Keys.Control + "v")
              .SendKeys(Keys.Enter)
          End With
      Catch ex As Exception
          ex.ToString()
      End Try
  </code></pre>