zoukankan      html  css  js  c++  java
  • 【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

  • 相关阅读:
    计网 | 文件传输协议
    Java | JDK8 | Integer
    2.项目管理-应用工具
    1.需求管理
    1.短视频运营基础
    10.视频效果---变形稳定器
    9.时间重映射
    8.效果控件之移动&&缩放
    7.标记
    6.子剪辑与合并剪辑
  • 原文地址:https://www.cnblogs.com/apple2016/p/7056739.html
Copyright © 2011-2022 走看看