title: Testing html5 inputs in Android application by Robotium
body: <p>At start i want to say sorry about my English skill. I write automated test for the hybrid Android application. GUI of this app is written in HTML5/JS/CSS3 (with angularJS framework). I want to test any data form. Form is filled with some data on the start (received from server). To enter new data I have to clear current value and enter the new one. For enter new text i use:</p>
  
  <pre><code>By element = By.cssSelector("...");
  solo.waitForWebElement(element);
  solo.typeTextInWebElement(element, "foo", 0);
  </code></pre>
  
  <p>and it works well. I have got problems with data clear. In the Robotium documentation i found method:</p>
  
  <pre><code>solo.clearTextInWebElement(item);
  </code></pre>
  
  <p>This method cannot get index parameter (I don't know why), it only use the "By" object to catch specified element. I decided to use code like:</p>
  
  <pre><code>By item = By.cssSelector("input:nth-child(3)");
  this.solo.waitForWebElement(item);
  this.solo.sleep(3000);
  this.solo.clearTextInWebElement(item);
  </code></pre>
  
  <p>but still doesn't work too. I don't know how to test web inputs by Robotium.</p>