Skip to content

Commit 9de6f64

Browse files
committed
Merge pull request Element-34#40 from adam-lynch/patch-1
Added a snippet about maximizing the browser
2 parents feb6928 + 85e4894 commit 9de6f64

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)