**基于div进行查找:
command:click;
target:xpath=//div[contains(text(),“003删除”)]/div/i[3]
target:xpath=//div[contains(text(),“003删除”)]
xpath=//div[contains(text(),‘多网点应用’)]
基于span进行查找:
command:click;
target:xpath=//span[contains(.,‘确认’)]
基于input/li查找:
xpath=(//li[@title=‘无工作台’])
xpath=(//input[@placeholder=‘请选择行政区划’])
拖动:
drag and drop to object
target:xpath=//tr[@class=‘next-table-row first’]
value:xpath=//tr[@class=‘next-table-row last’]
判断条件:
1、保存数据:
command:store xpath count
target:xpath=//h1[contains(.,‘浙江省政务服务2.0’)]
value:typeOne
2、判断上面保存的数据
command:if
target:${typeOne} == 1
3、执行操作
command:type
target:xpath=//input[@value=’’]
value: UI测试大厅-只读大厅
4、else
command:else
5、执行操作
command:click
target:xpath=//span[contains(.,‘郭’)]
6、end
command:end**