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.