小编mat*_*ock的帖子

Watir 检查文本存在

我得到它不是 Watir 结合 rspec 找到我的文本。以下代码导致此错误。

  1. 代码:browser.text.include?("Coverberechnung").should == true
  2. 错误 1: expected: true got: false (using ==)
  3. 错误2: Using should from rspec-expectations' old :should syntax without explicitly enabling the syntax is deprecated. Use the new :expect syntax or explicitly enable :should instead. Called from

也许我可以帮忙

该站点的 URL:在此处输入链接描述

ruby rspec watir assertion watir-webdriver

3
推荐指数
1
解决办法
9448
查看次数

标签 统计

assertion ×1

rspec ×1

ruby ×1

watir ×1

watir-webdriver ×1