| open |
/web/guest/home/ |
|
| waitForElementPresent |
link=Shopping Test Page |
|
| clickAtAndWait |
link=Shopping Test Page |
|
| clickAtAndWait |
link=Cart |
|
| clickAtAndWait |
//input[@value='Checkout'] |
|
| type |
_34_billingStreet |
1234 Sesame Street |
| type |
_34_billingCity |
Gotham City |
| select |
_34_billingStateSel |
label=California |
| type |
_34_billingZip |
90028 |
| type |
_34_billingCountry |
USA |
| type |
_34_billingPhone |
626-589-1453 |
| store |
eval(selenium.isChecked('_34_shipToBillingCheckbox')) |
sameAsBillingChecked |
| gotoIf |
!${sameAsBillingChecked} |
SameAsBillingNotChecked |
| clickAt |
_34_shipToBillingCheckbox |
|
| label |
SameAsBillingNotChecked |
|
| type |
_34_shippingStreet |
1234 Sesame Street |
| type |
_34_shippingCity |
Gotham City |
| select |
_34_shippingStateSel |
label=California |
| type |
_34_shippingZip |
|
| type |
_34_shippingCountry |
USA |
| type |
_34_shippingPhone |
626-589-1453 |
| select |
_34_ccType |
label=Visa |
| type |
_34_ccNumber |
4111111111111111 |
| select |
_34_ccExpYear |
label=2011 |
| type |
_34_comments |
Please take care of my order. |
| clickAtAndWait |
//input[@value='Continue'] |
|
| assertTextPresent |
You have entered invalid data. Please try again. |
|
| assertTextPresent |
Please enter a valid zip. |
|