Micro Focus QTP (UFT) Forums

Full Version: Math in object properties
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have a dynamically created object and I want to identify it by using the "Y" property of the object. The "Y" value changes, but it is always less than or equal to 77. So, in the object property "Y" I want to use something like "<=77", but I can't get it to work. I can't find the correct Regular Expression to use this either. Unfortunately this is the only property that is unique enough to work with. Does anyone know the best way to get this to work? Thanks in advance.
Code:
set desc=description.create
desc("micclass").value="ClassNameOfYourObject"

set childs=b().p().childobjects(desc)
if childs(0).getroproperty("Y")<0 then b().p().childs(0).click