Page 1 of 1

Select keyword for comboBox

Posted: Wed Feb 27, 2013 5:31 am
by ravenq
Version 3.2.3
Adobe Flash/Flex plugin

Hi I am having an issue with my automation when attempting to select an item from a combo box in a flex application. Below is the keyword that I am using to try and select an option from the combobox in the application. It is currently not selecting anything from the list and not returning an error.
Select Case Trim(ucase(sObjectType)
Case "COMBOBOX"				  
	If oTestObject.Enabled = True Then
	oTestObject.SelectedItemText  = sParam1
	blDone = True
	End If
	If err.number = 0 And blDone = True then
	MicResult = "Done"
	ResultMsg = "ComboBox value set to " & sParam1
	'OutputValue = "An Output Value ABC"
	ElseIf err.number = 0 And blDone = False then
	MicResult = "FAIL"
	ResultMsg = "Unable To Set The Value - It May be Disabled."
	'OutputValue = "An Output Value ABC"
	Else
	If Err.Number = 91 then
	MicResult = "FAILED"
	ResultMsg = "Object was not found"
	Else
	MicResult = "FAILED"
	ResultMsg = Err.Description
	'OutputValue = "An Output Value ABC"
	End If
	End If
Thanks very much for your help in advance.

Re: Select keyword for comboBox

Posted: Fri Mar 01, 2013 2:08 pm
by Support Team
Hi,

In order to analyze this in detail could you please post a Ranorex snapshot file of that combobox?
Is the "oTestObject" element the combobox?
Have you already tried to debug your code?

Regards,
Markus