Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QTP Scripting
#6
Not Solved
Code:
Function Open( )
   dim IE
   set IE   = CreateObject("InternetExplorer.Application")
   IE.visible = true
    IE.stop
   wait(5)
   IE.navigate "http://www.google.com"
   set Open = IE
   Set IE= nothing
End Function

Dim IEexp
set IEexp = Open()

Dim IEobj, obrowser,opage,links,objlink,linkcount
Set IEobj = open()
Set oBrowser= Description.Create()
oBrowser("micclass").Value = "Browser"
set oPage = Description.Create()
oPage("micclass").Value = "page"

set Links = Description.Create()
Links("micclass").Value = "Link"
set objLinks = Browser( oBrowser).Page( oPage).ChildObjects(Links)
LinkCount = objLinks.Count
msgbox LinkCount

For i = 0 To LinkCount-1
set Links = Description.Create()
Links("micclass").Value = "Link"
set objLinks = Browser( oBrowser).Page( oPage).ChildObjects(Links)
objLinks(i).Click
datatable.SetCurrentRow(i+1)
datatable("Lname",global)=Browser( oBrowser).Page(oPage).GetROProperty("href")
Browser(oBrowser).Back
Next...

It throws an error in Lname...Could u plz guide me how to overcm this..is there anything i need to add in the datatable of Expert view.

How i can start learning scripts in QTP...I feel i can go fm the concepts and then to deeper into it...Provide sm materials.....
Reply


Messages In This Thread
QTP Scripting - by Unleash Rajesh - 05-17-2011, 12:45 PM
RE: QTP Scripting - by supputuri - 05-17-2011, 07:38 PM
RE: QTP Scripting - by Anand - 05-18-2011, 10:35 AM
RE: QTP Scripting - by Unleash Rajesh - 05-19-2011, 10:25 AM
RE: QTP Scripting - by Saket - 05-19-2011, 12:52 PM
RE: QTP Scripting - by Unleash Rajesh - 05-19-2011, 03:36 PM
RE: QTP Scripting - by deepaksporty - 05-19-2011, 07:18 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Objectless Scripting Sruthe 1 1,274 04-06-2018, 05:09 PM
Last Post: Ankur
  need to check Alert messages in scripting setukaran 2 3,146 11-21-2014, 01:16 AM
Last Post: prs2014
  Vb Scripting Tutorial Payal Sharma 3 7,831 05-16-2012, 05:58 PM
Last Post: Ankesh
  Scripting Angel 2 3,164 11-03-2010, 08:17 PM
Last Post: rajeshwar
  QTP scripting preethi4 1 4,683 09-11-2010, 09:08 AM
Last Post: Saket

Forum Jump:


Users browsing this thread: 1 Guest(s)