AutoIt
Func _selectSide($side)
;$selection=_IEFormElementGetObjByName($oIE,"sc-mkt-switcher-select")
$selection=_IEGetObjByName($oIE,"sc-mkt-switcher-select")
for $i=0 to UBound($selection)-1 step 1
if $selection.options[$i].text=$side then
$selection.options[$i].seleted='selected'
endif
next
;_IEFormElementOptionSelect($selection,$side,1,"byText")
_IELoadWait($oIE)
EndFunc
Alles anzeigen
Ich möchte eine Option in einer Select-Liste über den Namen aktivieren.
Code
<select class="sc-mkt-switcher-select" id="sc-mkt-switcher-select" name="sc-mkt-switcher-select" onchange="javascript:marketplaceChanged( this.value )">
<option value="A1F83G8C2ARO7P">option1</option>
<option value="A1PA6795UKMFR9" selected="selected">option2</option>
<option value="A1RKKUPIHCS9HS">option3</option>
<option value="A13V1IB3VIYZZH">option4</option>
<option value="APJ6JRA9NG5V4">option5</option>
</select>
Oben sind meine bisherigen Versuche. Ich hoffe, es kann mit jemand weiterhelfen
(Leider ist die Selection nicht in einer Form)
Mit freundlichen Grüßen, Kanashius