title: How to send text to the search field through Selenium Webdriver?
body: <p>Task:
  search FAA in search box :
  <a href="https://i.stack.imgur.com/Aixdo.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Aixdo.jpg" alt="enter image description here"></a></p>
  
  <p>I have tried this:-</p>
  
  <pre><code>webdriver.select_tabs(search.btnSearch);
  
  Thread.sleep(3000);
  WebElement searchbox = driver.findElement(By.id("search-text"));
  Actions builder = new Actions(driver);
  Actions seriesOfActions = builder.moveToElement(searchbox).click().sendKeys(searchbox, "FAA");
  seriesOfActions.perform();
  
  WebDriverWait wait = new WebDriverWait(driver, 30);
  WebElement element = wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath("//*[@id=\"search-text\"]")));
  element.sendKeys("FAA");
  element.sendKeys(Keys.ENTER);
  
  webdriver.enter_key(search.txtSearch, Keys.ENTER);
  webdriver.enter_Text(search.txtSearch, "FAA");
  webdriver.enter_key(search.txtSearch, Keys.ENTER);
  </code></pre>
  
  <p>Got this error:-</p>
  
  <pre><code>org.openqa.selenium.ElementNotVisibleException: element not visible
  </code></pre>