blueprintmrk / selenium-vba

Automatically exported from code.google.com/p/selenium-vba
0 stars 0 forks source link

How to maximize browserwindow ? #16

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Operating system : Windows XP SP3
.Net Framework version : 3.5
Office Version : 2007
SeleniumWrapper version : 1.0.10

What is your issue ?

Is it possible to maximize the browserwindow while using the webdriver?
Making screenshots on the small window doesn`t make much sense for my 
workingproject.
It would be nice if you could help me to max the browserwindow.

Best regards
Christian

Original issue reported on code.google.com by Neyses.i...@gmail.com on 20 Feb 2013 at 2:34

GoogleCodeExporter commented 9 years ago
Sorry.. already find:

selenium.windowMaximize

Sorry :-)

Original comment by Neyses.i...@gmail.com on 20 Feb 2013 at 2:50

GoogleCodeExporter commented 9 years ago
You can also use the browser shortcut (F11) :
 Dim driver As New SeleniumWrapper.WebDriver
 Dim Keys As New SeleniumWrapper.Keys
 driver.start "firefox", "http://www.google.com"
 driver.sendKeys Keys.F11

Original comment by florentbr on 20 Feb 2013 at 3:39