cuprite icon indicating copy to clipboard operation
cuprite copied to clipboard

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

Open Nakilon opened this issue 3 years ago • 1 comments

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

.native.clear

throws:

NoMethodError (undefined method `clear' for #<Capybara::Cuprite::Node:0x00007f9ed3d46b28>)

Nakilon avatar Sep 21 '21 01:09 Nakilon

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.

route avatar Sep 27 '21 08:09 route