We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d04ea0 commit db65ff6Copy full SHA for db65ff6
playwright-test/tests/test_1.spec.js
@@ -3,13 +3,13 @@ const { expect } = require('@playwright/test');
3
test.describe('feature foo', () => {
4
test('test 1', async ({ page }) => {
5
// Assertions use the expect API.
6
- await page.goto('https://www.google.com/ncr');
7
- const element = await page.$('[aria-label="Search"]');
+ await page.goto('https://www.duckduckgo.com');
+ const element = await page.$('[name="q"]');
8
await element.click();
9
await element.type('BrowserStack');
10
await element.press('Enter');
11
const title = await page.title('');
12
console.log(title);
13
- expect(title).toEqual( 'BrowserStack - Google Search', 'Expected page title is incorrect!');
+ expect(title).toEqual( 'BrowserStack at DuckDuckGo', 'Expected page title is incorrect!');
14
});
15
0 commit comments