Having problem with a drop down box.

37 views
Skip to first unread message

Mohammed Habib Latif

unread,
May 10, 2023, 6:07:08 PM5/10/23
to Auto Clicker - AutoFill
I am not a technical person at all. I am trying to automate a form submission as I am awaiting a cancellation before I am able to make a booking.

I have managed to get the rest of the form but a dropdown menu is proving difficult.

//*[@id="select2-embassyId-result-ebua-1d480000-56b2-0050-b1ea-08db25269123"] 


This is what was automatically generated in the box. and the answer is London.

When I inspect this is what code it shows:

<li class="select2-results__option select2-results__option--highlighted" id="select2-embassyId-result-ebua-1d480000-56b2-0050-b1ea-08db25269123" role="option" aria-selected="true" data-select2-id="select2-embassyId-result-ebua-1d480000-56b2-0050-b1ea-08db25269123">London </li>

and the Xpath if it useful:

//*[@id="select2-embassyId-result-ebua-1d480000-56b2-0050-b1ea-08db25269123"]


Any help will be much appreciated.

Dhruv TechApps

unread,
May 11, 2023, 1:27:38 AM5/11/23
to Mohammed Habib Latif, Auto Clicker - AutoFill
Its not actual dropdown. You need to have two action one to click on dropdown to open the dropdown and second action with the xpath you shared,to select the value
-----------------------------------------------------------------------------------------------


Thanks and Regards,
Dhruv Techapps




--
You received this message because you are subscribed to the Google Groups "Auto Clicker - AutoFill" group.
To unsubscribe from this group and stop receiving emails from it, send an email to auto-clicker-aut...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/auto-clicker-autofill/67aab080-22f8-442b-b75f-9fe79d4f0786n%40googlegroups.com.

Mohammed Habib Latif

unread,
May 11, 2023, 3:02:39 AM5/11/23
to Dhruv TechApps, Auto Clicker - AutoFill
I tried that too but when I entered the value as London it still failed.

Dhruv TechApps

unread,
May 11, 2023, 5:24:43 AM5/11/23
to Mohammed Habib Latif, Auto Clicker - AutoFill
You shouldn’t add value itnay be blank

Sent from my iPhone

On 11-May-2023, at 12:32 PM, Mohammed Habib Latif <mhbla...@gmail.com> wrote:



Reza Beirami

unread,
May 13, 2023, 4:17:39 AM5/13/23
to Mohammed Habib Latif, Auto Clicker - AutoFill
I think you should use the value in value attribute in option tag

--
Reply all
Reply to author
Forward
0 new messages