Rayrun
← Back to Discord Forum

Test timeout of 30000ms exceeded while setting up "page".

sheng.zhuangposted in #help-playwright
Open in Discord
sheng.zhuang

I am new to playwright, just to setup playwright and run my very first test, and get this error on title. I tried normal installation and getting started - vscode from https://playwright.dev/docs/intro, many times, and never successfully pass first test

"@playwright/test": "^1.39.0", test file:

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

test('has title', async ({ page }) => {
  await page.goto('https://playwright.dev/');

  // Expect a title "to contain" a substring.
  await expect(page).toHaveTitle(/Playwright/);
});

test('get started link', async ({ page }) => {
  await page.goto('https://playwright.dev/');

  // Click the get started link.
  await page.getByRole('link', { name: 'Get started' }).click();

  // Expects page to have a heading with the name of Installation.
  await expect(page.getByRole('heading', { name: 'Installation' })).toBeVisible();
});

This is my last resolution to come here, anyone can help would be appreciate.

This thread is trying to answer question "Why am I getting a 'Test timeout of 30000ms exceeded' error while setting up 'page' in Playwright?"

1 reply
bhushan.trivedi
@sheng.zhuang: its working fine whats your problem?

its working fine whats your problem?

Related Discord Threads

TwitterGitHubLinkedIn
AboutQuestionsDiscord ForumBrowser ExtensionTagsQA Jobs

Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email luc@ray.run.