You're viewing an older version of Vaadin JavaDoc. Please see version 24.7.0 for the latest.
com.vaadin.uitest.common.

Class BasePlayWrightIT

java.lang.Object
com.vaadin.uitest.common.BasePlayWrightIT

All Implemented Interfaces:

HasTestView

public class BasePlayWrightIT extends Object implements HasTestView
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected static com.microsoft.playwright.Browser
     
    protected com.microsoft.playwright.Page
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
     
    void
     
    protected void
    click(com.microsoft.playwright.Locator locator)
     
    protected void
    event(com.microsoft.playwright.Locator locator, String eventName)
     
    protected void
    event(com.microsoft.playwright.Locator locator, String type, Object eventInit, com.microsoft.playwright.Locator.DispatchEventOptions options)
     
    protected void
    fill(com.microsoft.playwright.Locator locator, String value)
     
    protected com.microsoft.playwright.Page
     
    protected void
    press(com.microsoft.playwright.Locator locator, String key)
     
    protected void
    select(com.microsoft.playwright.Locator locator, String val)
     
    static void
     
    void
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.vaadin.uitest.common.HasTestView

    getUrl, getView
  • Field Details

    • page

      protected com.microsoft.playwright.Page page
    • browser

      protected static com.microsoft.playwright.Browser browser
  • Constructor Details

    • BasePlayWrightIT

      public BasePlayWrightIT()
  • Method Details

    • setupTest

      @BeforeEach public void setupTest() throws Exception

      Throws:

      Exception

    • cleanupTest

      @AfterEach public void cleanupTest() throws Exception

      Throws:

      Exception

    • cleanup

      @AfterAll public static void cleanup() throws Exception

      Throws:

      Exception

    • setup

      @BeforeAll public static void setup() throws Exception

      Throws:

      Exception

    • getPage

      protected com.microsoft.playwright.Page getPage()
    • event

      protected void event(com.microsoft.playwright.Locator locator, String type, Object eventInit, com.microsoft.playwright.Locator.DispatchEventOptions options)
    • event

      protected void event(com.microsoft.playwright.Locator locator, String eventName)
    • click

      protected void click(com.microsoft.playwright.Locator locator)
    • press

      protected void press(com.microsoft.playwright.Locator locator, String key)
    • fill

      protected void fill(com.microsoft.playwright.Locator locator, String value)
    • select

      protected void select(com.microsoft.playwright.Locator locator, String val)