06-04-2008, 12:33 AM
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:
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:
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?
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?