In that case could you use a css selector that locates all of the elements 
in the dropdown?  Then instead of using the Select module you would have 
your test first click the dropdown box to expand the options and then do a 
click on the option you want.  

So if $("css-selector") find 4 dropdown options, you would use 
$("css-selector")[2] to select the 3rd index (zero-based numbering).

On Thursday, October 10, 2019 at 11:49:41 AM UTC-5, Ben Frey wrote:
>
> The selects I'm working with have the value equal to the text, so that's 
> not the case for them.
>
> On Thursday, October 10, 2019 at 11:42:14 AM UTC-5, jc wrote:
>>
>> https://gebish.org/manual/current/#select
>>
>> You can select by value which is essentially index.
>>
>> On Thursday, October 10, 2019 at 11:30:11 AM UTC-5, Ben Frey wrote:
>>>
>>> Is there a way to select a drop-down value by its index? For a 
>>> particular web site flow I don't really care which value I select for some 
>>> drop-downs, and since they're tax-related, I'd rather not have to change 
>>> the test if e.g. the IRS changes the tax brackets.
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups "Geb 
User Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/geb-user/f369d36f-fdc9-4e8e-968d-bcbacf88c5ec%40googlegroups.com.

Reply via email to