Skip to content

Unable to run tests which required navigation between domains on Real Device with playwright #46

@Andreea167

Description

@Andreea167

Steps to reproduce:
Create a simple tests in playwright with typescript which require navigation between different domains:
e.g.:

import { test, expect } from '@playwright/test';

test('@mobile Redirects to external domain on click', async ({ page }) => {
  await page.goto('https://example.com');
  const link = page.getByRole('link', { name: 'More information...' });
  await link.click();
  await page.waitForTimeout(5000);
  console.log(await page.url());

  await expect(page).toHaveURL(/iana\.org/);
});

I tried to run it on:

platforms:
  - browserName: safari
    osVersion: 18
    deviceName: iPhone 15

playwright version: "@playwright/test": "^1.50.1",

Actual result in browser stack video:
In the video youa re able to see that the page redirected crrectly to the new URL, and the new URL is visible, but the error says that is waiting for navigation..
TimeoutError: page.waitForNavigation: Timeout 60000ms exceeded.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions