Class Selectors.RegisterOptions

  • Enclosing interface:
    Selectors

    public static class Selectors.RegisterOptions
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.lang.Boolean contentScript
      Whether to run this selector engine in isolated JavaScript environment.
    • Constructor Summary

      Constructors 
      Constructor Description
      RegisterOptions()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Selectors.RegisterOptions setContentScript​(boolean contentScript)
      Whether to run this selector engine in isolated JavaScript environment.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • contentScript

        public java.lang.Boolean 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 to false. Note that running as a content script is not guaranteed when this engine is used together with other registered engines.
    • Constructor Detail

      • RegisterOptions

        public RegisterOptions()
    • Method Detail

      • setContentScript

        public Selectors.RegisterOptions setContentScript​(boolean 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 to false. Note that running as a content script is not guaranteed when this engine is used together with other registered engines.