calabash/calabash-android — pull request #399 by deepakrai (2014-04-28 08:42:02+00:00)
Title: Adding methods to execute Javascript on a specific WebView.

Adding methods to execute Javascript on a specific WebView.

1) Execute Javascript on a specific WebView(execute_javascript_on_webview_number): performAction("execute_javascript_on_webview_number", "", "")
For example, performAction("execute_javascript_on_webview_number", 'alert("Hello World")', '2') - runs the alert on the second WebView

2) Execute Javascript on a specific WebView(execute_javascript_return_response) and get the Response : performAction("execute_javascript_return_response", "", "")
For example, performAction("execute_javascript_return_response", 'document.URL', '2') - Returns the document.URL of the second WebView in the bonusInformation of the Result