Similar to onData, WebView interactions are actually composed of several ViewActions. However
they need to be properly orchestrated and are quite verbose. Web and WebInteraction wrap this
boilerplate and give an Espresso like feel to interacting with WebViews.
WebView interactions constantly cross the Java/Javascript boundary to do their work, since
there is no chance of introducing race conditions by exposing data from the Javascript
environment (everything we see on the Java side is an isolated copy), returning data from
WebInteractions is fully supported.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.