Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
Appvance
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Malav Parekh
Appvance
Commits
616aab2d
Commit
616aab2d
authored
Jun 30, 2023
by
Rakesh Mareddy
Committed by
Administrator
Jun 30, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Appvance Commit [skip ci] - [adding SwagLabs.js]
parent
343e4507
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
16 deletions
+10
-16
SwagLabs.js
SwagLabs.js
+10
-16
No files found.
SwagLabs.js
View file @
616aab2d
setVariablesIfNeeded
(
'REPOSITORY/NGitHackathon/SwagLabsCheckout_Data.csv'
,
'SyntheticDPL'
,
0
,
'en_US'
);
navigateTo
(
"https://www.saucedemo.com/"
);
verifyExists
(
div
(
any
(
"login_logo"
)));
setValue
(
textbox
(
any
(
"user-name"
,
"form_input input_error"
)),
"standard_user"
);
setValue
(
password
(
any
(
"password"
,
"form_input input_error"
)),
"secret_sauce"
);
click
(
submit
(
any
(
"login-button"
)));
addValidationsWorkbench
(
"{ds}/SwagLabsLogo_Validation.valid"
);
click
(
submit
(
any
(
"add-to-cart-sauce-labs-backpack"
)));
click
(
submit
(
any
(
"add-to-cart-sauce-labs-bolt-t-shirt"
)));
click
(
submit
(
any
(
"add-to-cart-sauce-labs-onesie"
)));
click
(
link
(
any
(
"shopping_cart_link"
,
"#shopping_cart_container > a"
)));
click
(
submit
(
any
(
"remove-sauce-labs-bolt-t-shirt"
)));
click
(
submit
(
any
(
"continue-shopping"
)));
click
(
submit
(
any
(
"add-to-cart-sauce-labs-bolt-t-shirt"
)));
click
(
link
(
any
(
"shopping_cart_link"
,
"#shopping_cart_container > a"
)));
click
(
submit
(
any
(
"checkout"
,
"add-to-cart-sauce-labs-bolt-t-shirt"
)));
setValue
(
textbox
(
any
(
"first-name"
,
"form_input input_error"
,
"firstName"
)),
"Test"
);
setValue
(
textbox
(
any
(
"last-name"
,
"lastName"
)),
"EMail"
);
setValue
(
textbox
(
any
(
"postal-code"
)),
"500084"
);
click
(
submit
(
any
(
"continue"
,
"checkout"
)));
click
(
submit
(
any
(
"finish"
,
"checkout"
)));
\ No newline at end of file
click
(
submit
(
any
(
"add-to-cart-sauce-labs-backpack"
,
"btn btn_inventory btn_primary btn_small"
,
"Add to cart"
)));
click
(
submit
(
any
(
"add-to-cart-sauce-labs-bike-light"
,
"btn btn_inventory btn_primary btn_small"
,
"Add to cart"
)));
click
(
span
(
any
(
"shopping_cart_badge"
,
"2"
)));
click
(
submit
(
any
(
"checkout"
,
"btn btn_action btn_medium checkout_button"
,
"Checkout"
)));
setValue
(
textbox
(
any
(
"first-name"
,
"form_input input_error"
,
"firstName"
)),
$FirstName
);
setValue
(
textbox
(
any
(
"last-name"
,
"lastName"
)),
$LastName
);
setValue
(
textbox
(
any
(
"postal-code"
,
"postalCode"
)),
$ZipCode
);
click
(
submit
(
any
(
"continue"
,
"btn btn_action btn_primary cart_button submit-button"
,
"Continue"
)));
click
(
submit
(
any
(
"finish"
,
"btn btn_action btn_medium cart_button"
,
"Finish"
)));
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment