zoukankan      html  css  js  c++  java
  • rf增加产品的例子

    Open Browser http://xxx.xxx.xxx.xxx:1000/portal/login/init.htm gc
    Maximize Browser Window
    sleep 2
    #Get Window Size 300 500
    Input Text id=_userName admin@mall
    Input Text id=_password 123456
    Click Button css=input.login_iptBut
    sleep 2
    Click Element xpath=//li[@id='10000050']//div/div
    sleep 2
    Click Element xpath=/html/body/div/div/div[2]/ul/li[7]/ul/li[2]/div/span
    sleep 2
    Select Frame id=business_goods_init_htm
    sleep 2
    Click Element xpath=.//*[@id='toptoolbar']/div[6]/span
    Unselect Frame
    Select Frame id=business_goods_add_htm_op_add_id
    ${goods_name} Get time
    Input Text id=goodsName ${goods_name}
    Input Text id=goodsUnit 个
    ${number} Evaluate random.randint(11111111,99999999)
    sleep 2
    Input Text id=goodsBarcode ${number}
    Input Text id=goodsAdvert 新一代开关控制,遥控器控制
    Input Text id=goodsCode ${number}
    Execute Javascript document.getElementById('shelversDate').setAttribute('value','2016-10-07 00:00')
    Execute Javascript document.getElementById('undershelversDate').setAttribute('value','2017-10-07 00:00')
    sleep 2
    Click Element id=minPrice
    sleep 1
    Input Text id=minPrice 888
    Click Element id=maxPrice
    Input Text id=maxPrice 1299
    Click Element id=memberPrice
    Input Text id=memberPrice 888
    click Element id=marketPrice
    Input Text id=marketPrice 888
    click Element id=sellPrice
    Input Text id=sellPrice 999
    Input Text id=goodsNative 广州
    Input Text id=goodsWeightVolume 5.5
    Click Element id=isWeightVolume_1
    Input Text id=limitNumber 3
    Click Element id=goodsInventory
    Input Text id=goodsInventory 555
    Select From List By Label id=goodstype_select_0 百货
    sleep 1
    Select From List By Label id=goodstype_select_1 灯具
    sleep 1
    Select From List By Label id=goodstype_select_2 台灯
    sleep 1
    Select From List By Label id=goodsBrandId 飞利浦
    Evaluate os.system('D:\cailiao.skl ') os
    Assign ID to Element css=iframe.ke-edit-iframe ke-edit-iframe
    Select Frame id=ke-edit-iframe
    ${js} set variable (document.getElementsByClassName('ke-content')[0]).innerText="XXXXXXXXXXXXX";
    Execute Javascript ${js}
    ${js} set variable "KE.text('ke-edit-iframe','<b>123</b>')"
    Execute Javascript ${js}
    Comment focus id=goodsPicUploadBut
    Comment sleep 2
    Comment focus id=goodsUnit

  • 相关阅读:
    latex 简单应用
    激光相机数据融合(6)--激光相机标定
    激光相机数据融合(5)--Gazebo仿真数据融合
    激光相机数据融合(4)--KITTI数据集中matlab接口说明及扩展
    激光相机数据融合(3)--KITTI数据集
    激光相机数据融合(2)--激光及相机位置投影关系
    激光相机数据融合(1)--前言
    Linux查找命令总结:find、locate、whereis、which、type
    Linux netstat命令详解
    超级好用的浏览器API测试插件-浏览器版的postman
  • 原文地址:https://www.cnblogs.com/51testing/p/7066538.html
Copyright © 2011-2022 走看看