I am using a selenium nightwatch to test automation. I am trying to use the selenium "elements" commands, which take the css or xpath selector as the first parameter, but continue to receive the following error:
Error starting element command: specify any of the following values as the first parameter: class name, css selector, identifier, name, link text, partial link text, tag name or xpath
My use is as follows:
module.exports = {
"My test" : function (browser) {
...
browser.elements('input','name', function(els){
browser.elements('//input','name', function(els){
});
}
}
Any ideas why I get this error? Thank!
source
share