Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
getting error while trying to check all the links in the webpage ???
#1
Not Solved Sad 
based on search keyword in anysearch site say google ...
trying to retrieve the total number of links present in that webpage and Check all the links in that web page .

i have used the below code for this but getting error saying "expected expression" in line numbers 4,9,10,17,19
Code:
Browser("google").Page("google").WebEdit("what").Set "plumbers"
Browser("google").Page("google").Image("btnG").Click 32,22

   Set oDesc = Description.Create()
[b]  oDesc(”html tag”).Value = "A"[/b]
   Set rc = Browser("google").Page("google").ChildObjects(oDesc)
   lnknum = rc.Count()
For j =0 to lnknum-1
     Set rc = Browser("google").Page("google").ChildObjects(oDesc)
     [b]tag = rc(j).GetROProperty(”innertext”)[/b]
     [b]href = rc(j).GetROProperty(”href”)[/b]
     Browser("google").Page("google").link(""&tag).click
     Browser("google").navigate(href)
      Browser("google").Page(""&tag).Sync
     Browser("google").Back
'check if the navigated page is equivalent to targetted page
  [b]orgPage =Browser("google").GetROProperty(”innertext”)[/b]
  
If tag = orgPage Then
          [b]Reporter.ReportEvent 0, “Navigated To Correct Page”,""&tag 'Reports if correct [/b]
     else
          Reporter.ReportEvent 1,""&tag,""&orgPage
   End If

next



mainly i think line 4 is wrong ...
can anyone pls correct me ...

Thanks
Navya
Reply


Messages In This Thread
getting error while trying to check all the links in the webpage ??? - by navyasatish - 10-08-2008, 12:27 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Check the word and get no. of times that word in the webpage Sandeep.san229 0 1,176 10-31-2018, 06:42 PM
Last Post: Sandeep.san229
  Capture All text from webpage and copy it... mpatra 3 4,902 07-25-2018, 05:33 PM
Last Post: vimlesh
  Reading XML Data from a WebPage shaan.mishra87@gmail.com 1 2,029 09-28-2016, 09:16 PM
Last Post: supputuri
  Using static descriptive programming how to count no. of objects on any webpage alpha1 4 6,714 08-11-2015, 08:48 PM
Last Post: kotaramamohana
  I want to click on all the links in the webtable. These links are nothing but some co abhideshpande001 0 2,566 07-22-2015, 09:36 AM
Last Post: abhideshpande001

Forum Jump:


Users browsing this thread: 1 Guest(s)