Protractor Chrome v53後的錯誤修正
更新到Chrome 53後,原本可以正常執行測試的的Protractor出現了些bug... 無法使用鍵盤的Tab鍵。 無法執行測試,錯誤訊息"Error Runtime.executionContextCreated has invalid 'context'" 解決方式 在github Issue 找到的解答是將selenium chrome driver 更新到2.24,不過要透過指定版本的方式,才可以更析,個人更新步驟如下: 開啟工作管理員,先將殘留chrome.exe停掉,否則無法更新driver 重新安裝 Protractor (非必要步驟,只是我因更新driver後,也無法執行測試,所以用重新安裝的方式就可以了) npm uninstall protractor -g npm install protractor –g 更新driver webdriver-manager update --standalone true --versions.chrome 2.24 參考來源 https://github.com/angular/protractor/issues/3530 https://github.com/angular/webdriver-manager/issues/93