2025年 4月5日(土) 05:54 JST

selemium builder

  • 2014年12月8日(月) 10:37 JST
  • 投稿者:
  • 表示回数 125
selemium builder
seleniumのJSON記述 こんな感じ
xxxx.json

{
"type": "script",
"seleniumVersion": "2",
"formatVersion": 2,
"steps": [
{
"type": "get",
"url": "https://www.abc.com/admin/Login"
},
{
"type": "setElementText",
"locator": {
"type": "id",
"value": "LoginUsername"
},
"text": "yyyyyyyy"
},
{
"type": "clickElement",
"locator": {
"type": "id",
"value": "LoginPassword"
}
},
{
"type": "setElementText",
"locator": {
"type": "id",
"value": "LoginPassword"
},
"text": "xxxxxxxx"
},
{
"type": "clickElement",
"locator": {
"type": "css selector",
"value": "input[type=\"submit\"]"
}
},
{
"type": "clickElement",
"locator": {
"type": "link text",
"value": "ユーザー所持クーポン"
}
},
{
"type": "setElementText",
"locator": {
"type": "id",
"value": "TrnUserCouponMaUsercd"
},
"text": "75"
},
{
"type": "clickElement",
"locator": {
"type": "css selector",
"value": "input[type=\"submit\"]"
}
},
{
"type": "get",
"url": "https://t-gtapi.skylark-app.com/admin...s/edit/890"
},
{
"type": "setElementText",
"locator": {
"type": "id",
"value": "TrnUserCouponValidity"
},
"text": ""
},
{
"type": "clickElement",
"locator": {
"type": "css selector",
"value": "input[type=\"submit\"]"
}
},
{
"type": "get",
"url": "https://t-gtapi.skylark-app.com/admin...s/edit/892"
},
{
"type": "setElementText",
"locator": {
"type": "id",
"value": "TrnUserCouponValidity"
},
"text": ""
},
{
"type": "clickElement",
"locator": {
"type": "css selector",
"value": "input[type=\"submit\"]"
}
},
{
"type": "get",
"url": "https://t-gtapi.skylark-app.com/admin...s/edit/894"
},
{
"type": "setElementText",
"locator": {
"type": "id",
"value": "TrnUserCouponValidity"
},
"text": ""
},
{
"type": "clickElement",
"locator": {
"type": "css selector",
"value": "input[type=\"submit\"]"
}
},
{
"type": "get",
"url": "https://t-gtapi.skylark-app.com/admin...s/edit/896"
},
{
"type": "setElementText",
"locator": {
"type": "id",
"value": "TrnUserCouponValidity"
},
"text": ""
},
{
"type": "clickElement",
"locator": {
"type": "css selector",
"value": "input[type=\"submit\"]"
}
},
{
"type": "get",
"url": "https://t-gtapi.skylark-app.com/admin...s/edit/898"
},
{
"type": "setElementText",
"locator": {
"type": "id",
"value": "TrnUserCouponValidity"
},
"text": ""
},
{
"type": "clickElement",
"locator": {
"type": "css selector",
"value": "input[type=\"submit\"]"
}
},
{
"type": "get",
"url": "https://t-gtapi.skylark-app.com/admin...s/edit/900"
},
{
"type": "setElementText",
"locator": {
"type": "id",
"value": "TrnUserCouponValidity"
},
"text": ""
},
{
"type": "clickElement",
"locator": {
"type": "css selector",
"value": "input[type=\"submit\"]"
}
},
{
"type": "get",
"url": "https://t-gtapi.skylark-app.com/admin...s/edit/891"
},
{
"type": "setElementText",
"locator": {
"type": "id",
"value": "TrnUserCouponValidity"
},
"text": ""
},
{
"type": "clickElement",
"locator": {
"type": "css selector",
"value": "input[type=\"submit\"]"
}
},
{
"type": "get",
"url": "https://t-gtapi.skylark-app.com/admin...s/edit/893"
},
{
"type": "setElementText",
"locator": {
"type": "id",
"value": "TrnUserCouponValidity"
},
"text": ""
},
{
"type": "clickElement",
"locator": {
"type": "css selector",
"value": "input[type=\"submit\"]"
}
},
{
"type": "get",
"url": "https://t-gtapi.skylark-app.com/admin...s/edit/895"
},
{
"type": "setElementText",
"locator": {
"type": "id",
"value": "TrnUserCouponValidity"
},
"text": ""
},
{
"type": "clickElement",
"locator": {
"type": "css selector",
"value": "input[type=\"submit\"]"
}
},
{
"type": "get",
"url": "https://t-gtapi.skylark-app.com/admin...s/edit/897"
},
{
"type": "setElementText",
"locator": {
"type": "id",
"value": "TrnUserCouponValidity"
},
"text": ""
},
{
"type": "clickElement",
"locator": {
"type": "css selector",
"value": "input[type=\"submit\"]"
}
},
{
"type": "get",
"url": "https://t-gtapi.skylark-app.com/admin...s/edit/899"
},
{
"type": "setElementText",
"locator": {
"type": "id",
"value": "TrnUserCouponValidity"
},
"text": ""
},
{
"type": "clickElement",
"locator": {
"type": "css selector",
"value": "input[type=\"submit\"]"
}
},
{
"type": "get",
"url": "https://t-gtapi.skylark-app.com/admin...s/edit/901"
},
{
"type": "setElementText",
"locator": {
"type": "id",
"value": "TrnUserCouponValidity"
},
"text": ""
},
{
"type": "clickElement",
"locator": {
"type": "css selector",
"value": "input[type=\"submit\"]"
}
}
],
"data": {
"configs": {},
"source": "none"
},
"inputs": [],
"timeoutSeconds": 60
}