Skip to content

Instantly share code, notes, and snippets.

@LottieVixen
Created June 2, 2016 03:26
Show Gist options
  • Select an option

  • Save LottieVixen/d98cb87a30afe30513a39c0ea79f9488 to your computer and use it in GitHub Desktop.

Select an option

Save LottieVixen/d98cb87a30afe30513a39c0ea79f9488 to your computer and use it in GitHub Desktop.
var webdriverio = require('webdriverio');
//var webdriverio = require('selenium-webdriver');
var Username = "[email protected]";
var Password = "pencil12";
var options = {
desiredCapabilities: {
browserName: 'firefox'
}
};
webdriverio
.remote(options)
.init()
.url('https://www.seek.com.au/login')
.getTitle().then(function(title) {
console.log('Title was: ' + title);
})
.setValue('#Email', `${Username}`)
.setValue('#Password',`${Password}`)
//.submitForm('#signInForm')
.click('.form-submit-action').click('.form-submit-action').click('.form-submit-action');
//.end();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment