Skip to content

Commit 420399d

Browse files
committed
feat(emulation): add emulate_geolocation tool to documentation
1 parent b616e7c commit 420399d

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,8 +296,9 @@ If you run into any issues, checkout our [troubleshooting guide](./docs/troubles
296296
- [`new_page`](docs/tool-reference.md#new_page)
297297
- [`select_page`](docs/tool-reference.md#select_page)
298298
- [`wait_for`](docs/tool-reference.md#wait_for)
299-
- **Emulation** (2 tools)
299+
- **Emulation** (3 tools)
300300
- [`emulate`](docs/tool-reference.md#emulate)
301+
- [`emulate_geolocation`](docs/tool-reference.md#emulate_geolocation)
301302
- [`resize_page`](docs/tool-reference.md#resize_page)
302303
- **Performance** (3 tools)
303304
- [`performance_analyze_insight`](docs/tool-reference.md#performance_analyze_insight)

docs/tool-reference.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@
1818
- [`new_page`](#new_page)
1919
- [`select_page`](#select_page)
2020
- [`wait_for`](#wait_for)
21-
- **[Emulation](#emulation)** (2 tools)
21+
- **[Emulation](#emulation)** (3 tools)
2222
- [`emulate`](#emulate)
23+
- [`emulate_geolocation`](#emulate_geolocation)
2324
- [`resize_page`](#resize_page)
2425
- **[Performance](#performance)** (3 tools)
2526
- [`performance_analyze_insight`](#performance_analyze_insight)
@@ -200,6 +201,17 @@
200201

201202
---
202203

204+
### `emulate_geolocation`
205+
206+
**Description:** Emulates geolocation on the selected page. Useful for testing location-based features.
207+
208+
**Parameters:**
209+
210+
- **latitude** (number) _(optional)_: Latitude between -90 and 90. Omit latitude and longitude to clear the override.
211+
- **longitude** (number) _(optional)_: Longitude between -180 and 180. Omit latitude and longitude to clear the override.
212+
213+
---
214+
203215
### `resize_page`
204216

205217
**Description:** Resizes the selected page's window so that the page has specified dimension

0 commit comments

Comments
 (0)