cancel
Showing results for 
Search instead for 
Did you mean: 

How to click using a FlexObject

SOLVED
Highlighted
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 Hero

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 Hero

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

New Here?
Join us and watch the welcome video:
Announcements
Join TechCorner Challenge!
Want a fun and easy way to learn TestComplete? Try solving weekly TechCorner challenges and get into the Leaderboard!

Challenge Status

Changing options from outside of TestComplete

Participate!

How to execute remote test and obtain results via Test Runner REST API

Participate!

Comparing content of HTML table with Excel file data

Participate!

Compare HTML table with Excel file and correct data in the file

Participate!
Top Kudoed Authors