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
some way to find the input that's associated with a label that matched another selector. In this example, find the input associated with the "A" label, and not the other input (this should also work in cases where the input and the label aren't siblings):
div [][ label [ for "input-1"][ text "A"], label [ for "input-2"][ text "B"], input [ id "input-1"][], input [ id "input-2"][]]
Split from #32 by request.
some way to find the input that's associated with a label that matched another selector. In this example, find the
input
associated with the "A" label, and not the otherinput
(this should also work in cases where the input and the label aren't siblings):Possible low-level API: (See also #51)
(I guess Query.getAttribute would probably have to return
Result _ String
or evenResult _ (Maybe String)
instead ofString
.)Possible high-level API:
Note that the solution should be usable both for the
for
attribute inlabel
elements, and foraria-labelledby
attribute on all elements.The text was updated successfully, but these errors were encountered: