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
simply because .on('data',func) does not promise you anything about the data you receive.
While you're looking for Selenium Server is up and running , you might never actually see it since it might split to 2 data events. one will say Selenium Server is and the other up and running..
it can split at any point...
you can clearly see it in the code
function data(out) {
grunt.verbose.writeln('>> '.red + out);
var lines;
if (REGEXP_REMOTE.test(out)) {
server = extract(REGEXP_REMOTE, out, 1).replace(/\/wd\/hub/, '') || server;
} else if (REGEXP_START_READY.test(out)) {
// Success
what you need is to concatenate the outputs and look at the concatenation..
The code is wrong in
data
Why?
simply because
.on('data',func)
does not promise you anything about the data you receive.While you're looking for
Selenium Server is up and running
, you might never actually see it since it might split to 2data
events. one will saySelenium Server is
and the otherup and running
..it can split at any point...
you can clearly see it in the code
what you need is to concatenate the outputs and look at the concatenation..
this might be handy: http://stackoverflow.com/a/20091680/1068746
The text was updated successfully, but these errors were encountered: