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

最新文章

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

热门文章

  1. android尺子的自定义view——RulerView
  2. android 判断左右滑动,上下滑动的GestureDetector简单手势检测
  3. jquery 实现下拉菜单
  4. Ubuntu Linux系统三种方法添加本地软件库
  5. 完全图解RNN、RNN变体、Seq2Seq、Attention机制
  6. tornado 添加请求头进行允许跨域
  7. 一些基本的操作,编译,构建,单元测试,安装,网站生成和基于Maven部署项目。
  8. java的GUI程序的基本思路是以JFrame为基础
  9. unity3d-----Collider 组件参考
  10. Java NIO案例