Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to perfrom a same operation on diff. page. ?
#4
Not Solved
I am just guessing, hope your object hierachy is like,

Browser().page().link() ??

If yes, then take the childobjects(links) of the page. Take the childcount of them and then msgbox to see if they are returning the ones you need. The reason is say this is because you can have some other links on that page. You can store all the values of the link in a dictonary object or in a simple array. [ remember this is static, so you may want to handle this from a external sheet]. Compare the name of the link on the page to the one you have stored. Instr and find out if they match and in that loop click on the link. After that in the same loop you can verify the next page occurence of wether the button is enabled or disabled.

Few Tips,

1. Search this forum to find out about childobjects. Several instances are found, discussed.
2. I deliberately wrote it up as a summary for you to read and understand and try to decipher and bring out a code of your own. Dont assume me as a sadistic guy who knows the answer but isint willing to helpShy...thats not the case. What you learn of your own stays till the end.

If you still couldnt come up with a code or you tried and have errors post it out, i am here to help you.
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
Reply


Messages In This Thread
RE: How to perfrom a same operation on diff. page. ? - by basanth27 - 08-14-2009, 12:47 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  The operation failed. An object could not be found. kotaramamohana 1 3,783 08-07-2013, 12:34 PM
Last Post: anil2u
  Need to compare files from two diff folders maktha1 0 2,591 11-05-2011, 07:43 PM
Last Post: maktha1
  How to perfom double click Operation in Firefox using QTP yarley 8 12,887 06-24-2011, 05:13 PM
Last Post: souvikghosh_diatm
  database operation priya999 3 3,601 03-04-2011, 08:29 PM
Last Post: Ankur
  Performing Right Click operation with QTP Nishikanth 2 9,526 10-06-2008, 05:37 PM
Last Post: VENKATAREDDY_M

Forum Jump:


Users browsing this thread: 1 Guest(s)