Currently, I am facing the challenge of selecting an item from a list that is structured using a div
For this task, I am utilizing WebDriver IO ()
<div class="selectize-dropdown demo-default select-class single" style="display: none; width: 196px; top: 40px; left: 0px; visibility: visible;">
<div class="selectize-dropdown-content">
<div data-value="1" data-selectable="" class="option">AUTOMOVIL</div>
<div data-value="2" data-selectable="" class="option">CAMIONETA PASAJ.</div>
<div data-value="9" data-selectable="" class="option">PICKUP SENCILLA</div>
<div data-value="6" data-selectable="" class="option">PICKUP DOBLE CAB</div>
<div data-value="3" data-selectable="" class="option">CAMPERO</div>
<div data-value="7" data-selectable="" class="option">BUS / BUSETA / MICROBUS</div>
<div data-value="8" data-selectable="" class="option">CAMIONETA REPAR</div>
<div data-value="100" data-selectable="" class="option">FURGON / FURGONETA</div>
<div data-value="4" data-selectable="" class="option">MOTOCICLETA</div>
</div>
</div>
In the provided image, I have identified the necessary elements for selection. Element in position 1 requires selection, attribute in position 2 needs to be chosen, and the field in position 3 has to be filled with the selected attribute.
The desired outcome is to be able to choose any automobile option displayed in the code within the Vehicle field.