Created
November 8, 2012 10:43
-
-
Save bugbusterinc/4038082 to your computer and use it in GitHub Desktop.
Conductor example to login
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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