08-14-2009, 12:47 PM
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 help...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.
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 help...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.
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.