Select keyword for comboBox

Ranorex Spy, Recorder, and Studio.
ravenq
Posts: 1
Joined: Wed Feb 27, 2013 5:13 am

Select keyword for comboBox

Post by ravenq » Wed Feb 27, 2013 5:31 am

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.

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Select keyword for comboBox

Post by Support Team » Fri Mar 01, 2013 2:08 pm

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
.
Image