innertext http://msdn.microsoft.com/en-us/library/ms533899%28VS.85%29.aspx

On Mon, Nov 2, 2009 at 4:19 PM, Nimmi <[email protected]> wrote:

> Hi,
>  Am trying to get run time property "outertext" of a web element.
>  Am able to get the outertext.
>  I want to compare it with expected string, say "xyz".
>
> x=
> Browser("").Page("").Frame("").WebTable("").WebElement("").GetROProperty("outertext")
> msgbox x
> If(x="xyz") then
> msgbox "pass"
> else
> msgbox "fail"
> end if
>
> Issue: Even though the expected result and actual result is matching,if
> condition is returning a fail.
>
> I tried string comparison too.
> When I do strcomp(x,"xyz",0) it returns boolean as true(as 1).
> But when i use an if condition loop gives a fail message.
> Am not sure where I am going wrong.
>
> Can you please help?
> Also can you suggest how to use 'checkproperty' for a string after applying
> GetROProperty?
>
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to