<input class="form-control validation-field ng-dirty ng-touched ng-invalid" placeholder="Password" type="password">
Despite using the element to retrieve it, I am unable to send keys and no error message is displayed. This issue persists in both Firefox and Google Chrome.
element.all(By.css('.form-control.validation-field.ng-dirty.ng-valid.ng-touched')).sendKeys('sample code');
The contents of my conf.js file are as follows:
// Sample configuration file.
exports.config = {
directConnect: true,
// Capabilities sent to the webdriver instance.
capabilities: {
'browserName': 'firefox'
},
// Recommended framework is Jasmine.
framework: 'jasmine',
// Spec patterns relative to current working directory when protractor is called.
specs: ['example_spec.js'],
// Options for Jasmine.
jasmineNodeOpts: {
defaultTimeoutInterval: 100000
}
};
When attempting to use get(0)
or get(1)
, an error is displayed stating that the CSS cannot be located. Why is this happening?