Webdriverio element needs to be type of string?
My code is as followed:
describe('Test Contact Us form WebdriverUni', function() {
it.only('Should be able to submit a successful submission via contact us form', function(done) {
browser.pause(5000);
var firstNameTextField = $("[name='first_name']");
var firstNameTextField = "[name='last_name']";
browser.setValue(firstNameTextField, 'Joe');
Using the following code: var and $, I seem to be receiving the following exception: 'element needs to be type of String'.
Also the following fails with the same exception:
var firstNameTextField = browser.element("[name='last_name']");
However the following works:
browser.setValue("[name='first_name']", 'Joe');
Any ideas?