Implements

Constructors

  • Create a PageObject instance. Instead of creating an instance in new mode, use create to create an instance.

    Parameters

    • options: Options

      Create a PageObject instance with the specified options.

    Returns PageObject

    const pageObj = await PageObject.create();
    

Properties

options: Options

Methods

  • Destroy the current object.

    Returns Promise<void>

  • Get the original bounding box of the object.

    Returns Promise<Rect>

    Returns a Promise that resolves with a Rect instance.

  • Create a PageObject instance.

    Parameters

    • options: Options

      Create a PageObject instance with the specified options.

    Returns Promise<PageObject>

    Returns a Promise that resolves with a PageObject instance.