Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to perfrom a same operation on diff. page. ?
#1
Not Solved
HI..
I am using web application. and i hve to perform the same operation on the 15 links. I hve to just check that whether all the buttons are enabled or disabled.? How it is possbile ? I am enclosing my attached doc. IN this page around 10 pages name . Each page has a same operation .?
How we can do it ? Can we use array ?
Plsese send me the script regarding this issue ?


Attached Files Image(s)
   
Reply
#2
Not Solved
What is the type of the object which is holding all those links ?? Are they individual links or they are in a collection of a object ??

If i understand you correct, you have to click on the link which navigates to a page and then you have to check whether a button is enabled or disabled ?
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
#3
Not Solved
yes .. you are right .... all these are individual links ..
Reply
#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
#5
Not Solved
Hi..
thanks for giving me this solutions . But i am a beginner for this QTP. So can u tell me step by step process. so that i can run my script accroing to your answer.
Reply
#6
Not Solved
NjNirmal -
Thanks for your quick Reply. Before i go ahead and give you the code i just want to ask you a question,

1. Did you read my post? If yes,
2. Did you understand what i had written ? If yes,
3. Did you try with the keywords i mentioned ? If yes,
4. Did you find any post similar to the question or the lead i have given ? If yes,
5. Have you tried the code ? If yes,

Report your error messages or whatever you have done so far and Just not me anyone over here will be happy to Help !!

If The Answer for atleast one of the above question is NO then,

1. Please answer the questions one after the other. In other words this is the step-by-step approach.
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


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

Forum Jump:


Users browsing this thread: 1 Guest(s)