page-object
page-object copied to clipboard
page_populator does not work when element name match element type(text)
So I run in to the problem, maybe naming is bad, but it's not the point. page.rb
text_field(:text, css: 'section > form > div > div.input-fields > div:nth-child(2) > div > input[type="text"]')
when I try to populate page:
populate_page_with(text: 'text')
->
*** ArgumentError Exception: wrong number of arguments (given 0, expected 1)
problem in:
def is_radiobutton?(key)
respond_to?("select_#{key}".to_sym)
end
as select_text - exist in watir
Maybe it's time to change all validators to :
self.send("#{key}_element").element.class
as they all watir elements
fix in #448
@vveliev Let's work on this issue during the Hackathon.