Forum Discussion

fbordalo's avatar
fbordalo
Occasional Contributor
6 years ago

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

  • 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

  • LinoTadros's avatar
    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