Skip to content

'chrome' should be 'chromium' in _setPage funciton of Playwright.js #2536

Closed
@arcsun

Description

@arcsun

What are you trying to achieve?

Change to a different tab by call I.switchToPreviousTab() or I. switchToNextTab()

What do you get instead?

The target page still in the background

  async _setPage(page) {
    page = await page;
    this._addPopupListener(page);
    this.page = page;
    if (!page) return;
    page.setDefaultNavigationTimeout(this.options.getPageTimeout);
    this.context = await this.page.$('body');
    if (this.config.browser === 'chrome') {
      await page.bringToFront();
    }
  }

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions