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

  • 相关阅读:
    让我们一起Go(二)
    通过Html5 Canvas画柱状图
    Node.js爬虫网页请求模块
    Javascript 面向对象编程
    菜单悬浮
    ie6支持的png格式图片的实现方法。
    兼容IE6 的:hover 鼠标经过效果
    VMware Workstation 8/9安装时出现脚本错误
    接上篇,Apache虚拟主机配置
    【Linux笔记】CentOS下找不到eth0设备的解决方法
  • 原文地址:https://www.cnblogs.com/51testing/p/7066538.html
Copyright © 2011-2022 走看看