Skip to content

Commit 98809e0

Browse files
authored
Update docs to use setMobileEmulation properly (#8461)
The custom config is wrapped in a "deviceMetrics" object
1 parent 997454c commit 98809e0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

javascript/node/selenium-webdriver/chromium.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -512,11 +512,11 @@ class Options extends Capabilities {
512512
*
513513
* __Example 2: Using Custom Screen Configuration__
514514
*
515-
* let options = new chrome.Options().setMobileEmulation({
515+
* let options = new chrome.Options().setMobileEmulation({deviceMetrics: {
516516
* width: 360,
517517
* height: 640,
518518
* pixelRatio: 3.0
519-
* });
519+
* }});
520520
*
521521
* let driver = chrome.Driver.createSession(options);
522522
*

0 commit comments

Comments
 (0)