page-object icon indicating copy to clipboard operation
page-object copied to clipboard

page_populator does not work when element name match element type(text)

Open vveliev opened this issue 7 years ago • 3 comments

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

vveliev avatar Sep 01 '17 17:09 vveliev

Maybe it's time to change all validators to :

self.send("#{key}_element").element.class

as they all watir elements

vveliev avatar Sep 01 '17 17:09 vveliev

fix in #448

vveliev avatar Sep 06 '17 21:09 vveliev

@vveliev Let's work on this issue during the Hackathon.

cheezy avatar Sep 22 '17 19:09 cheezy