Class JavaScript

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

public class JavaScript extends Object
  • Constructor Details

    • JavaScript

      public JavaScript(String jsFileName)
  • Method Details

    • execute

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

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

      @CanIgnoreReturnValue 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

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