Hi Kowsaliya,
Suppose u can validate the next page webelement,You have
to write the code By using Descriptive Programming.
Set
iBrowser=Browser("micclass:=Browser","CreationTime:=1").Page("micclass:=Page")
Set sObj=Description.Create()
sObj("micclass").Value="Link"
sObj("html tag").Value="A"
Set sLink=iBrowser.ChildObjects(sObj)
sCount=sLink.Count()
For i=0 to sCount-1
sName=sLink(i).GetRoProperty("innertext")
If sName=slkName'Which u want to click
sLink(i).Click
Exit For
End If
Next
sWebEleName="Welcome to Gmail"
If iBrowser.WebElement("innertext:="&sWebEleName,"html tag:=SPAN").Exist(5)
Then
Reporter.ReportEvent micPass, "Webelement Exist.", "Pass"
Else
Reporter.ReportEvent micFail, "Webelement Exist.", "Fail"
End If
On Fri, Nov 21, 2008 at 6:43 PM, kowsaliya rani <[EMAIL PROTECTED]>wrote:
> Hi all,
>
> I am working with a scenario, where when I click a link a
> corresponding webpage should open...
> I have framed the script as given belo
> Browser( " ").Page(" ").Link("CFT").Click
> a=Browser(" ").Page(" ").Link("CFT").GetROProperty("href")
> msgbox a
>
> here the issue is instead of linkl I am getting a
> message":javascript_dopostback()"
>
>
> Is it a issue with an appln or any add in problem.
>
>
> kindly help me in this issue..
>
>
>
> Regards,
> Kowsaliya
>
>
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---