![]() |
|
Want a Boolean return for CheckProperty - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners) +--- Thread: Want a Boolean return for CheckProperty (/Thread-Want-a-Boolean-return-for-CheckProperty) |
Want a Boolean return for CheckProperty - jdtester - 06-04-2008 I was hoping to find a way to get a boolean variable when running CheckProperty, but I can't figure out a way to do it. Here's the current line of code: Code: Browser("web page").Page("web page").WebElement("target").CheckProperty "class","desired text"This runs fine, in my run results I get it returning Passed. But what I really want is to have is a boolean variable returned that I can use in later lines of code. So, for example: Code: booleanvariable = Browser("web page").Page("web page").WebElement("target").CheckProperty "class","desired text"Except, of course, that doesn't actually work. Is there another option that would give me the same results, or some formatting I'm missing that would make this work? RE: Want a Boolean return for CheckProperty - FredMan - 06-04-2008 Lookup the Reporter.ReportEvent method in the QTP help files. |