My question is what should I click here?
If the dropdown is visible I see this
[image: dropdown_value_code.png]
interact {
moveToElement $('div.Select.is-focused.is-open.is-searchable.Select--single
> div.Select-control > div.Select-multi-value-wrapper > div.Select-input >
input[role="combobox"]')
waitFor(25, 0.5){ click(
$('div.Select.is-focused.is-open.is-searchable.Select--single >
div.Select-control > div.Select-multi-value-wrapper > div.Select-input >
input[role="combobox"]') ) }
}
does not click/select the dropdown element.
On Monday, November 12, 2018 at 3:16:39 PM UTC+1, Leo Silva wrote:
>
> So, after the moveToElement, the click should receive the element you want
> to click on
>
> you can do this even inside a waitFor, like
>
> interact{
> moveToElement
> $('div.Select.is-focused.is-open.is-searchable.Select--single
> > div.Select-control > div.Select-multi-value-wrapper > div.Select-input >
> input[role="combobox"]')
>
> waitFor{ click($('.my-button')) }
>
> }
>
> If the select is built asynchronously, this would probably be necessary,
> if not you can just remove the waitFor and just have the click with the
> button element
>
>
> On Monday, 12 November 2018 15:02:25 UTC+1, [email protected] wrote:
>>
>> I tried the following, it does not give me an error, but does not select
>> any option either:
>>
>> interact {
>> moveToElement
>> $('div.Select.is-focused.is-open.is-searchable.Select--single >
>> div.Select-control > div.Select-multi-value-wrapper > div.Select-input >
>> input[role="combobox"]')
>> click()
>> }
>>
>>
>> Could you please give me a hint?
>>
>>
>> On Monday, November 12, 2018 at 9:55:58 AM UTC+1, Leo Silva wrote:
>>>
>>> You can use interact to do hover over your element
>>>
>>> I am doing something similar here:
>>>
>>> https://github.com/leosilvadev/geb_browserstack_template/blob/master/src/test/groovy/com/github/leosilvadev/geb/modules/awful_valentine/HeaderMenu.groovy#L30
>>>
>>>
>>>
>>> On Monday, 12 November 2018 09:44:57 UTC+1, [email protected] wrote:
>>>>
>>>> hello,
>>>>
>>>> could you please help me to select the values of a react dropdown
>>>> element?
>>>>
>>>>
>>>> dropdown
>>>>
>>>> [image: dropdown.png]
>>>>
>>>> dropdown code
>>>>
>>>>
>>>> [image: dropdown_code.png]
>>>>
>>>> dropdown value code seen only if hovering over it
>>>>
>>>>
>>>> [image: dropdown_value_code.png]
>>>>
>>>> dropdown value code seen only if hovering over it
>>>>
>>>>
>>>> [image: dropdown_value_code_2.png]
>>>>
>>>>
>>>> thank you,
>>>> Roland
>>>>
>>>>
--
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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/geb-user/62342004-2b95-4cbe-a5fb-fada6cdd7c65%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.