RSpec: Cant Verify there are more than 5 Btns on Search Result Page
问题 I try to do an Selenium-Acceptancetest 'Search Result List' with RSpec spec And my Issue is It should verify the count of a Button "Detail" I would be happy to get help for start thinking as a coder; i am a manual tester stil. My Problem now is: Method Error Failure/Error: expect(@driver.find_element(:xpath, "//a[contains(text(),'Details')]").to be > 4) NoMethodError: undefined method `to' for #<Selenium::WebDriver::Element:0x00000003fd4938> Sources: On my way to resolve the issue I tried to