07-20-2009, 04:56 PM
Hi mss,
yes we can achive the both things with little modifications in the QTPgrd post.
Modification required is,
1) add one condition loop(if..else..end) with window exist (If window exist close)
2) Make sure that you have captured the url before clicking on the link every time and if window is not displayed i.e else part then compare the current url with prev captured url if both are diff then use (browser("X").back) which will bring you back to the previous page.
Let me know if you need any more information.
yes we can achive the both things with little modifications in the QTPgrd post.
Modification required is,
1) add one condition loop(if..else..end) with window exist (If window exist close)
2) Make sure that you have captured the url before clicking on the link every time and if window is not displayed i.e else part then compare the current url with prev captured url if both are diff then use (browser("X").back) which will bring you back to the previous page.
Let me know if you need any more information.
Thanks,
SUpputuri
SUpputuri