{
"name": "Amazon.com: The Path to Power (The Years of Lyndon Johnson, Volume 1) (9780679729457): Robert A. Caro: Books",
"startingURL": "https://www.amazon.com/Path-Power-Years-Lyndon-Johnson/dp/0679729453/ref=sr_1_1?_encoding=UTF8&ref_=nav_ya_signin&",
"actions": [
{
"selectorType": "xpath",
"selector": "//*[@id=\"add-to-cart-button\"]",
"context": [],
"type": "click"
},
{
"selectorType": "xpath",
"selector": "//*[@id=\"hlb-ptc-btn-native\"]",
"context": [],
"type": "click"
},
{
"selectorType": "xpath",
"selector": "//*[@id=\"enterAddressFullName\"]",
"context": [],
"type": "autofill",
"fields" : [
{
"selector": "//*[@id=\"enterAddressFullName\"]",
"context": [],
"expectedAutofillType": "NAME_FULL",
"expectedValue": "Milton C. Waddams"
},
{
"selector": "//*[@id=\"enterAddressAddressLine1\"]",
"context": [],
"expectedAutofillType": "ADDRESS_HOME_LINE1",
"expectedValue": "4120 Freidrich Lane"
},
{
"selector": "//*[@id=\"enterAddressAddressLine2\"]",
"context": [],
"expectedAutofillType": "ADDRESS_HOME_LINE2",
"expectedValue": "Apt 8"
},
{
"selector": "//*[@id=\"enterAddressCity\"]",
"context": [],
"expectedAutofillType": "ADDRESS_HOME_CITY",
"expectedValue": "Austin"
},
{
"selector": "//*[@id=\"enterAddressStateOrRegion\"]",
"context": [],
"expectedAutofillType": "ADDRESS_HOME_STATE",
"expectedValue": "Texas"
},
{
"selector": "//*[@id=\"enterAddressPostalCode\"]",
"context": [],
"expectedAutofillType": "ADDRESS_HOME_ZIP",
"expectedValue": "78744"
},
{
"selector": "//*[@id=\"enterAddressPhoneNumber\"]",
"context": [],
"expectedAutofillType": "PHONE_HOME_CITY_AND_NUMBER",
"expectedValue": "5125551234"
}
]
},
{
"selectorType": "xpath",
"selector": "//input[@type='submit' and @value='Deliver to this address']",
"context": [],
"type": "click"
},
{
"context": [],
"type": "waitFor",
"assertions": [
"return document.querySelector().style.display === 'none';"
]
},
{
"selectorType": "xpath",
"selector": "//*[@id=\"shippingOptionFormId\"]/div[1]/div[2]/div/span[contains(., '')]/span[contains(., '')]/input[@type='submit' and @value='Continue']",
"context": [],
"type": "click"
},
{
"selectorType": "xpath",
"selector": "//*[@id=\"ccName\"]",
"context": [],
"type": "autofill",
"fields" : [
{
"selector": "//*[@id=\"addCreditCardNumber\"]",
"context": [],
"expectedAutofillType": "CREDIT_CARD_NUMBER",
"expectedValue": "9621327911759602"
},
{
"selector": "//*[@id=\"ccName\"]",
"context": [],
"expectedAutofillType": "CREDIT_CARD_NAME_FULL",
"expectedValue": "Milton Waddams"
},
{
"selector": "//*[@id=\"ccMonth\"]",
"context": [],
"expectedAutofillType": "CREDIT_CARD_EXP_MONTH",
"expectedValue": "5"
},
{
"selector": "//*[@id=\"ccYear\"]",
"context": [],
"expectedAutofillType": "CREDIT_CARD_EXP_4_DIGIT_YEAR",
"expectedValue": "2019"
}
]
}
]
}