Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
test: add a test for numerical id selector (#4429)
Dmitry Gozmancd18ddb6934a
diff --git a/test/selectors-css.spec.ts b/test/selectors-css.spec.tsindex 45f775d5fd..a2fc9faa4f 100644--- a/test/selectors-css.spec.ts+++ b/test/selectors-css.spec.ts@@ -125,3 +125,9 @@ it('should not match root after >>', async ({page, server}) => {const element = await page.$('css=section >> css=section');expect(element).toBe(null);});++it('should work with numerical id', async ({page, server}) => {+ await page.setContent('<section id="123"></section>');+ const element = await page.$('#\\31\\32\\33');+ expect(element).toBeTruthy();+});