Skip to content

AFrancani/protractor-collab-test-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

protractor-collab-test-example

This is a very simple setup to use protractor to go through the Collaboratory login page.

Setup

Use npm to install Protractor globally with:

npm install -g protractor

This will install two command line tools, protractor and webdriver-manager. Try running protractor --version to make sure it's working.

The webdriver-manager is a helper tool to easily get an instance of a Selenium Server running. Use it to download the necessary binaries with:

webdriver-manager update

Now start up a server with:

webdriver-manager start

This will start up a Selenium Server and will output a bunch of info logs. Your Protractor test will send requests to this server to control a local browser. You can see information about the status of the server at http://localhost:4444/wd/hub.

Configure your credentials

In order to login, you need to set valid credentials in the login.js file:

const USERNAME = 'My username';
const PASSWORD = 'My-password';

Run the test

protractor conf.js

This will open a browser and try to log in the Collaboratory with the provided credentials.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published