| || |
problem in identifying the HTMLComboBox
In our application no of HTMLComboBox displayed keeps on changing based on functionality. how to identify whether the combo box exist or not.
HTMLComboBox().Exist = true does not work
it is showing can't attach.
thanks in advance
Re: problem in identifying the HTMLComboBox
1) you want to use HTMLCombobox().Exists ... notice the "s" on the end
2) the .exists function returns a boolean value... including the "= true" is redundant and may introduce confusion.
... most importantly ...
You must include the "tpAttachNoWait" argument inside the brackets... normally if you try to operate on an object that doesn't exist, an error will be thrown.. you have to let TP know it's ok to attempt the function even if the object doesn't exist!
Your form should be:
if HTMLComboBox("caption=foo", TpAttachNoWait).Exists Then ... End If