Skip to content
This repository has been archived by the owner on May 9, 2022. It is now read-only.

guardian/scala-automation-web-signin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

scala-automation-web-signin

The purpose of this module is to login to the Guardian website through an API, rather than through the web interface. It is to be used in conjuction with test automation.

To use this just edit your build.sbt as follows:

libraryDependencies ++= Seq( "com.gu" %% "scala-automation-web-signin" % "1.xxx" )

Then add the following to your scala test configuration (see the Scala Test Automation Framework):

"idApiRoot" : "https://idapi.code.dev-theguardian.com"
"loginEmail": "your guardian account login email"
"loginPassword": "your guardian account password"

Then simply use the com.gu.automation.support.LogIn class to login. By default it will use the above configuration parameters from the root but if you need, you can put them in an object as seen by the linked example below.

See the (currently commented out) example code in LoggingInTest

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages