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

allow hidden (display:none) fields to be filled with field widgets #71

Open
samccone opened this issue Sep 10, 2013 · 6 comments
Open

Comments

@samccone
Copy link
Contributor

No description provided.

@david
Copy link
Member

david commented Sep 10, 2013

This is already possible by using something like

root 'selector', visible: false

however, I'm not sure if you want to do this. If a user can't see the field to fill it in, you shouldn't probably fill it in in the tests. I'd advise doing whatever the user needs to do to fill in the field instead.

@david david closed this as completed Sep 10, 2013
@samccone
Copy link
Contributor Author

well this is for a wysiwyg field where it is set to content editiable and then it pipes the content into a textfield, the text field acts as a hidden backing element. And since there is no way to edit a contenteditable div this is how i must do it.

@david
Copy link
Member

david commented Sep 10, 2013

Did you try editing the capybara node directly using node.set <content> ?

@samccone
Copy link
Contributor Author

yes, that is exactly how i ended up doing it, just a touch ugly

@david
Copy link
Member

david commented Sep 10, 2013

I'll see if I can come up with something nicer.

@david david reopened this Sep 10, 2013
@samccone
Copy link
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants