Options
All
  • Public
  • Public/Protected
  • All
Menu

Module toContainUrl

Index

Functions

Functions

toContainUrl

  • toContainUrl(page: Page, expectedUrl: string, options?: PageWaitForUrlOptions): Promise<SyncExpectationResult>
  • Use toContainUrl function when you want to check that page's url contains the expected url

    example
    await expect(page).toContainUrl('example');
    
    // also you can wait for the url
    await expect(page).toContainUrl('example', {timeout: 5000})
    

    Parameters

    • page: Page
    • expectedUrl: string
    • Optional options: PageWaitForUrlOptions

    Returns Promise<SyncExpectationResult>

Generated using TypeDoc