Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Want a Boolean return for CheckProperty
#1
Solved: 11 Years, 4 Months ago
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?
Reply
#2
Solved: 11 Years, 4 Months ago
Lookup the Reporter.ReportEvent method in the QTP help files.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Click after CheckProperty to a WebElement passed via Function argument fails naruoga 0 1,154 02-28-2019, 11:46 AM
Last Post: naruoga
  Help Waitproperty or Checkproperty with micGreaterThan() Code typhoon23 1 1,986 08-23-2017, 05:02 PM
Last Post: Ankur
  Function return value is not passed during the 3rd iteration premanand1979 0 2,253 10-16-2014, 09:40 PM
Last Post: premanand1979
  getElementByid("myObhectId") return null??? qtptester 3 7,092 02-01-2013, 09:44 AM
Last Post: ravi.gajul
  QTP Test results will return exit codes asrivastava 13 17,016 07-08-2011, 12:57 PM
Last Post: rajpes

Forum Jump:


Users browsing this thread: 1 Guest(s)