2
node_modules를 업데이트 한 후 필기 테스트가 실패하기 시작했습니다.페이지가 완전히로드되기 전에 각도기 테스트가 통과합니다.
Using the selenium server at http://127.0.0.1:4444/wd/hub
[launcher] Running 1 instances of WebDriver
Spec started
Login
✓ should navigate to the homepage
✓ should display login form
Password > Forgot Password
✓ should go the forgot password form
✓ should not redirect user if email does not exist
Executed 4 of 4 specs SUCCESS in 0.025 sec.
Uncaught exception: Error while waiting for Protractor to sync with the page: "[ng:test] no injector found for element argument to getTestability\nhttp://errors.angularjs.org/1.5.8/ng/test"
[launcher] Process exited with error code 1
시작된 Google 크롬 창이 비어 있지만 올바른 URL (http://localhost:8081)가 : 테스트 페이지도로드하기 전에 실행을 시작할 것으로 보인다. 그러나 테스트를 실행하지 않고 대신 browser.get('/')
을 호출하면 윈도우가 내 웹 앱으로 이동하고 페이지가 예상대로로드됩니다.
필자는 테스트가 protractor, selenium 및 Chrome 사이의 통신과 관계없이 어떻게 든 실행되고 있고 어쨌든 비동기식으로 오류가 있다고 의심합니다.
저는 현재 다음 버전을 실행하고 있습니다 :
- 각도기 : 2.5.1
- 셀레늄 서버 독립형 : 2.47.1 (나는 또한 2.46.0와 시도)
- chromedriver : 52.0.2743.116
Firefox에서도 마찬가지입니까? directConnect를 켜거나 끌 경우 어떻게됩니까? – alecxe
분도기 2.5.1? 4.0.4가 이미 있습니다. 업그레이드하지 않으시겠습니까? – alecxe
브라우저의 콘솔에 오류가 있습니까? – sdgluck