Ask a Question

How to click using a FlexObject

SOLVED
fbordalo
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 REPLY 1
LinoTadros
Community Hero

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

cancel
Showing results for 
Search instead for 
Did you mean: