mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
docs(readme): swap locator for getByText (#22059)
This commit is contained in:
parent
6929214dbf
commit
81f3f987be
@ -118,7 +118,7 @@ test.use({
|
||||
|
||||
test('Mobile and geolocation', async ({ page }) => {
|
||||
await page.goto('https://maps.google.com');
|
||||
await page.locator('text="Your location"').click();
|
||||
await page.getByText('Your location').click();
|
||||
await page.waitForRequest(/.*preview\/pwa/);
|
||||
await page.screenshot({ path: 'colosseum-iphone.png' });
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user