Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mtk-f/4e8c31306171460b9e61021933b026cb to your computer and use it in GitHub Desktop.
Save mtk-f/4e8c31306171460b9e61021933b026cb to your computer and use it in GitHub Desktop.
ヤフオク!のブラックリストに ID をまとめて登録する Selenium IDE スクリプト
{
"id": "a20c7a5a-4a22-4f7d-b84a-d419c8e4a27b",
"version": "2.0",
"name": "yahoo auction blacklist addition",
"url": "https://auctions.yahoo.co.jp",
"tests": [{
"id": "e260d3b4-af49-4154-b75b-a452eca761b6",
"name": "配列で一括登録",
"commands": [{
"id": "021a10f6-7e8c-4bf2-bb25-bf8faa8918ab",
"comment": "",
"command": "executeScript",
"target": "return [\"一人目のID\", \"二人目のID\", \"三人目のID\"]",
"targets": [],
"value": "targets"
}, {
"id": "a452ee9c-2708-4705-83f5-76272f10d7ad",
"comment": "",
"command": "forEach",
"target": "targets",
"targets": [],
"value": "target"
}, {
"id": "89231777-82df-4a2a-81be-2bcc7ecc74f8",
"comment": "",
"command": "open",
"target": "/jp/show/prefs_blacklist",
"targets": [],
"value": ""
}, {
"id": "d4d3dde7-3ae3-456f-894c-86fdbd252ac0",
"comment": "",
"command": "type",
"target": "name=mib",
"targets": [
["name=mib", "name"],
["css=td:nth-child(3) > input", "css:finder"],
["xpath=//input[@name='mib']", "xpath:attributes"],
["xpath=//td[3]/input", "xpath:position"]
],
"value": "${target}"
}, {
"id": "4219660f-402a-4bdf-a784-4d6df13c3b8a",
"comment": "",
"command": "click",
"target": "css=td:nth-child(4) > input",
"targets": [
["css=td:nth-child(4) > input", "css:finder"],
["xpath=//input[@value='ブラックリストに登録']", "xpath:attributes"],
["xpath=//td[4]/input", "xpath:position"]
],
"value": ""
}, {
"id": "470c28db-dfa1-4311-a5be-0c843f1a2142",
"comment": "",
"command": "waitForElementNotPresent",
"target": "css=td:nth-child(4) > input",
"targets": [],
"value": "30000"
}, {
"id": "29574d3c-6fab-408e-8aac-5a0ae966266c",
"comment": "",
"command": "end",
"target": "",
"targets": [],
"value": ""
}]
}],
"suites": [{
"id": "f177d4aa-d272-4df4-9610-d664d44f9f88",
"name": "Default Suite",
"persistSession": false,
"parallel": false,
"timeout": 300,
"tests": []
}],
"urls": ["https://auctions.yahoo.co.jp/"],
"plugins": []
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment