Contributed by: akira on 2014年12月8日(月) 10:37 JST
Last modified on
selemium builder
seleniumのJSON記述 こんな感じ
xxxx.json
{
"type": "script",
"seleniumVersion": "2",
"formatVersion": 2,
"steps": [
{
"type": "get",
"url": "https://www.abc.com/admin/Login[*1] "
},
{
"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[*2] "
},
{
"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[*3] "
},
{
"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[*4] "
},
{
"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[*5] "
},
{
"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[*6] "
},
{
"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[*7] "
},
{
"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[*8] "
},
{
"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[*9] "
},
{
"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[*10] "
},
{
"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[*11] "
},
{
"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[*12] "
},
{
"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[*13] "
},
{
"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
}