Robot Framework(web测试_2)_登录模块

说明:

由于Selenium2Library和appium的库内可能存在相同的关键字,所在在使用selenium2的关键字时,前面直接加上相关的库名称

登录模块常用关键字:

  1. Selenium2Library.open browser:打开浏览器
  2. Selenium2Library.input text:输入文本
  3. Selenium2Library.Click Button:点击按钮
  4. Selenium2Library.close browser:关闭浏览器
  5. Selenium2Library.get title:获取页面标题
  6. Selenium2Library.get text:获取元素的文本值

实例:

执行结果:

猜你喜欢

转载自blog.csdn.net/Teamo_mc/article/details/84439193
今日推荐