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

How am I supposed to clear the <input type='text'>? #164

Open
Nakilon opened this issue Sep 21, 2021 · 1 comment
Open

How am I supposed to clear the <input type='text'>? #164

Nakilon opened this issue Sep 21, 2021 · 1 comment

Comments

@Nakilon
Copy link

Nakilon commented Sep 21, 2021

Since for example this https://stackoverflow.com/a/45323528/322020

.native.clear

throws:

NoMethodError (undefined method `clear' for #<Capybara::Cuprite::Node:0x00007f9ed3d46b28>)
@route
Copy link
Member

route commented Sep 27, 2021

That's for selenium, how about fill_in "field", with: ""? Anyways whenever you call fill_in the input should be cleaned and new value set, that's the default behavior.

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

No branches or pull requests

2 participants