12

I am using Protractor and jasmine.

I have Identified that chrome driver version: 2.32.498550 (latest) is not compatible with the chrome beta (Version 62.0.3202.18 (Official Build)).

It breaks when the statements like

browser.driver.manage().window().maximize()

or

browser.driver.manage().window().getSize()

of the browser windows gets executed.

Can any one help me with this ?

Kalamarico
  • 5,466
  • 22
  • 53
  • 70
Jahangir Rana
  • 167
  • 1
  • 2
  • 12
  • Possible answer https://stackoverflow.com/questions/20023567/how-to-set-default-browser-window-size-in-protractor-webdriverjs – iamsankalp89 Sep 20 '17 at 11:58
  • 2
    @iamsankalp89 is correct in his answer/comments. You can check the [chrome driver release notes](https://sites.google.com/a/chromium.org/chromedriver/downloads) which clearly states "Supports Chrome v59-61". v62 is not supported – Gunderson Sep 20 '17 at 12:57
  • Nice Question dear. it helps us – iamsankalp89 Sep 20 '17 at 13:08

3 Answers3

13

Try this :

var width_size = 1024;
var height_size = 786;
browser.driver.manage().window().setSize(width_size , height_size );

Latest chromedriver does not support Latest chrome version, it support till chrome 61

See this link: http://chromedriver.storage.googleapis.com/2.32/notes.txt

It is issue of chromedriver

Hans Vonn
  • 3,949
  • 3
  • 21
  • 15
iamsankalp89
  • 4,607
  • 2
  • 15
  • 36
6

Update your ChromeDriver version to 2.33 (e.g. using NuGet). You may have to end all running chromedriver.exe processes to get a successful build.

There was a bug in version 2.32 that caused resizing to fail for Chrome version 62. See this answer.

Hans Vonn
  • 3,949
  • 3
  • 21
  • 15
0

It causes because page took long time to load , you need add additional line to your chromedriver option. Please refer the below link for more information : Timed out receiving message from renderer in selenium

sumit kumar pradhan
  • 614
  • 1
  • 6
  • 12