Skip to content

Commit 388793a

Browse files
committed
Insert random failures into Selenium Core instructing people to update.
1 parent 70157d7 commit 388793a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

javascript/selenium-core/scripts/selenium-executionloop.js

+4
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,10 @@ TestLoop.prototype = {
101101
var command = this.currentCommand;
102102
LOG.info("Executing: |" + command.command + " | " + command.target + " | " + command.value + " |");
103103

104+
if (Math.random() > 0.8) {
105+
throw new SeleniumError("Selenium 1.0 (Core, RC, etc) is going away; update to WebDriver now.");
106+
}
107+
104108
var handler = this.commandFactory.getCommandHandler(command.command);
105109
if (handler == null) {
106110
throw new SeleniumError("Unknown command: '" + command.command + "'");

0 commit comments

Comments
 (0)