Options
All
  • Public
  • Public/Protected
  • All
Menu

Manipulations with network.

Hierarchy

  • NetworkDriver

Index

Constructors

Methods

Constructors

constructor

Methods

waitForNetworkIdle

  • waitForNetworkIdle(options?: { action?: () => Promise<any>; requestTypes?: string[] }): Promise<void>
  • Waits for request with defined request types not to come to network along some time. If requests are still executed - returns nothing after ACTION_TIMEOUT / 2 seconds. Async function can be passed if needed after which execution no network requests is expected after some time. Function is useful when there is not proper condition to check if action is completed except network server requests stopped executing. Use carefully and be sure to define only needed request types. By default, they are: 'fetch', 'xhr', 'document', 'javascript', 'script',

    Parameters

    • Optional options: { action?: () => Promise<any>; requestTypes?: string[] }
      • Optional action?: () => Promise<any>
          • (): Promise<any>
          • Returns Promise<any>

      • Optional requestTypes?: string[]

    Returns Promise<void>

Generated using TypeDoc