srinivas p
srinivas p

Reputation: 19

Process exited with error code 1

Why test run fails in below case using protractor

conf.js

    exports.config = {
    framework: 'jasmine',
    seleniumAddress: 'http://localhost:4444/wd/hub',
    specs: ['example_spec.js']
    }

    example_spec.js

    describe('LoginGUI App Test', function() {
    it('LogInToGUI', function() {
    browser.get('http://10.2.5.6:2772/#/login');
    browser.waitForAngular();
    element(by.model('user.username').sendkeys('[email protected]'));
    element(by.model('user.password').sendkeys('abc123'));
    });
    });

Error: Process exited with error code 1 I have used both sendkeys and sendKeys methods to send values for the keys but the same error seen....not sure why the error seen

Upvotes: 0

Views: 16961

Answers (2)

radio_head
radio_head

Reputation: 1375

you have a typo in your code. This should work

element(by.model('user.username')).sendKeys('[email protected]');
element(by.model('user.password')).sendKeys('abc123');

Upvotes: 0

Gunderson
Gunderson

Reputation: 3268

You are missing a parenthesis after your element declaration, need to close it.

element(by.model('user.username')).sendKeys('123');

Upvotes: 3

Related Questions