Ben Frey
unread,Aug 28, 2020, 2:23:14 PM8/28/20Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Geb User Mailing List
Is it possible to have a selector that can choose a given element that may have a different ID? For example, the application I'm working on has Yes/No radio buttons. Usually, Yes has an id ending in 90 and No's id ends in 91, but sometimes it's 93 and 94 instead. Rather than doing something like this, is there a way to choose whichever one is there for the No button?
no(required: false) { $('[id$="91"]') }
weirdNo(required: false) { $('[id$="94"]') }