Class Javascript<SCRIPTID,BINDINGCALLED>

java.lang.Object
org.openqa.selenium.devtools.idealized.Javascript<SCRIPTID,BINDINGCALLED>

public abstract class Javascript<SCRIPTID,BINDINGCALLED> extends Object
  • Constructor Details

    • Javascript

      public Javascript(DevTools devtools)
  • Method Details

    • disable

      public void disable()
    • disablePage

      protected abstract Command<Void> disablePage()
    • disableRuntime

      protected abstract Command<Void> disableRuntime()
    • pin

      public ScriptId pin(String exposeScriptAs, String script)
    • addBindingCalledListener

      public void addBindingCalledListener(Consumer<String> listener)
    • addJsBinding

      public void addJsBinding(String scriptName)
    • removeJsBinding

      public void removeJsBinding(String scriptName)
    • enableRuntime

      protected abstract Command<Void> enableRuntime()
    • doAddJsBinding

      protected abstract Command<Void> doAddJsBinding(String scriptName)
    • doRemoveJsBinding

      protected abstract Command<Void> doRemoveJsBinding(String scriptName)
    • enablePage

      protected abstract Command<Void> enablePage()
    • addScriptToEvaluateOnNewDocument

      protected abstract Command<SCRIPTID> addScriptToEvaluateOnNewDocument(String script)
    • removeScriptToEvaluateOnNewDocument

      protected abstract Command<Void> removeScriptToEvaluateOnNewDocument(SCRIPTID id)
    • bindingCalledEvent

      protected abstract Event<BINDINGCALLED> bindingCalledEvent()
    • extractPayload

      protected abstract String extractPayload(BINDINGCALLED event)