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 62354ed commit c11381fCopy full SHA for c11381f
playwright/click.js
@@ -41,8 +41,9 @@ const context = await browser.newContext({
41
});
42
43
const page = await context.newPage();
44
+await page.goto("/");
45
-await page.locator("a[href='campfire-commerce/']").click();
46
+await page.getByText('Campfire Commerce').click();
47
48
if (page.url() !== 'http://127.0.0.1:1234/campfire-commerce/') {
49
throw new Error('The new page URL is not as expected.');
0 commit comments