| open |
/web/guest/home/ |
|
| waitForElementPresent |
link=Shopping Test Page |
|
| clickAtAndWait |
link=Shopping Test Page |
|
| clickAtAndWait |
link=Cart |
|
| clickAtAndWait |
//input[@value='Checkout'] |
|
| type |
_34_billingLastName |
|
| 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} |
SameAsBillingChecked |
| clickAt |
_34_shipToBillingCheckbox |
|
| label |
SameAsBillingChecked |
|
| 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 last name. |
|