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 30bade7 commit 7c19fc6Copy full SHA for 7c19fc6
docs/sources/k6/next/javascript-api/k6-browser/locator/locator.md
@@ -65,9 +65,7 @@ export default async function () {
65
`);
66
67
// Use locator.locator to find specific products within the list
68
- const productList = page.locator('div[data-testid="products"]');
69
- const fruitProducts = productList.locator('div[data-category="fruits"]');
70
- const appleProduct = fruitProducts.locator('div[data-product="apple"]');
+ const appleProduct = page.locator('div[data-product="apple"]');
71
const addToCartButton = appleProduct.locator('//button[text()="Add to Cart"]');
72
73
// Interact with the nested locators
0 commit comments