title: Element not available - Selenium
body: <p>I have a problem with one element on the web page. When I want somehow to interact with it(click on it, sendKeys or something) and every time I'm getting an error <a href="https://i.stack.imgur.com/ScEMH.png" rel="nofollow noreferrer">IDE view</a>. In the browser I can click on this button and I locate it right <a href="https://i.stack.imgur.com/fNqGS.png" rel="nofollow noreferrer">browser view</a>. All other elements on this website are working well. My task is to upload a file. In this case i want to make this -> <code>filePathUploadButton.sendKeys("C:\\Users\\ASuvorkov\\Desktop\\testverlG_serenity.png")</code> . </p>
  
  <p>Manually it would be so: </p>
  
  <ol>
  <li>User clicks on this button</li>
  <li>Then user selects file in <a href="https://i.stack.imgur.com/5BRR1.png" rel="nofollow noreferrer">dialog</a></li>
  <li>And the user clicks on "open file" to upload a file</li>
  </ol>
  
  <p>Do you have any suggestions or experience with it, because I didn't meet such kind of things yet?</p>
  
  <p>PS even checking if <code>element.isEnabled()</code>, <code>element.isDisplayed()</code> causes this error and programm breaks up.</p>
  
  <p>Code snippet(JAVA):</p>
  
  <pre><code>@FindBy(id = "fileupload") private WebElement filePathUploadButton;
  
  public void downloadCoverPicture() {
      waitABit(LONG_WAIT);
  
      element(mediaTypeDropDownButton).waitUntilClickable();
      mediaTypeDropDownButton.click();
      element(mediaTypeDropDownList).waitUntilClickable();
      mediaTypeDropDownList.click();
  
      waitABit(LONG_WAIT);
      element(filePathUploadButton).waitUntilClickable();
      filePathUploadButton.sendKeys("C:\\Users\\ASuvorkov\\Desktop\\testverlG_serenity.png");
  
      waitABit(50000);
  }
  </code></pre>
  
  <p>Error stacktrace:</p>
  
  <pre><code>org.openqa.selenium.ElementNotVisibleException: The following error occurred: Timed out after 10 seconds. Element not available
  
  at pages.NewBookAddPage.downloadCoverPicture(NewBookAddPage.java:71)
  at steps.NewBookManagementSteps.downloadsCoverPicture(NewBookManagementSteps.java:52)
  at tests.NewBookManagementTest.addsNewBook(NewBookManagementTest.java:43)
  </code></pre>