当同一个关键字在多个库都存在时,使用时需要加上库名以做区分,否则程序会报错

例如:get element attribute关键字,在XML和Selenium2Library库中都有;

1、不加库名,运行

RF中,同一个关键字存在于多个库中

 

运行后:报错,

[ WARN ] Keyword 'Get Element Attribute' found both from a custom test library 'Selenium2Library' and a standard library 'XML'. The custom keyword is used. To select explicitly, and to get rid of this warning, use either 'Selenium2Library.Get Element Attribute' or 'XML.Get Element Attribute'.

RF中,同一个关键字存在于多个库中

2、加上库名

RF中,同一个关键字存在于多个库中

RF中,同一个关键字存在于多个库中

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-27
  • 2022-02-15
  • 2021-11-27
  • 2022-12-23
猜你喜欢
  • 2021-05-31
  • 2021-12-17
  • 2022-12-23
  • 2021-10-15
  • 2022-02-12
  • 2021-08-20
  • 2022-12-23
相关资源
相似解决方案