Class JavaScript

java.lang.Object
com.codeborne.selenide.impl.JavaScript

@ParametersAreNonnullByDefault public class JavaScript extends Object
  • Constructor Details

    • JavaScript

      public JavaScript(String jsFileName)
  • Method Details

    • execute

      @Nonnull public <T> T execute(org.openqa.selenium.SearchContext context, Object... arguments)
    • execute

      @Nonnull public <T> T execute(Driver driver, Object... arguments)
    • executeOrFail

      @Nonnull @CheckReturnValue public <T> T executeOrFail(Driver driver, Object... arguments)
    • jsExecutor

      public static org.openqa.selenium.JavascriptExecutor jsExecutor(org.openqa.selenium.SearchContext context)
    • asJsExecutor

      public static Optional<org.openqa.selenium.JavascriptExecutor> asJsExecutor(org.openqa.selenium.SearchContext context)
    • node

      @Nullable public Object node(org.openqa.selenium.SearchContext context)