Assuming that myselectlist1
is the name of a select list defined in an accessor, you want:
self.myselectlist1_element.options[0].click
Explanation:
myselectlist1_element
is used to get the select list element.options
returns an array of option elements for the select list.[0]
returns the first item of the options arrayclick
clicks the option to select it. There is noselect
defined for options (ie you will get a deprecation warning).