【RF库XML测试】Get Element
Name:
Get Element
Source:
XML <test library>
Arguments:
[ source | xpath=. ]
Returns an element in the `source` matching the `xpath`.
The `source` can be a path to an XML file, a string containing XML, or an already parsed XML element. The `xpath` specifies which element to find. See the `introduction` for more details about both the possible sources and the supported xpath syntax.
The keyword fails if more, or less, than one element matches the `xpath`. Use `Get Elements` if you want all matching elements to be returned.

Starting test: Test Rf Api.Testxml.Get Element
20170620 22:49:23.114 : INFO : ${second} = <Element 'second' at 0x033E9878>
20170620 22:49:23.114 : INFO : ${child} = <Element 'child' at 0x033E9920>
20170620 22:49:23.114 : INFO : {'id': '2'}
20170620 22:49:23.114 : INFO : 2
20170620 22:49:23.114 : INFO : None
20170620 22:49:23.114 : INFO :
Argument types are:
<type 'NoneType'>
<type 'NoneType'>
20170620 22:49:23.114 : INFO : ${third} = <Element 'third' at 0x033E9B60>
20170620 22:49:23.114 : INFO : {}
20170620 22:49:23.130 : INFO : ${b} = <Element 'b' at 0x033E9DA0>
20170620 22:49:23.130 : INFO : and
20170620 22:49:23.130 : INFO :
Argument types are:
<type 'str'>
<type 'unicode'>
20170620 22:49:23.130 : INFO : ${p} = <Element 'p' at 0x033E9E78>
20170620 22:49:23.130 : INFO :
Text with
20170620 22:49:23.130 : INFO :
Argument types are:
<type 'str'>
<type 'unicode'>
20170620 22:49:23.130 : INFO : ${elem} = <Element 'third' at 0x033E9A28>
20170620 22:49:23.130 : INFO : third
20170620 22:49:23.130 : INFO :
Argument types are:
<type 'str'>
<type 'unicode'>
Ending test: Test Rf Api.Testxml.Get Element
【RF库XML测试】Get Element的更多相关文章
- 【RF库XML测试】Element Attribute Should Be
Name:Element Attribute Should BeSource:XML <test library>Arguments:[ source | name | expected ...
- 【RF库XML测试】Get Element Text
Name:Get Element TextSource:XML <test library>Arguments:[ source | xpath=. | normalize_whitesp ...
- 【RF库XML测试】Add Element
Name:Add ElementSource:XML <test library>Arguments:[ source | element | index=None | xpath=. ] ...
- 【RF库XML测试】Get Elements
Name:Get ElementsSource:XML <test library>Arguments:[ source | xpath ]Returns a list of elemen ...
- 【RF库XML测试】parse xml
Name:Parse XmlSource:XML <test library>Arguments:[ source | keep_clark_notation=False ]Parses ...
- 【RF库XML测试】通过xpath查找元素的说明
Tag names:当仅使用1个tag的时候,xpath匹配具有该标签名称的所有直接子元素. Paths:通过/符号连接tag名称,例如second/child将匹配父元素second下所有的chil ...
- 【RF库XML测试】测试的XML文件说明
文件存放路径:C:\workspace\robotframework\test_rf_api\testdata\XML.xml 文件内容: <example> <first id=& ...
- 【RF库Collections测试】List Should Not Contain Duplicates
Name:List Should Not Contain DuplicatesSource:Collections <test library>Arguments:[ list_ | ms ...
- 【RF库Collections测试】lists should be equal
场景一:msg=None 场景二:自定义msg 场景三:自定义msg和values,且values为布尔类型False或者字符串False和No Values 场景四:自定义msg和values,且v ...
随机推荐
- html5和css3实现的3D滚动特效
今天给大家带来一款html5和css3实现的3D滚动特效.效果图如下: 在线预览 源码下载 实现的代码. html代码: <div class="container"&g ...
- Android Custom View系列《圆形菜单一》
前言 自定义view能够做出很多不同寻常的效果,圆形菜单交互效果不错,目前网上有两个版本,虽然比较庞大,但非常值得研究与学习. radial-menu-widget: https://code.goo ...
- paoding分词
Paoding 详细介绍 庖丁中文分词库是一个使用Java开发的,可结合到Lucene应用中的,为互联网.企业内部网使用的中文搜索引擎分词组件.Paoding填补了国内中文分词方面开源组件的空白,致力 ...
- 如何在Windows 10安装和使用Linux的Bash shell
转载自:百度经验 Windwos 10 的周年更新为开发人员提供一个大的新功能:一个完整的,基于Ubuntu的Bash shell中,可以直接在Windows上运行Linux软件. 这使得“Linux ...
- linux下查看目录下某种文件类型累计的代码行数
find 路径 -name '*.py' | xargs wc -l
- SpringMVC系列(十二)自定义拦截器
Spring MVC也可以使用拦截器对请求进行拦截处理,用户可以自定义拦截器来实现特定的功能,自定义的拦截器必须实现HandlerInterceptor接口– preHandle():这个方法在业务处 ...
- e833. 获得JTabbedPane中的卡片
This example retrieves all the tabs in a tabbed pane: // To create a tabbed pane, see e828 创建JTabbed ...
- SQLException: Column count doesn't match value count at row 1
INSERT INTO table_name(col_name1, col_name2, col_name3) VALUES('value1','value2'); 语句中,前后列数不等造成的 转自: ...
- html固定宽度下拉框内容显示不全问题解决方法
不少时候在页面中为了布局的需要,下拉列表<select>的宽度需要设成比较小的值,这时如果恰巧它包含的选择项<option>的内容比较长,那么超出select宽度的部分将会被截 ...
- ssh命令详解3
SSH 的详细使用方法如下: ssh [-l login_name] [hostname | user@hostname] [command] ssh [-afgknqtvxCPX246] [-c b ...