Since the answer for my last question here we think this could help me to write a test which loops through a range of Elements using RSpec.
But realy I dont see/understand WHY following code is not working in my 'spec'
Given i write in test
source = @driver.page_source
puts source
row = source.find_elements(:xpath => "//a[contains(text(),'Details')]").length
puts row
Then it hits this error
Failure/Error: row = source.find_elements(:xpath => "//a[contains(text(),'Details')]").length
NoMethodError:
undefined method `find_elements' for #<String:0x00000003fcccd8>
that can not be?