scala-automation-web-signin

let us add the guardian login cookies to webdriver

License

License

Categories

Categories

Scala Languages Auto Application Layer Libs Code Generators
GroupId

GroupId

com.gu
ArtifactId

ArtifactId

scala-automation-web-signin_2.10
Last Version

Last Version

1.1
Release Date

Release Date

Type

Type

jar
Description

Description

scala-automation-web-signin
let us add the guardian login cookies to webdriver
Project URL

Project URL

https://github.com/guardian/scala-automation-web-signin
Project Organization

Project Organization

com.gu
Source Code Management

Source Code Management

https://github.com/guardian/scala-automation-web-signin

Download scala-automation-web-signin_2.10

How to add to project

<!-- https://jarcasting.com/artifacts/com.gu/scala-automation-web-signin_2.10/ -->
<dependency>
    <groupId>com.gu</groupId>
    <artifactId>scala-automation-web-signin_2.10</artifactId>
    <version>1.1</version>
</dependency>
// https://jarcasting.com/artifacts/com.gu/scala-automation-web-signin_2.10/
implementation 'com.gu:scala-automation-web-signin_2.10:1.1'
// https://jarcasting.com/artifacts/com.gu/scala-automation-web-signin_2.10/
implementation ("com.gu:scala-automation-web-signin_2.10:1.1")
'com.gu:scala-automation-web-signin_2.10:jar:1.1'
<dependency org="com.gu" name="scala-automation-web-signin_2.10" rev="1.1">
  <artifact name="scala-automation-web-signin_2.10" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.gu', module='scala-automation-web-signin_2.10', version='1.1')
)
libraryDependencies += "com.gu" % "scala-automation-web-signin_2.10" % "1.1"
[com.gu/scala-automation-web-signin_2.10 "1.1"]

Dependencies

compile (3)

Group / Artifact Type Version
org.scala-lang : scala-library jar 2.10.4
com.gu : scala-automation_2.10 jar 1.18
com.gu : scala-automation-api-client_2.10 jar 1.0

Project Modules

There are no modules declared in this project.

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

com.gu

The Guardian

The source code of the world's leading liberal voice

Versions

Version
1.1
1.0