Name:
Element Attribute Should Be
Source:
XML <test library>
Arguments:
[ source | name | expected | xpath=. | message=None ]
Verifies that the specified attribute is `expected`.
The element whose attribute is verified is specified using `source` and `xpath`. They have exactly the same semantics as with `Get Element` keyword.
The keyword passes if the attribute `name` of the element is equal to the `expected` value, and otherwise it fails. The default error message can be overridden with the `message` argument.
To test that the element does not have a certain attribute, Python `None` (i.e. variable `${NONE}`) can be used as the `expected` value. A cleaner alternative is using `Element Should Not Have Attribute`.

【RF库XML测试】Element Attribute Should Be

【RF库XML测试】Element Attribute Should Be

 

相关文章:

  • 2021-09-15
  • 2021-07-16
  • 2021-06-02
  • 2021-12-07
  • 2021-12-10
  • 2022-02-13
  • 2021-12-02
猜你喜欢
  • 2021-10-16
  • 2022-02-12
  • 2021-11-02
  • 2021-07-15
  • 2021-09-08
  • 2021-09-05
  • 2021-06-26
相关资源
相似解决方案