The following script will extend the VIP status by filling up to the maximum number of weeks.
{
"id": "cf0cd635-7b96-4a36-b044-97b7489c225a",
"version": "2.0",
"name": "MAM Spend Bonus",
"url": "https://www.myanonamouse.net",
"tests": [{
"id": "01add63d-5230-4e52-ac6c-b5ab486fac17",
"name": "Spend Bonus",
"commands": [{
"id": "a875756a-ce37-47c5-acfe-3558eba1de66",
"comment": "",
"command": "open",
"target": "/login.php",
"targets": [],
"value": ""
}, {
"id": "23be16ba-30d0-463a-bb32-dc801efb53ff",
"comment": "",
"command": "setWindowSize",
"target": "800x600",
"targets": [],
"value": ""
}, {
"id": "6773da0f-17df-46d5-9210-ed20ef56b39a",
"comment": "",
"command": "waitForElementEditable",
"target": "name=email",
"targets": [],
"value": "30000"
}, {
"id": "d3efbdf9-eddd-474e-92bb-6c8f0fa68681",
"comment": "",
"command": "type",
"target": "name=email",
"targets": [
["name=email", "name"],
["css=tr:nth-child(1) > .row1 > input", "css:finder"],
["xpath=//input[@name='email']", "xpath:attributes"],
["xpath=//div[@id='mainBody']/form/div/div[2]/div/table/tbody/tr/td[2]/input", "xpath:idRelative"],
["xpath=//td[2]/input", "xpath:position"]
],
"value": ""
}, {
"id": "cedc9867-0ef9-4cd3-ad2d-b9d498b86325",
"comment": "",
"command": "waitForElementEditable",
"target": "name=password",
"targets": [],
"value": "30000"
}, {
"id": "1a67e6fa-739b-473c-bb96-8da1fe17c3be",
"comment": "",
"command": "type",
"target": "name=password",
"targets": [
["name=password", "name"],
["css=tr:nth-child(2) input", "css:finder"],
["xpath=//input[@name='password']", "xpath:attributes"],
["xpath=//div[@id='mainBody']/form/div/div[2]/div/table/tbody/tr[2]/td[2]/input", "xpath:idRelative"],
["xpath=//tr[2]/td[2]/input", "xpath:position"]
],
"value": ""
}, {
"id": "c2235a4f-7995-4975-80b9-da26e0340644",
"comment": "",
"command": "click",
"target": "css=input[type = 'submit']",
"targets": [
["css=.btn", "css:finder"],
["xpath=//input[@value='Log in!']", "xpath:attributes"],
["xpath=//div[@id='mainBody']/form/div/div[2]/div/table/tbody/tr[4]/td/input", "xpath:idRelative"],
["xpath=//tr[4]/td/input", "xpath:position"]
],
"value": ""
}, {
"id": "b60a0d1f-3535-4aac-bb34-7669046fa1a8",
"comment": "",
"command": "click",
"target": "id=tmBP",
"targets": [
["id=tmBP", "id"],
["linkText=Bonus: 6167", "linkText"],
["css=#tmBP", "css:finder"],
["xpath=//a[contains(text(),'Bonus: 6167')]", "xpath:link"],
["xpath=//a[@id='tmBP']", "xpath:attributes"],
["xpath=//div[@id='userStat']/a[2]", "xpath:idRelative"],
["xpath=//a[contains(@href, '/store.php')]", "xpath:href"],
["xpath=//a[2]", "xpath:position"],
["xpath=//a[contains(.,'Bonus: 6167')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "580adadf-bb65-4aea-882c-f4b9e3450e62",
"comment": "",
"command": "waitForElementVisible",
"target": "id=vipStatus",
"targets": [],
"value": "30000"
}, {
"id": "b4a877bc-764c-4fef-b188-acebe3b47b06",
"comment": "",
"command": "click",
"target": "id=vipStatus",
"targets": [
["linkText=Log Out", "linkText"],
["css=li:nth-child(15) > a", "css:finder"],
["xpath=//a[contains(text(),'Log Out')]", "xpath:link"],
["xpath=//ul[@id='menu']/li[2]/ul/li[15]/a", "xpath:idRelative"],
["xpath=//a[contains(@href, '/logout.php')]", "xpath:href"],
["xpath=//li[15]/a", "xpath:position"],
["xpath=//a[contains(.,'Log Out')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "8fdd4b75-30c1-4943-838c-2b4254625cf2",
"comment": "",
"command": "storeXpathCount",
"target": "xpath=//div[contains(.,'Your VIP expires in 12.9 weeks')]",
"targets": [],
"value": "vip"
}, {
"id": "195faf1f-553a-4d94-a5f6-028e54ca840a",
"comment": "",
"command": "echo",
"target": "${vip}",
"targets": [],
"value": ""
}, {
"id": "7292e672-9e58-4e6e-8488-7ca361aba4b2",
"comment": "",
"command": "if",
"target": "${vip} > 1",
"targets": [],
"value": ""
}, {
"id": "341bca16-3f17-49f2-bdb9-1097889fbadd",
"comment": "",
"command": "executeScript",
"target": "throw new Error('vip');",
"targets": [],
"value": ""
}, {
"id": "bf8debd0-573e-4d95-b22c-63367537e6ec",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "39f88504-c413-45a6-b349-72771bee8400",
"comment": "",
"command": "waitForElementEditable",
"target": "css=.vipStatusContent > button",
"targets": [
["css=.vipStatusContent > button:nth-child(7)", "css:finder"],
["xpath=//button[@value='max']", "xpath:attributes"],
["xpath=//div[@id='mainBody']/div/div[2]/div/div[2]/button[3]", "xpath:idRelative"],
["xpath=//div[2]/button[3]", "xpath:position"],
["xpath=//button[contains(.,'Fill me up!')]", "xpath:innerText"]
],
"value": "30000"
}, {
"id": "c3d32b27-5650-40d4-9764-aa816a00efaf",
"comment": "",
"command": "click",
"target": "css=.vipStatusContent > button",
"targets": [],
"value": ""
}, {
"id": "809a082f-a873-4ac9-8f9d-6a36f7891c8f",
"comment": "",
"command": "waitForElementVisible",
"target": "id=dialog-message",
"targets": [
["id=dialog-message", "id"],
["css=#dialog-message", "css:finder"],
["xpath=//div[@id='dialog-message']", "xpath:attributes"],
["xpath=//body[@id='siteMain']/div[12]/div[2]", "xpath:idRelative"],
["xpath=//div[12]/div[2]", "xpath:position"]
],
"value": "30000"
}, {
"id": "a3e91f22-5298-4e1b-90bc-563a8e817a2f",
"comment": "",
"command": "click",
"target": "xpath=/html/body/div[7]/div[3]/div/button[text() = 'Ok']",
"targets": [],
"value": ""
}, {
"id": "6314a77c-91c9-4aab-b124-b25a524e8408",
"comment": "",
"command": "storeXpathCount",
"target": "xpath=/html/body/div[7]/div[3]/div/button[text() = 'Ok']",
"targets": [],
"value": "popup"
}, {
"id": "5a245fc2-cf16-42e2-b4f9-b2d10c929f29",
"comment": "",
"command": "if",
"target": "${popup} > 0",
"targets": [],
"value": ""
}, {
"id": "ba0b734d-ab4d-43f3-a419-7566b1fdf332",
"comment": "",
"command": "click",
"target": "xpath=/html/body/div[7]/div[3]/div/button[text() = 'Ok']",
"targets": [
["css=.ui-button:nth-child(1)", "css:finder"],
["xpath=(//button[@type='button'])[2]", "xpath:attributes"],
["xpath=//body[@id='siteMain']/div[9]/div[3]/div/button", "xpath:idRelative"],
["xpath=//div[3]/div/button", "xpath:position"],
["xpath=//button[contains(.,'Ok')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "45a2023c-4047-4a49-bf21-866e7c5a178c",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}, {
"id": "3bc7493e-8f53-48c8-aa55-76dac9964fc0",
"comment": "",
"command": "pause",
"target": "250",
"targets": [],
"value": ""
}, {
"id": "3cf5ce74-c95f-42b0-b4f7-c457ab9e3d52",
"comment": "",
"command": "click",
"target": "id=userMenu",
"targets": [
["id=userMenu", "id"],
["css=#userMenu", "css:finder"],
["xpath=//a[@id='userMenu']", "xpath:attributes"],
["xpath=//ul[@id='menu']/li[2]/a", "xpath:idRelative"],
["xpath=//li[2]/a", "xpath:position"],
["xpath=//a[contains(.,'thaxtal ↓')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "2a0fe5cc-af71-4aed-b83f-957a09f8be59",
"comment": "",
"command": "mouseOver",
"target": "linkText=Log Out",
"targets": [],
"value": ""
}, {
"id": "1a0579a7-692e-43f9-affe-dcb47e2a836a",
"comment": "",
"command": "click",
"target": "linkText=Log Out",
"targets": [],
"value": ""
}]
}],
"suites": [{
"id": "14531534-2822-4642-885d-c4ffdb220d16",
"name": "Default Suite",
"persistSession": false,
"parallel": false,
"timeout": 300,
"tests": ["01add63d-5230-4e52-ac6c-b5ab486fac17"]
}],
"urls": ["https://www.myanonamouse.net/"],
"plugins": []
}
For the contact, copyright, license, warranty and privacy terms for the usage of this website please see the contact, license, privacy, copyright.