ruby on rails - Find and fill in input field by data attribute -
I want to find the elements with the "test" data attribute and fill them in the following:
The button works fine, but the inputs put the following error:
field # & lt; Capebara :: element tag = "input" & gt; (Capebara :: element notfand)
Is there any way to do this in Capibara? Thanks in advance for the help.
fill_in
ID of the element element, or accepts the name label, Therefore, this result may not work with return search method. Try the set
method in your case:
find ("input [data-trial = 'email']"). Set (@ user.email)
Comments
Post a Comment