Skip to content

Instantly share code, notes, and snippets.

@bugbusterinc
Created November 8, 2012 10:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bugbusterinc/4038082 to your computer and use it in GitHub Desktop.
Save bugbusterinc/4038082 to your computer and use it in GitHub Desktop.
Conductor example to login
var w1 = bugbuster.createWindow();
w1.setWindowSize(800, 600);
w1.load('http://www.yourapplication.com');
// Synchronous wait for the page to finish loading and
// JavaScript to finish executing. You can use this method
// after any action to make sure the page is ready before doing
// something else
w1.waitForStableState();
// Sequence of action to fill in the log-in form
w1.findElementByCssSelector("#userNameField")
.sendKeys("username");
w1.findElementByCssSelector("#passwordField")
.sendKeys("impossibleToGuessPasswordValue");
w1.findElementByCssSelector("#submitButton").click();
w1.waitForStableState();
// Start automatic exploration
w1.startExploration();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment