Cordova/PhoneGap-based Applications encapsulate the WebView into a DroidGap class that ultimately extends from CordovaActivity CordovaActivity. This Activity holds a protected component called containing the wiew CordovaWebView appView and configured with an ID equals to 100:
protected CordovaWebView appView;
...
this.appView.setId(100);
Thus, you should be able to find the View by seeking the ID 100 doing something like this:
CordovaWebView view = (CordovaWebView) activity.findViewById(100);
Picture picture = view.capturePicture();
Bitmap b = Bitmap.createBitmap (picture.getWidth(),
picture.getHeight(),
Bitmap.Config.ARGB_8888);
picture.draw(new Canvas(b));
FileOutputStream foss = new FileOutputStream(out);
b.compress(Bitmap.CompressFormat.PNG, 100, foss);
foss.close();
This should work.