Reputation: 968
b.driver.manage.window.resize_to(1000, 1000)
That line above doesn't work with chrome on my mac. I am running watir-webdriver 0.6.1 and selenium-webdriver 2.22.2.
I get the following error:
1.9.3-p125 :003 > b.driver.manage.window.resize_to(1000, 1000)
Selenium::WebDriver::Error::WebDriverError: unknown error, status=405: ["GET", "HEAD", "DELETE"]
I haven't installed ChromeDriver. Just running directly with the help of the above 2 gems. Any help would be much appreciated. For some reason, the latest watir-webdriver doesn't require safari-driver or chrome-driver. In fact, installing Chromedriver and putting it in the PATH in this case, breaks the functionality with chrome. I cannot get chrome up and running at all with ChromeDriver.
Upvotes: 0
Views: 458
Reputation: 281
Try the following:
browser.window.resize_to(x, y)
browser.window.move_to(x, y)
I was able to get this to work on the most current version of chrome. Bypass using driver.manage functions.
Upvotes: 1