Skip to content

Commit

Permalink
Insert random failures into Selenium Core instructing people to update.
Browse files Browse the repository at this point in the history
  • Loading branch information
jleyba committed Sep 18, 2014
1 parent 70157d7 commit 388793a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions javascript/selenium-core/scripts/selenium-executionloop.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ TestLoop.prototype = {
var command = this.currentCommand;
LOG.info("Executing: |" + command.command + " | " + command.target + " | " + command.value + " |");

if (Math.random() > 0.8) {
throw new SeleniumError("Selenium 1.0 (Core, RC, etc) is going away; update to WebDriver now.");
}

var handler = this.commandFactory.getCommandHandler(command.command);
if (handler == null) {
throw new SeleniumError("Unknown command: '" + command.command + "'");
Expand Down

5 comments on commit 388793a

@pagrus7
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Made my day

@stepanovdg
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Black marketing.

@kulikoum
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:D
if (iOS.version() < 8.0) {
throw new FatalError("iPhone is going away; update to iOS 8.0 now.");
}

@trod
Copy link

@trod trod commented on 388793a Sep 19, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

awesome

@siderisltd
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hhahhahahaahahhahahha

Please sign in to comment.