From dd18792087c9a48e6c9dba037ea1dbbe7d337cc3 Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Mon, 28 Nov 2022 18:03:49 -1000 Subject: [PATCH] test: navigator.webdriver is set to true (#19065) https://github.com/microsoft/playwright/issues/18307 --- tests/page/page-basic.spec.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/page/page-basic.spec.ts b/tests/page/page-basic.spec.ts index 49f84965b2..7d0c93c185 100644 --- a/tests/page/page-basic.spec.ts +++ b/tests/page/page-basic.spec.ts @@ -252,3 +252,8 @@ it('frame.press should work', async ({ page, server }) => { await frame.press('textarea', 'a'); expect(await frame.evaluate(() => document.querySelector('textarea').value)).toBe('a'); }); + +it('has navigator.webdriver set to true', async ({ page, browserName }) => { + it.fixme(browserName === 'firefox'); + expect(await page.evaluate(() => navigator.webdriver)).toBe(true); +});