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的更多相关文章

  1. 【RF库XML测试】Element Attribute Should Be

    Name:Element Attribute Should BeSource:XML <test library>Arguments:[ source | name | expected ...

  2. 【RF库XML测试】Get Element Text

    Name:Get Element TextSource:XML <test library>Arguments:[ source | xpath=. | normalize_whitesp ...

  3. 【RF库XML测试】Add Element

    Name:Add ElementSource:XML <test library>Arguments:[ source | element | index=None | xpath=. ] ...

  4. 【RF库XML测试】Get Elements

    Name:Get ElementsSource:XML <test library>Arguments:[ source | xpath ]Returns a list of elemen ...

  5. 【RF库XML测试】parse xml

    Name:Parse XmlSource:XML <test library>Arguments:[ source | keep_clark_notation=False ]Parses ...

  6. 【RF库XML测试】通过xpath查找元素的说明

    Tag names:当仅使用1个tag的时候,xpath匹配具有该标签名称的所有直接子元素. Paths:通过/符号连接tag名称,例如second/child将匹配父元素second下所有的chil ...

  7. 【RF库XML测试】测试的XML文件说明

    文件存放路径:C:\workspace\robotframework\test_rf_api\testdata\XML.xml 文件内容: <example> <first id=& ...

  8. 【RF库Collections测试】List Should Not Contain Duplicates

    Name:List Should Not Contain DuplicatesSource:Collections <test library>Arguments:[ list_ | ms ...

  9. 【RF库Collections测试】lists should be equal

    场景一:msg=None 场景二:自定义msg 场景三:自定义msg和values,且values为布尔类型False或者字符串False和No Values 场景四:自定义msg和values,且v ...

随机推荐

  1. 关于css定位

    关于定位要弄清一个概念,那就是"文档流" 什到是文档流 说得简单一点 就是 自上而下 从左到右 生成顺序 关于html元素又分为两种 块状元素 内联元素 块状元素:单独占一行 内联 ...

  2. 区分重载(overload),覆盖(Override)和隐藏(hide)

    重载overload,这个概念是大家熟知的.在同一可访问区内被声名的几个具有不同参数列的(参数的类型.个数.顺序不同)同名函数,程序会根据不同的参数列来确定具体调用哪个函数,这种机制就是重载.重载不关 ...

  3. 【转】Android下使用Properties文件保存程序设置

    原文:http://jerrysun.blog.51cto.com/745955/804789 废话不说,直接上代码.    读取.properties文件中的配置:  String strValue ...

  4. FaceAlignment blog

    https://blog.csdn.net/app_12062011/article/category/7574425 https://www.jianshu.com/p/e4b9317a817f

  5. Ogre1.9 源码编译

    我们首先需要下载. 1.cmake http://www.cmake.org/download/ (选择window安装包最方便) 2.Ogre1.9源代码 https://bitbucket.org ...

  6. mysql数据库性能测试报告

    网上有写的好的模板, 直接复链接了: 1. http://blog.csdn.net/mituan1234567/article/details/45247989 2. https://msdn.mi ...

  7. Numpy的array数组和标量之间的运算

    矢量化 数组很重要,因为它使你不用编写循环即可对数据执行批量运算.这通常就叫做矢量化(vectorzation) 数组与数组的运算 数组与标量的算术运算

  8. (实用)Linux下Eclipse安装配置PyDev

    记录备忘. PyDev是Eclipse下支持Python开发的IDE插件,本文介绍安装和配置PyDev插件的过程. 一.安装PyDev插件两种安装方法: 1.在eclipse的Help->Ins ...

  9. ubuntu 14.04 忘记密码怎么办?

    ref: https://jingyan.baidu.com/article/8065f87fe20832233024985a.html

  10. 使用DUPLICATE 方式创建ORACLE 11G DG备库环境

    我的最佳实践 ① 手动创建好初始化参数文件: *.audit_file_dest='E:\APP\XJXU\ADMIN\ORASTAND\ADUMP'*.control_files='E:\APP\X ...