Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Unable to Click on Mutiple Links in Web Table
#4
Solved: 11 Years, 3 Months, 3 Weeks ago
Hi,
When u click the link 1st time a new page is open , due to which reference object u have created is lost.
I implemented the same on google home page.
Below is the code, use it as a refrence.

Code:
SystemUtil.Run "iexplore.exe","www.google.co.in"
Set desc=Description.Create()
desc("micclass").Value="Link"
desc("html tag").value="A"
Set obj=Browser("Google").Page("Google").ChildObjects(desc)
MsgBox(obj.Count)
For i=0 to obj.Count-1
    Set odesc=Description.Create()
    odesc("micclass").Value="Link"
    odesc("html tag").value="A"
    Set obj1=Browser("Google").Page("Google").ChildObjects(odesc)
    obj1(i).Click
    'Browser("Google").Page("Google").Link("Search").Click
    Browser("Google").Close
    SystemUtil.Run "iexplore.exe","www.google.co.in"
Next


Regards,
Sankalp
Reply


Messages In This Thread
RE: Unable to Click on Mutiple Links in Web Table - by sshukla12 - 06-12-2012, 03:01 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Can QTP handle slick grid table in a web page qtplearner88 2 4,491 10-01-2019, 10:44 AM
Last Post: shilpi952
  unable to rowcount in web table manoj84monu 1 2,904 06-13-2016, 04:46 PM
Last Post: Anu1234
  How to click on all links dynamically in UFT? Rohan 9 18,466 02-25-2016, 10:42 AM
Last Post: vinod123
  I want to click on all the links in the webtable. These links are nothing but some co abhideshpande001 0 2,653 07-22-2015, 09:36 AM
Last Post: abhideshpande001
  Unable to click on the WebButton with specified Index srach84 2 4,291 03-31-2015, 04:36 AM
Last Post: srach84

Forum Jump:


Users browsing this thread: 2 Guest(s)