纸通宝交易版
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

27 lines
1.1 KiB

*** Settings ***
Library RequestsLibrary
Library DateTime
Library urllib3
Library SeleniumLibrary
*** Test Cases ***
login
Automatic withdrawal
#自动提现
Disable Warnings
${headers} Create Dictionary Content-Type=application/x-www-form-urlencoded
${datatime} Get Current Date result_format=%Y-%m-%d
log ${datatime}
Create Session xxl-job http://xxl-job-admin-test.qniao.cn ${headers}
${data} Create Dictionary id=2 executorParam={'datatime':'${datatime}','period':'0'} addressList=
${reps} Post On Session xxl-job xxl-job-admin/jobinfo/trigger data=${data}
#log ${reps.json()}
Automatic-withdrawal(UI)
Open Browser http://xxl-job-admin-test.qniao.cn/xxl-job-admin/ chrome #在浏览器中打开网页
SeleniumLibrary.Input Text //input[@placeholder="请输入登录账号"] admin
sleep 1
SeleniumLibrary.Input Text //input[@placeholder="请输入登录密码"] 123456
Click Button //button[@class='btn btn-primary btn-block btn-flat']
Click Image class='fa fa-circle-o text-yellow'