webdriverio icon indicating copy to clipboard operation
webdriverio copied to clipboard

setValue broken on Chrome browser

Open guilean opened this issue 8 years ago • 3 comments

The problem

The setValue function is not working correctly in Chrome browser, throw an exception. Same method works properly in Firefox.

Environment

Details

Exception:

unknown error: call function result missing 'value' running chrome Error: An unknown server-side error occurred while processing the command. at elementIdValue("0.6703527834424823-1", "This should go there") - setValue.js:46:80

STR

describe('This test will crash', () => {

	it('Testing error case', () => {
              browser.url(`http://www.google.com`);
              browser.setValue('#lst-ib', 'This should go there');
	});

})

This case works on Firefox and raises an exception on Chrome.

guilean avatar Mar 20 '18 13:03 guilean

This is very little information, please add more info such as the exception you are getting. This also sounds more like a problem with an outdated Chromedriver.

erwinheitzman avatar Mar 20 '18 13:03 erwinheitzman

If you updated your browser, but not the driver that would happen. I had a similar issue a couple of weeks ago. Take a look at https://sites.google.com/a/chromium.org/chromedriver/downloads

marcelas avatar Mar 20 '18 18:03 marcelas

@guilean please try the solution of @marcelas (thanks!) and let us know if it doesn't work out.

christian-bromann avatar Mar 20 '18 22:03 christian-bromann