Skip to content

Commit 85e4894

Browse files
committed
Added a snippet about maximizing the browser
A common problem. Previously, you had to set a chrome switch but now ChromeDriver2 supports maximizing via the wire protocol.
1 parent 31418ce commit 85e4894

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,3 +378,10 @@ $profile = new PHPWebDriver_WebDriverFirefoxProfile('path/to/a/firefox/profile')
378378
$session = $driver->session('firefox', array(), array(), $browser_profile=$profile);
379379
$session->close();
380380
```
381+
382+
## Full screen
383+
* To maximize the browser window, simply use the API. Now works in Chrome since ChromeDriver version 2.
384+
385+
```php
386+
$session->window()->maximize();
387+
```

0 commit comments

Comments
 (0)