You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 18, 2019. It is now read-only.
I'm new to Mocha, so bare with me, but in trying to set up multiple webdrivercss tests inside of a mocha test I followed the example in the readme file
// Example using Mocha
it('should check the first page',function(done) {
client
.init()
.url('https://example.com')
// Make this name unique.
.webdrivercss('page1', [
{
name: 'test',
screenWidth: [320,480,640,1024]
}, {
name: 'test_two',
screenWidth: [444,666]
}
])
.end()
.call(done);
});
it('should check the second page',function(done) {
client
// ...
// Make this name unique.
.webdrivercss('page2', [
// ..
])
// ...
);
I continued to get the following errors on the second "should check the second page" test.
Uncaught RuntimeError
(UnknownError:13) An unknown server-side error occurred while processing the command.
Problem: POST /session//url
I was able to resolve the issue by removing the .end() function from the first test.
Is this the correct way to run tests? Does .end() tell webdriver to stop? Should we update the documentation?
The text was updated successfully, but these errors were encountered:
I'm new to Mocha, so bare with me, but in trying to set up multiple webdrivercss tests inside of a mocha test I followed the example in the readme file
I continued to get the following errors on the second "should check the second page" test.
I was able to resolve the issue by removing the
.end()
function from the first test.Is this the correct way to run tests? Does
.end()
tell webdriver to stop? Should we update the documentation?The text was updated successfully, but these errors were encountered: