Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Dynamic Link which opens in new window Help
#1
Not Solved Question 
Hi,

I want to automate clicking on a dynamic link(Comments) which opens a new browser window...For some reason even though QTP recognizes the object, it doesn't open the comments in a new window

Here's the code:
Code:
' Create description for all Links on a Web page.
' For that we use "html tag" property and its value "A"
Set descLink = Description.Create
descLink("html tag").value = "A"
descLink("text").value= "0 Comments"

' Get all Links which match the above description
Set listLinks = Browser("abcd").Page("abcd").ChildObjects(descLink)

While (listLinks.Count =0)
wait(3)

Browser("abcd").Refresh
Wend
If (listLinks.Count =1) Then
wait(4)


If (listLinks(0).exist) Then



listLinks(0).Click

End If
End If
Reply


Messages In This Thread
Dynamic Link which opens in new window Help - by starscream - 08-07-2011, 06:31 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Object doesn't support this property or method: 'window(...).window(...).winobject' senthil5683 1 3,503 07-04-2016, 07:08 PM
Last Post: venkatesh9032
  How to click on a dynamic link on a website Geekgirl 3 4,243 11-28-2013, 11:53 AM
Last Post: Jay
  Dynamic variable in link call rdix007 1 2,675 03-28-2013, 07:02 AM
Last Post: basanth27
  To Delete Dynamic Link Present in a WebTable sheikadil15 0 2,319 04-16-2011, 12:54 PM
Last Post: sheikadil15
  Link to a file in the test result window tennessee 0 1,913 01-24-2011, 07:31 PM
Last Post: tennessee

Forum Jump:


Users browsing this thread: 1 Guest(s)