public class

EnableJavascriptAction

extends Object
implements ViewAction
java.lang.Object
   ↳ androidx.test.espresso.web.action.EnableJavascriptAction

Class Overview

Forcibly enables Javascript on a WebView.

This has side-effects callers should be aware of:

  • On Jellybean and below - the WebView will be reloaded.
  • Javascript will be enabled for the rest of the view's lifetime

Summary

Public Constructors
EnableJavascriptAction()
Public Methods
Matcher<View> getConstraints()
String getDescription()
void perform(UiController controller, View view)
[Expand]
Inherited Methods
From class java.lang.Object
From interface androidx.test.espresso.ViewAction

Public Constructors

public EnableJavascriptAction ()

Public Methods

public Matcher<View> getConstraints ()

Returns
Matcher<View>

public String getDescription ()

Returns
String

public void perform (UiController controller, View view)

Parameters
controller UiController
view View