Package com.microsoft.playwright
Class Selectors.RegisterOptions
java.lang.Object
com.microsoft.playwright.Selectors.RegisterOptions
- Enclosing interface:
Selectors
-
Field Summary
FieldsModifier and TypeFieldDescriptionWhether to run this selector engine in isolated JavaScript environment. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsetContentScript(boolean contentScript) Whether to run this selector engine in isolated JavaScript environment.
-
Field Details
-
contentScript
Whether to run this selector engine in isolated JavaScript environment. This environment has access to the same DOM, but not any JavaScript objects from the frame's scripts. Defaults tofalse. Note that running as a content script is not guaranteed when this engine is used together with other registered engines.
-
-
Constructor Details
-
RegisterOptions
public RegisterOptions()
-
-
Method Details
-
setContentScript
Whether to run this selector engine in isolated JavaScript environment. This environment has access to the same DOM, but not any JavaScript objects from the frame's scripts. Defaults tofalse. Note that running as a content script is not guaranteed when this engine is used together with other registered engines.
-