About

The following script will perform a login on the myanonamouse.net website and then logout in order to ensure that the account will not be parked. The script will have to be modified by loading the script in Selenium IDE and then changing the EMAIL and PASSWORD values to the values of the account that the script will be used with.

Code

login-logout.side
{
  "id": "56c2988e-a256-4fa9-8733-1057adfdf251",
  "version": "2.0",
  "name": "www.myanonamouse.net - login",
  "url": "https://www.myanonamouse.net",
  "tests": [{
    "id": "34ea71c5-0c60-4fbb-82e0-94a09c4c9242",
    "name": "myanonamouse login and logout",
    "commands": [{
      "id": "dd873eb7-7755-4f93-9b79-081e3c424669",
      "comment": "",
      "command": "open",
      "target": "/login.php?returnto=%2F",
      "targets": [],
      "value": ""
    }, {
      "id": "7620aceb-d332-49bd-ae03-ffb74aa44da7",
      "comment": "",
      "command": "setWindowSize",
      "target": "800x600",
      "targets": [],
      "value": ""
    }, {
      "id": "95a27ff0-1047-4434-b9f4-5a1dce8f740f",
      "comment": "",
      "command": "waitForElementEditable",
      "target": "name=email",
      "targets": [],
      "value": "30000"
    }, {
      "id": "47c13826-9aeb-4a9e-adb5-b8f6681f14ed",
      "comment": "",
      "command": "click",
      "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": "a6b465d3-c805-411c-8775-83223fea9415",
      "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": "721eeb53-cf45-4420-b11d-be1ae6f051c8",
      "comment": "",
      "command": "waitForElementEditable",
      "target": "name=password",
      "targets": [],
      "value": "30000"
    }, {
      "id": "791dbf27-54bd-457b-87b0-f3d111270c70",
      "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": "6c0210ba-ae66-4df1-848c-96b714900657",
      "comment": "",
      "command": "click",
      "target": "css=input[type='submit']",
      "targets": [],
      "value": ""
    }, {
      "id": "0f17adea-971a-4278-b025-3a17afc52e39",
      "comment": "",
      "command": "waitForElementVisible",
      "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": "30000"
    }, {
      "id": "7872ef55-1007-4b0b-afaa-499db5eff06e",
      "comment": "",
      "command": "pause",
      "target": "5000",
      "targets": [],
      "value": ""
    }, {
      "id": "541846ca-e8c6-4ff9-bfb3-170c0ec9fb2d",
      "comment": "",
      "command": "runScript",
      "target": "window.scrollTo(0,0)",
      "targets": [],
      "value": ""
    }, {
      "id": "50e3e3aa-ff0c-4535-b1d2-82156efb720b",
      "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": "7dd05874-58ea-4659-a0dd-c42418359cc9",
      "comment": "",
      "command": "mouseOver",
      "target": "linkText=Log Out",
      "targets": [
        ["linkText=Log Out", "linkText"],
        ["css=li:nth-child(16) > a", "css:finder"],
        ["xpath=//a[contains(text(),'Log Out')]", "xpath:link"],
        ["xpath=//ul[@id='menu']/li[2]/ul/li[16]/a", "xpath:idRelative"],
        ["xpath=//a[contains(@href, '/logout.php')]", "xpath:href"],
        ["xpath=//li[16]/a", "xpath:position"],
        ["xpath=//a[contains(.,'Log Out')]", "xpath:innerText"]
      ],
      "value": ""
    }, {
      "id": "188888fe-1971-40fe-862f-57be6efbe6c8",
      "comment": "",
      "command": "click",
      "target": "linkText=Log Out",
      "targets": [
        ["linkText=Log Out", "linkText"],
        ["css=li:nth-child(16) > a", "css:finder"],
        ["xpath=//a[contains(text(),'Log Out')]", "xpath:link"],
        ["xpath=//ul[@id='menu']/li[2]/ul/li[16]/a", "xpath:idRelative"],
        ["xpath=//a[contains(@href, '/logout.php')]", "xpath:href"],
        ["xpath=//li[16]/a", "xpath:position"],
        ["xpath=//a[contains(.,'Log Out')]", "xpath:innerText"]
      ],
      "value": ""
    }]
  }],
  "suites": [{
    "id": "7a944987-0e70-4e5d-85ce-2e7117627a78",
    "name": "Default Suite",
    "persistSession": false,
    "parallel": false,
    "timeout": 300,
    "tests": ["34ea71c5-0c60-4fbb-82e0-94a09c4c9242"]
  }],
  "urls": ["https://www.myanonamouse.net/"],
  "plugins": []
}