Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Protractor 5.1.1 doesn't work with Chrome 58

Recently my chrome browser updated to Version 57.0.2987.133 (64-bit). Therefore, my existing protractor test is not working with the current version of chrome. The error message is

Failed: unknown error: Cannot use 'in' operator to search for 'String' in false (Session info: chrome=58.0.3029.96) (Driver info: chromedriver=2.29.461591 (62ebf098771772160f391d75e589dc567915b233),platform=Windows NT 6.3.9600 x86_64) (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 18 milliseconds Build info: version: '3.4.0', revision: 'unknown', time: 'unknown' System info: 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 info: org.openqa.selenium.chrome.ChromeDriver Capabilities [{applicationCacheEnabled=false, rotatable=false, mobileEmulationEnabled=false, networkConnectionEnabled=false, chrome={chromedriverVersion=2.29.461591 (62ebf098771772160f391d75e589dc567915b233), userDataDir=C:\Users\ADMINI~1\AppData\Local\Temp\scoped_dir7512_11086}, takesHeapSnapshot=true, pageLoadStrategy=normal, databaseEnabled=false, handlesAlerts=true, hasTouchScreen=false, version=58.0.3029.96, platform=WIN8_1, browserConnectionEnabled=false, nativeEvents=true, acceptSslCerts=true, locationContextEnabled=true, webStorageEnabled=true, browserName=chrome, takesScreenshot=true, javascriptEnabled=true, cssSelectorsEnabled=true, unexpectedAlertBehaviour=}]

Even i have updated my chrome driver version to 2.28 and then 2.29. but it didn't work. Here is the more information about my current testing environment :

  • chrome: 58.0.3029.81
  • protractor: 5.1.1
  • webdriver-manager: 12.0.4
  • chrome driver: 2.29
  • nodejs: 6.9.4
like image 927
Upalr Avatar asked Oct 29 '22 08:10

Upalr


1 Answers

Your chromedriver is outdated. You need chromedriver 2.29 for Chrome versions 56-58.

Make sure you have the latest webdriver-manager:

npm install webdriver-manager

Ad then execute the update:

webdriver-manager update --versions.chrome 2.29

Worked for me.

like image 199
alecxe Avatar answered Nov 09 '22 22:11

alecxe