title: Cefsharp webbrowser send input
body: <p>I want to be able to simulate a click or keyboard input to a web element in my cefsharp (chromium) webbrowser.</p>
  
  <p>Lets say I want to type "stack overflow," for instance, into the google searchbox. I want to be able to simulate that keyboard input into the google search box web element so that the search box says "stack overflow" and it would act as if a human typed "stack overflow."</p>
  
  <p><strong>Research:</strong> I have found out ways to do this (untested) in the visual studio web element, but not chromium. For reference, the code I found is <code>browser.Document.GetElementById('web element').InvokeMember("Click")</code> however, I do not know if or how this works.</p>
  
  <p>I have also found the <code>ExecuteScriptAsync</code> function, but I am not sure how to use it. <strong>I am pretty sure I need to use executescriptasync</strong>, but I am not sure what parameters I would use.</p>
  
  <p><strong>My Setup:</strong>
  I am using visual basic, visual studio, and the cefsharp chromium-based web browser</p>
  
  <p><strong>The Question:</strong> To reiterate, I would like to be able to simulate keypresses and mouse clicks on certain web elements in a cefsharp browser. </p>