Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
vveliev opened this issue Sep 1, 2017 · 3 comments
Open
Labels

Comments

@vveliev
Copy link
Contributor

vveliev commented Sep 1, 2017

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
Copy link
Contributor Author

vveliev commented Sep 1, 2017

Maybe it's time to change all validators to :

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

as they all watir elements

@vveliev
Copy link
Contributor Author

vveliev commented Sep 6, 2017

fix in #448

@cheezy
Copy link
Owner

cheezy commented Sep 22, 2017

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

@jkotests jkotests added the bug label Nov 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants