在这里积累学习中的点点滴滴!

RFS 下拉列表默认值检查以及选择

上一篇 / 下一篇  2018-03-20 11:18:02 / 个人分类:RFS+S2

WEB中的下拉框比较常见,以下是对下拉框的初步尝试操作:51Testing软件测试网4{h;luM
1、进入新增页面,点击新增按钮,检查页面下拉框的默认选项为【女】51Testing软件测试网7]t:|&Q${Uy4itu
2、输入姓名、年龄、电话
'dfc%[\03、下拉框选择课程信息51Testing软件测试网E7t?:Qo`rX
51Testing软件测试网1g njb3W.JPUEX#m^
 [Arguments]    ${name}    ${age}    ${phone}51Testing软件测试网/WqpV{dpk
    click element    xpath=.//li[@id='SignUp']    #点击学员报名菜单
!M3s&F`7w~c v'AZ0    click element    xpath=.//a[@class='tt_btn tt_right']    #点击新增按钮51Testing软件测试网nK.hzx@S.@)w
    Page Should Contain Element    xpath=.//select[@id='Gender']    #进入新增页面
6{y-Lb)me r.R/C0    List Selection Should Be    xpath=.//select[@id='Gender']    女    #检查默认性别为女
7eN"g5p$`A~0    input text    xpath=.//*[@id='RegistrationName']    ${name}    #输入姓名信息51Testing软件测试网%Y-D2?9m$xj
    input text    xpath=.//*[@id='Age']    ${age}    #输入年龄信息
I^o#\ F%d0    input text    xpath=.//*[@id='RegistrationPhone']    ${phone}  
8m `\A`Km)\0    List Selection Should Be    xpath=.//select[@id='PeriodId']    请选择51Testing软件测试网b R%V;CT1t
    Select From List by index    xpath=.//select[@id='PeriodId']    1    #选择课程
g,^#K8k ^Ko0    sleep    1
h@&oB.Nw&Z u q0    click button    xpath=.//*[@type='submit']
UDyh%Gl q+t0    Page Should Contain Element    xpath=.//a[@class='tt_btn tt_right']

TAG:

 

评分:0

我来说两句

Open Toolbar