Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

docs: isMobile is supported in Firefox since v1.61 (#42836)

Yury Semikhatskyf1d33b5029be
diff --git a/docs/src/api/params.md b/docs/src/api/params.md
index 4bb5b6bd99..c107b8660c 100644
--- a/docs/src/api/params.md
+++ b/docs/src/api/params.md
@@ -684,7 +684,7 @@ Specify device scale factor (can be thought of as dpr). Defaults to `1`. Learn m
## context-option-ismobile
- `isMobile` <[boolean]>
-Whether the `meta viewport` tag is taken into account and touch events are enabled. isMobile is a part of device, so you don't actually need to set it manually. Defaults to `false` and is not supported in Firefox. Learn more about [mobile emulation](../emulation.md#ismobile).
+Whether the `meta viewport` tag is taken into account and touch events are enabled. isMobile is a part of device, so you don't actually need to set it manually. Defaults to `false`. Learn more about [mobile emulation](../emulation.md#ismobile).
## context-option-hastouch
- `hasTouch` <[boolean]>
diff --git a/packages/playwright-client/types/types.d.ts b/packages/playwright-client/types/types.d.ts
index cd297c4c18..e0c5e74a56 100644
--- a/packages/playwright-client/types/types.d.ts
+++ b/packages/playwright-client/types/types.d.ts
@@ -11456,8 +11456,8 @@ export interface Browser {
/**
* Whether the `meta viewport` tag is taken into account and touch events are enabled. isMobile is a part of device,
- * so you don't actually need to set it manually. Defaults to `false` and is not supported in Firefox. Learn more
- * about [mobile emulation](https://playwright.dev/docs/emulation#ismobile).
+ * so you don't actually need to set it manually. Defaults to `false`. Learn more about
+ * [mobile emulation](https://playwright.dev/docs/emulation#ismobile).
*/
isMobile?: boolean;
@@ -17845,8 +17845,8 @@ export interface BrowserType<Unused = {}> {
/**
* Whether the `meta viewport` tag is taken into account and touch events are enabled. isMobile is a part of device,
- * so you don't actually need to set it manually. Defaults to `false` and is not supported in Firefox. Learn more
- * about [mobile emulation](https://playwright.dev/docs/emulation#ismobile).
+ * so you don't actually need to set it manually. Defaults to `false`. Learn more about
+ * [mobile emulation](https://playwright.dev/docs/emulation#ismobile).
*/
isMobile?: boolean;
@@ -24827,8 +24827,8 @@ export interface AndroidDevice {
/**
* Whether the `meta viewport` tag is taken into account and touch events are enabled. isMobile is a part of device,
- * so you don't actually need to set it manually. Defaults to `false` and is not supported in Firefox. Learn more
- * about [mobile emulation](https://playwright.dev/docs/emulation#ismobile).
+ * so you don't actually need to set it manually. Defaults to `false`. Learn more about
+ * [mobile emulation](https://playwright.dev/docs/emulation#ismobile).
*/
isMobile?: boolean;
@@ -26077,8 +26077,8 @@ export interface BrowserContextOptions {
/**
* Whether the `meta viewport` tag is taken into account and touch events are enabled. isMobile is a part of device,
- * so you don't actually need to set it manually. Defaults to `false` and is not supported in Firefox. Learn more
- * about [mobile emulation](https://playwright.dev/docs/emulation#ismobile).
+ * so you don't actually need to set it manually. Defaults to `false`. Learn more about
+ * [mobile emulation](https://playwright.dev/docs/emulation#ismobile).
*/
isMobile?: boolean;
diff --git a/packages/playwright-core/types/types.d.ts b/packages/playwright-core/types/types.d.ts
index cd297c4c18..e0c5e74a56 100644
--- a/packages/playwright-core/types/types.d.ts
+++ b/packages/playwright-core/types/types.d.ts
@@ -11456,8 +11456,8 @@ export interface Browser {
/**
* Whether the `meta viewport` tag is taken into account and touch events are enabled. isMobile is a part of device,
- * so you don't actually need to set it manually. Defaults to `false` and is not supported in Firefox. Learn more
- * about [mobile emulation](https://playwright.dev/docs/emulation#ismobile).
+ * so you don't actually need to set it manually. Defaults to `false`. Learn more about
+ * [mobile emulation](https://playwright.dev/docs/emulation#ismobile).
*/
isMobile?: boolean;
@@ -17845,8 +17845,8 @@ export interface BrowserType<Unused = {}> {
/**
* Whether the `meta viewport` tag is taken into account and touch events are enabled. isMobile is a part of device,
- * so you don't actually need to set it manually. Defaults to `false` and is not supported in Firefox. Learn more
- * about [mobile emulation](https://playwright.dev/docs/emulation#ismobile).
+ * so you don't actually need to set it manually. Defaults to `false`. Learn more about
+ * [mobile emulation](https://playwright.dev/docs/emulation#ismobile).
*/
isMobile?: boolean;
@@ -24827,8 +24827,8 @@ export interface AndroidDevice {
/**
* Whether the `meta viewport` tag is taken into account and touch events are enabled. isMobile is a part of device,
- * so you don't actually need to set it manually. Defaults to `false` and is not supported in Firefox. Learn more
- * about [mobile emulation](https://playwright.dev/docs/emulation#ismobile).
+ * so you don't actually need to set it manually. Defaults to `false`. Learn more about
+ * [mobile emulation](https://playwright.dev/docs/emulation#ismobile).
*/
isMobile?: boolean;
@@ -26077,8 +26077,8 @@ export interface BrowserContextOptions {
/**
* Whether the `meta viewport` tag is taken into account and touch events are enabled. isMobile is a part of device,
- * so you don't actually need to set it manually. Defaults to `false` and is not supported in Firefox. Learn more
- * about [mobile emulation](https://playwright.dev/docs/emulation#ismobile).
+ * so you don't actually need to set it manually. Defaults to `false`. Learn more about
+ * [mobile emulation](https://playwright.dev/docs/emulation#ismobile).
*/
isMobile?: boolean;
diff --git a/packages/playwright/types/test.d.ts b/packages/playwright/types/test.d.ts
index be42070de6..3c26c1be5a 100644
--- a/packages/playwright/types/test.d.ts
+++ b/packages/playwright/types/test.d.ts
@@ -7592,8 +7592,8 @@ export interface PlaywrightTestOptions {
ignoreHTTPSErrors: boolean;
/**
* Whether the `meta viewport` tag is taken into account and touch events are enabled. isMobile is a part of device,
- * so you don't actually need to set it manually. Defaults to `false` and is not supported in Firefox. Learn more
- * about [mobile emulation](https://playwright.dev/docs/emulation#ismobile).
+ * so you don't actually need to set it manually. Defaults to `false`. Learn more about
+ * [mobile emulation](https://playwright.dev/docs/emulation#ismobile).
*
* **Usage**
*