Don't close window from test driver.
Sometimes I get a "Unable to find target with id XXX closeTarget..." error when running tests which happens when test.js tries to close all the open pages. I haven't been able to fully verify since this is intermittent, but I think this is coming from us closing the window in driver.js and also trying to close it in test.js.
This commit is contained in:
parent
b753271ca6
commit
a969440af8
@ -850,11 +850,6 @@ class Driver {
|
|||||||
// Send the quit request
|
// Send the quit request
|
||||||
const r = new XMLHttpRequest();
|
const r = new XMLHttpRequest();
|
||||||
r.open("POST", `/tellMeToQuit?browser=${escape(this.browser)}`, false);
|
r.open("POST", `/tellMeToQuit?browser=${escape(this.browser)}`, false);
|
||||||
r.onreadystatechange = function (e) {
|
|
||||||
if (r.readyState === 4) {
|
|
||||||
window.close();
|
|
||||||
}
|
|
||||||
};
|
|
||||||
r.send(null);
|
r.send(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user