0.0.5 • Published 9 years ago

webdriverio-office365 v0.0.5

Weekly downloads
2
License
BSD-2-Clause
Repository
github
Last release
9 years ago

#webdriver-office365

A plugin for webdriverio - http://www.webdriver.io/

Simplifies the process for automating Office365 login.

Add the command to your webdriverio client using addCommand method.

client.addCommand('loginToOffice365', helper.loginToOffice365.bind(client));

Parameters:

.loginToOffice365(username, password, siteUrl, loginMethod)

loginMethod can be "integrated", "adfs", or undefined

Use "integrated" if you are logging in with Azure AD. "adfs" for ADFS login.

	var webdriverio = require('webdriverio');
	var helper = require('webdriverio-office365');

	var options = {
	    desiredCapabilities: {
	        browserName: 'chrome'
	    }
	};

	client = webdriverio.remote(options);
	
	// bind the custom command to webdriverio
	client.addCommand('loginToOffice365', helper.loginToOffice365.bind(client));

	client
	    .init()
	    // direct the browser to login to Office 365
	    .loginToOffice365('someusername', 'sompassword', 'someurl')
	    .getTitle().then(function(title) {
	        console.log(title);
	    })
	    .end();
		
0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago

0.0.0

9 years ago