오류 : 모듈을 찾을 수 없습니다 '셀레늄 webdriver' 내가 전 세계적으로 NPM -g 각도기 webdriver-관리자 업데이트를 설치 를 사용하여 끄 및 셀레늄 webdriver를 설치 한각도기 E2E 테스트 오류 : 모듈 '셀레늄 webdriver'를 찾을 수 없습니다
당신이 터미널에webdriver-manager
을 입력
var webdriver = require('selenium-webdriver');
describe('modes of failure', function() {
it('should fail to find a non-existent element', function() {
browser.get('index.html#/form');
// Run this statement before the line which fails. If protractor is run
// with the debugger (protractor debug debugging/conf.js), the test
// will pause after loading the webpage but before trying to find the
// element.
browser.debugger();
// This element doesn't exist, so this fails.
var nonExistant = element(by.binding('nopenopenope')).getText();
});
it('should fail to use protractor on a non-Angular site', function() {
browser.get('http://www.google.com');
}, 20000);
it('should fail an assertion', function() {
browser.get('index.html#/form');
var greeting = element(by.binding('{{greeting}}'));
expect(greeting.getText()).toEqual('This is not what it equals');
});
});
왜이 식으로 webriver이 필요할까요? – glepretre
이 명령 줄을 사용하여 예제를 실행 해 주시겠습니까? 'protractor node_modules/protractor/example/conf.js' – glepretre