cancel
Showing results for 
Search instead for 
Did you mean: 

How to click using a FlexObject

SOLVED
Occasional Contributor

How to click using a FlexObject

Hi,

 

I am trying to parse and click on items contained within a flex popup. I am able to find and extract the label string, but I can find a way to click on it.

 

Code is in vsbasic

Function AlarmsFilterPopUpDialogs()

  Dim objectType, objDialog, objFlex
  prop = "ObjectType"
  val = "AlarmFilterDialog"

  Set objDialog = Sys.Browser("firefox").FindChildEx(prop, val, 5, True) 
  Set objFlex = objDialog.FlexObject.AllAlarmTypeCB
  labetText = objFlex.Label
  objFlex.Click

 

End Function

 

Thanks,

Fred

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Leader

Re: How to click using a FlexObject

if it's a button try "ClickButton()" not "Click()" for Flex Objects

If it is not a Button, open the methods tab in the Object Browser and see what Methods are available to allow the clicking on that FlexObject.

 

Cheers

Lino

View solution in original post

1 REPLY 1
Highlighted
Community Leader

Re: How to click using a FlexObject

if it's a button try "ClickButton()" not "Click()" for Flex Objects

If it is not a Button, open the methods tab in the Object Browser and see what Methods are available to allow the clicking on that FlexObject.

 

Cheers

Lino

View solution in original post