web UI自动化 当我想实现当某元素等于什么时,循环执行某些操作,请问要怎么填写相关信息?

提问 20 216
lailai
lailai LV5 3月29日 09:58 发表
<p>如下图,我想实现某元素等于【陈先生】时,执行删除操作,操作数据那边要怎么填写?</p><p><img src="http://talk-cdn.liumatest.cn/d035414a-d853-44c7-8fd5-31f2f6d4c157.png" style="max-width:100%;"><br></p>
收藏(0)  分享
相关标签: 提问
注意:本文归作者所有,未经作者允许,不得转载
20个回复
  • Chras-fu
    3月29日 11:47
    循环前先获取元素的文本属性,保存为变量名如username。然后while循环target字段填{{username}}进行判断,超时时间最好设置下。 然后在循环里不断去获取新的元素文本属性覆盖username变量即可,直到获取为陈先生
    0 4
  • lailai
    lailai LV5 (楼主)
    3月29日 14:18
    写了一个自动化函数,但是没有成功 img[http://talk-cdn.liumatest.cn/36f34314-aff6-4051-bb61-8403557dc9c4.jpeg] img[http://talk-cdn.liumatest.cn/941bf058-7d88-42dc-be21-0760b058c4e1.jpeg] img[http://talk-cdn.liumatest.cn/468bb325-c20b-4f99-8483-658d13c8e1cd.jpeg] img[http://talk-cdn.liumatest.cn/de1c4995-4ffb-4e9d-b081-50d86854b21c.jpeg]
    0 2
  • lailai
    lailai LV5 (楼主)
    3月29日 15:05
    一直提示参数要为字符串,不知道哪里有问题,麻烦大佬看看 img[http://talk-cdn.liumatest.cn/f641f2be-9a89-421c-a90a-ac614b396c70.jpeg] img[http://talk-cdn.liumatest.cn/efe50428-6f0a-475a-b2ea-b87e17dd03cc.jpeg]
    0 6
  • lailai
    lailai LV5 (楼主)
    3月29日 16:59
    img[http://talk-cdn.liumatest.cn/54f50410-b603-4dca-90f8-a5329cc348aa.jpeg] img[http://talk-cdn.liumatest.cn/fc02b877-0fe0-4e71-ab72-8f198cc0863a.jpeg]
    0 2
  • lailai
    lailai LV5 (楼主)
    3月29日 17:23
    最终代码如下: img[http://talk-cdn.liumatest.cn/3af328b8-a5af-4200-97b2-d0458fbebf99.png]
    0 2