Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
inbox link in yahoomail site
#1
Solved: 11 Years, 3 Months, 3 Weeks ago
hi i am using QTP10. while i m running below code(in attachement) i m getting runtime error as cannot identify object of class .Link


please provide me the solution



Attached Files Image(s)
       
Reply
#2
Solved: 11 Years, 3 Months, 3 Weeks ago
You can try using below code.
By taking dynamic links and clicking on it.

Code:
Set odesc=Description.Create()
odesc("micclass").value="link"

Set links=Browser("").Page("").WebTable("").ChildObjects(odesc)

For i=0 to links.count-1
If links(i).Name="inbox" Then
links(i).Click
End If
Next
Reply
#3
Solved: 11 Years, 3 Months, 3 Weeks ago
Hi,

The inbox link contains a dynamic number i.e. the number of unreaded mails. If this is the case then u can use regular expression in OR 4 the same and then try to execute.

Regards,
Sankalp
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  unable to unzip "Software_HP_UFT_11.50_English_T6510-15080" downloaded from HP site Ram2009 0 3,335 03-06-2013, 01:54 PM
Last Post: Ram2009
  ISO file is downloaded as 1 kb from HP Mercury site..can't mount file either.... amipraj1 1 3,934 04-06-2011, 03:12 PM
Last Post: Ankur
  Regarding the Automation of Gmail Inbox manoj12345 6 7,633 08-07-2010, 07:16 PM
Last Post: venkatbatchu
  Unable to open mercury site. tester_rahul 5 10,277 03-09-2010, 04:52 PM
Last Post: Saket
  When I use the Object Spy and take a look at the Mercury Tours web site, I just get: mrhouate 5 4,504 12-13-2009, 10:39 AM
Last Post: mrhouate

Forum Jump:


Users browsing this thread: 1 Guest(s)