Skip to content

Instantly share code, notes, and snippets.

@paulsheldrake
Created February 2, 2019 01:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save paulsheldrake/9b36a099f329f664ac5b196fd2d1300f to your computer and use it in GitHub Desktop.
Save paulsheldrake/9b36a099f329f664ac5b196fd2d1300f to your computer and use it in GitHub Desktop.
Basic setup for Kantu user creation form.
{
"Name": "WT - user create",
"CreationDate": "2019-2-1",
"Commands": [
{
"Command": "deleteAllCookies",
"Target": "",
"Value": ""
},
{
"Command": "open",
"Target": "http://example.docksal/user/register",
"Value": ""
},
{
"Command": "type",
"Target": "id=edit-field-user-first-name-und-0-value",
"Value": "fname"
},
{
"Command": "type",
"Target": "id=edit-field-user-last-name-und-0-value",
"Value": "lname"
},
{
"Command": "storeEval",
"Target": "(new Date().getTime())",
"Value": "timestamp"
},
{
"Command": "storeEval",
"Target": "${timestamp} + '@example.com'",
"Value": "email"
},
{
"Command": "type",
"Target": "id=edit-name",
"Value": "${timestamp}"
},
{
"Command": "type",
"Target": "id=edit-mail",
"Value": "${email}"
},
{
"Command": "type",
"Target": "css=.form-item-pass-pass1 .form-text",
"Value": "12345"
},
{
"Command": "type",
"Target": "css=.form-item-pass-pass2 .form-text",
"Value": "12345"
},
{
"Command": "clickAndWait",
"Target": "css=#user-register-form .form-actions button",
"Value": ""
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment