calabash/calabash-android — pull request #70 by plaa (2012-08-03 06:02:37+00:00)
Title: WebView improvements

There's three changes/commits: Inclusion of Java stack traces in the Calabash log in case an exception is thrown in the test server (very useful for debugging), a very minor bug fix in the JavaScript prompt handling, and three new WebView actions.

The new actions allow fetching the WebView current URL, load progress (so you know when the page has fully loaded) and executing arbitrary JavaScript. While using specific actions like click_by_selector are simple to use, arbitrary JavaScript execution makes it much easier to customize the exact functionality when the ready-made actions do not suffice. The custom JS is wrapped in a function block, and if the variable "result" is set by the JS code, it will be the result message.