Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- casper.test.begin('Casperjs web page automated by Gorilla Logic ', function suite(test) {
- casper.start("http://docs.casperjs.org/en/latest/", function() {
- this.waitForSelector('#searchbox');
- // test.assertTitle("Google", "google homepage title is the one expected");
- this.sendKeys('#searchbox > form > div:nth-child(2) > input[type="submit"]', 'credits');
- this.click('#searchbox');
- });
- casper.then(function() {
- test.assertTitle(this.getTitle(), "Title is displayed correctly");
- });
- //Test execution
- casper.run(function() {
- this.log('Test finishing', 'info');
- test.done();
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment