Xi Zhang Xi Zhang - 1 year ago 141
Android Question

Scroll a webview in Robotium?

How to automatically scroll a WebView down to bottom in Robotium?

We use a WebView to disaply EULA by the way.

Answer Source

I've found that clicking on the view, then pressing the Down key some set number of times can do what you want. So something like:

for (int i=0;i<20;i++) {

If that doesn't work, try finding something that does using the keyboard on the emulator, and then do the same with Robotium.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download