【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
最新文章
- Object obj=new Object()的内存引用
- C和指针 第十章 结构和联合 (二)
- 高性能javascript(记录一)
- STC12C5A60S2笔记8(串口)
- 【转】linux expr命令参数及用法详解
- Bootstrap页面布局24 - BS旋转木马功能
- 算法导论----VLSI芯片测试; n个手机中过半是好的,找出哪些是好手机
- SQL经典问题 找出连续日期及连续的天数
- synchronized作用范围及用法
- Unity monodev环境搭建
- NSOJ 飞船汇合(经典)
- 三步快速解决dll冲突问题
- Android帧动画笔记
- APICloud ajpush(极光推送) 6009
- python 去掉 pyc
- Linux下FTP虚拟账号环境部署总结
- Python-ccs高级选择器 盒模型
- 剑指offer(1)
- linux下编译GD(freetype+libjpeg+libpng+gd-devel)
- jQuery----选择器(重点是层次选择器)