Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- jasmine.getEnv().defaultTimeoutInterval = 10000;
- var webdriver = require('selenium-webdriver'),
- driver = new webdriver.Builder().
- withCapabilities(webdriver.Capabilities.firefox()).
- build();
- describe('startpage', function() {
- driver.get('http://localhost/');
- it('should have application name in title', function(done) {
- driver.getTitle()
- .then(function(title) {
- expect(title.indexOf('MyApp™')).not.toBe(-1);
- done();
- });
- });
- runs(function() {
- driver.quit();
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment