Contributions
- 1.5KViews0likes0Comments
Construct a object if I know the object name
Hi, I have the following call: Call Aliases.browser.page.formForm0.radiobutton1YearSubscription.ClickButton whereradiobutton1YearSubscription is a radio button in a form. In the same form i have another 2 radio buttonsradiobutton2YearSubscription3600 andradiobutton3YearSubscription2400 I want to call the click method after a if statment like this: If (y="1y") then BTNy="radiobutton1YearSubscription" elseif (y="2y") then BTNy="radiobutton2YearSubscription3600" elseif (y="3y") then BTNy="radiobutton3YearSubscription2400" End If Call Aliases.browser.page.formForm0.BTNy.ClickButton How can I construct the object knowing the button names? ThanksSolved1.6KViews0likes4CommentsRe: Select item from Combobox - Property Visible = False, VisibleOnScreen = False
The solution is to callCWnd_ShowWindow(1) beforeClickItem(1) and the code looks like: tile.ComboBox.CWnd_ShowWindow(1) 'Makes the Combobox visible -> Visible property = True call tile.ComboBox.ClickItem("Settings") 'Selects the Settings option from the Conbobox594Views0likes0CommentsRe: Select item from Combobox - Property Visible = False, VisibleOnScreen = False
Using the command described, I receive the following message: --------------------------- TestComplete --------------------------- Microsoft VBScript runtime error. Type mismatch: 'tile.Combobox.CComboBox_SelectString' Error location: Unit: "PS2\P1\Script\Unit4" Line: 10 Column: 3. --------------------------- OK ---------------------------625Views0likes1CommentRe: Select item from Combobox - Property Visible = False, VisibleOnScreen = False
If I usetile.Combobox.CComboBox_SelectString(0, "Reports") I receive the following error "Type mismatch: 'tile.Combobox.CComboBox_SelectString'" ; Param1 is defined as Integer and Param2 is defined as Byte. I don't know what Param2 refers to.1.7KViews0likes1CommentRe: Select item from Combobox - Property Visible = False, VisibleOnScreen = False
I'm using Test Complete for desktop and VBScript (scripting language). I can use call tile.Combobox.CComboBox_SelectString(Param1 as Integer, Param2 as Byte) as Integer Can you give me an example how can I use it to select lets say the option "Reports" from the Combobox?1.7KViews0likes3CommentsSelect item from Combobox - Property Visible = False, VisibleOnScreen = False
Hi, I want to test a desktop application written in C++. I want to click on a selected item from a combobox with property Visible = False and VIsibleOnScreen = False. I am using call tile.ComboBox.ClickItem(1) but I receive the message The 'xxx' windowis invisible and thus cannot be activated. Is there a possibility to select a value from the combobox if is set visible = false? Or can I set Visibility = True for the object before clicking the item? Thanks2KViews0likes12Comments