You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please add a method for setting the value of an input element that doesn't have a name attribute.
I'm trying to set the value of the input element whose id is autocomplete2 on https://www.reservecalifornia.com/CaliforniaWebHome/Facilities/AdvanceSearch.aspx. The element doesn't have a name attribute, so Form::set_by_name doesn't seem to work. Client::find can find the element, but Element doesn't appear to have a method for setting its value.
The text was updated successfully, but these errors were encountered:
Ah, yes you're right. There should probably be a set method that takes a Locator. Adding this should probably be pretty straightforward. You should be able to copy/paste set_by_name, and make it take a Locator instead (the first two lines would then go away). You could then change set_by_name to call set. Think you could submit a PR?
kraai
added a commit
to kraai/fantoccini
that referenced
this issue
Jun 18, 2018
Please add a method for setting the value of an
input
element that doesn't have aname
attribute.I'm trying to set the value of the
input
element whoseid
isautocomplete2
on https://www.reservecalifornia.com/CaliforniaWebHome/Facilities/AdvanceSearch.aspx. The element doesn't have aname
attribute, soForm::set_by_name
doesn't seem to work.Client::find
can find the element, butElement
doesn't appear to have a method for setting its value.The text was updated successfully, but these errors were encountered: