playwright/packages/playwright-core
Max Schmitt f48861ddee
fix(inspector): highlight xpath/css locators without engine prefix (#27742)
Motivation: As of today when a user inspects a Locator which is a xpath,
it won't work if the user has not prefixed it with `xpath=` because we
internally compare the given with the generated locator.

Works: `locator('xpath=//div[contains(@class, "foo")]')`
Does not work: `locator('//div[contains(@class, "foo")]')`

Relates
https://github.com/microsoft/playwright/issues/27707#issue-1952360264
Fixes
https://github.com/microsoft/playwright-dotnet/issues/2718#issuecomment-1771073816

---------

Signed-off-by: Max Schmitt <max@schmitt.mx>
2023-10-23 18:23:28 +02:00
..
bin chore: enhance download/install logic of branded browsers (#26806) 2023-08-31 22:48:07 +02:00
bundles chore: remove glob dependency from utils bundle (#24291) 2023-07-19 05:17:34 +02:00
src fix(inspector): highlight xpath/css locators without engine prefix (#27742) 2023-10-23 18:23:28 +02:00
types feat: add pixel 7 device with android 14 (#27700) 2023-10-23 12:59:42 +02:00
.eslintrc.js lint: prevent object string concatenation (#23172) 2023-05-19 15:17:43 -07:00
.npmignore chore: fix installation tests (#26602) 2023-08-22 16:48:52 +02:00
browsers.json feat(webkit): roll to r1928 (#27755) 2023-10-23 18:22:49 +02:00
cli.js chore: fix playwright-core cli (#23203) 2023-05-22 12:37:08 -07:00
index.d.ts chore: migrate to monorepo (#9421) 2021-10-11 16:52:17 +02:00
index.js chore: refactored minimum Node Major version to variable (#24188) 2023-07-18 19:57:48 +02:00
index.mjs fix: export request from index.jsm (#13158) 2022-03-30 09:35:47 -07:00
package.json chore: mark 1.40.0-next (#27538) 2023-10-10 16:10:28 -07:00
README.md chore: drop dependency on playwright-core in all our packages (#2318) 2020-05-21 13:18:15 -07:00
ThirdPartyNotices.txt chore: remove glob dependency from utils bundle (#24291) 2023-07-19 05:17:34 +02:00

playwright-core

This package contains the no-browser flavor of Playwright.