How to select based on partial text from options available in the dropdown list

WebUI.selectOptionByLabel(findTestObject('SQ/Quote_Info_tab/Product'),'.*[Aa]ir.*',true)
not sure about this, but can work too :
WebUI.selectOptionByLabel(findTestObject('SQ/Quote_Info_tab/Product'),'(?i).*AIR.*',true)

(?i) is for - ignore case
2 Likes