appium/appium — pull request #2939 by bootstraponline (2014-06-24 16:09:48+00:00)
Title: Add scrollIntoView

Once I write some tests then this will be ready. I've included a working example below. Open to feedback on the general approach.

- I added debugging logs. It was very difficult to tell where the parser failed with no logging.
- scrollIntoView returns the element that it scrolled to. In general the element not found error isn't handled properly for any of the find by uiautomator.

Fix #2935

```
Example:

a = find_element(:uiautomator, 'new UiScrollable(new UiSelector().scrollable(true).instance(0)).scrollIntoView(new UiSelector().text("WebView").instance(0));')

a.text # WebView
```