всем привет! кто может помочь с ошибками в коде?
пытаюсь протестировать сайт с логином
вроде код все верен
Но при запуске скрипта ошибки
1. не вписывает данные (логин и пароль)
2. не нажимает кнопку логин
3. в терминале выдает
Error
at Suite.<anonymous> (C:\Users\Диас\AppData\Roaming\npm\node_modules\protractor\example\exercise3.js:3:5)
at Object.<anonymous> (C:\Users\Диас\AppData\Roaming\npm\node_modules\protractor\example\exercise3.js:1:1)
at Module._compile (internal/modules/cjs/loader.js:1138:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
at Module.load (internal/modules/cjs/loader.js:986:32)
at Function.Module._load (internal/modules/cjs/loader.js:879:14)
мой скрипт
describe('wefox task', function(){
it('login', function(){
browser.get('
https://my.wefox.de/login');
element(
by.id('user_name')).sendKeys('username');
element(
by.id('password')).sendKeys('password');
element(by.xpath( '//button[
@class=wf-c-btn --primary --block-xs]' )).click();
browser.sleep(50000)
});
});