Transporter 5.1.1 does not work with Chrome 58

Recently, my Chrome browser has been updated to Version 57.0.2987.133 (64-bit) . Therefore, my existing protractor test does not work with the current version of chrome. Error message

Error: unknown error: cannot use the 'in' operator to search for 'String' in false (Session information: chrome = 58.0.3029.96) (Driver information: chromedriver = 2.29.461591 (62ebf098771772160f391d75e589dc567915b233), platform = Windows NT 6.3. 9600 x86_64) (ATTENTION: the server did not provide any information about the stack) Duration or timeout of the command: 18 milliseconds Assembly information: version: "3.4.0", version: "unknown", time: "unknown" System information: host : 'WIN-DA72NJNI5DP', ip: '172.16.230.61', os.name: 'Windows Server 2012 R2', os.arch: 'amd64', os.version: '6.3', java.version: '1.8.0_131 'Driver Information: org.openqa.seleni um. \ Temp \ scoped_dir7512_11086}, accepts HeapSnapshot = true, pageLoadStrategy = normal, databaseEnabled = false, handlesAlerts = true, hasTouchScreen = false, version = 58.0.3029.96, platform = WIN8_1, browserConnectionEnabled = false, nativeEvents = locationd true = accept, trued true, webStorageEnabled = true, browserName = chrome, accepts Screenshot = true, javascriptEnabled = true, cssSelectorsEnabled = true, unexpectedAlertBehaviour =}]

Even I updated the chrome driver version to 2.28 and then 2.29. but it didn’t work. Here is more detailed information about my current test environment:

  • chrome: 58.0.3029.81
  • protractor: 5.1.1
  • webdriver-manager: 12.0.4
  • chrome driver: 2.29
  • nodejs: 6.9.4
+5
source share
2 answers

Your chromedriver out of date. You need chromedriver 2.29 for Chrome versions 56-58.

Make sure you have the latest webdriver-manager :

 npm install webdriver-manager 

The ad then update:

 webdriver-manager update --versions.chrome 2.29 

Worked for me.

+2
source

Try updating the chrome driver using the commands below,

Update webdriver-manager --versions.chrome = 2.28

webdriver-manager start --versions.chrome = 2.28

since you are using an incompatible version of the browser and driver

0
source

Source: https://habr.com/ru/post/1266997/


All Articles