QTP Navigation between multiple applications - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners) +--- Thread: QTP Navigation between multiple applications (/Thread-QTP-Navigation-between-multiple-applications) Pages:
1
2
|
QTP Navigation between multiple applications - Andrew.Stockdale - 09-30-2009 I have two web applications and i am trying to navigate from one to the other and back again... How do i do this because the manuals don't detail this action? RE: QTP Navigation between multiple applications - qtpdeepak - 09-30-2009 Hi Andrew, [color]You have to store the Links in DataTable and then using looping you can re-navigate back to the previous link. Regards, Deepak.[/color] RE: QTP Navigation between multiple applications - Saket - 09-30-2009 you can use Browser.Navigate again to navigate other url. you can use back method as well see the example below Code: 'Navigate first url RE: QTP Navigation between multiple applications - Andrew.Stockdale - 09-30-2009 I am a beginner to QTP (2 days) can you explain in more detail please Thank you for your time and support RE: QTP Navigation between multiple applications - Saket - 09-30-2009 To navigate to another url you will have to use Navigate method of Browser object. So when you are open with an application and you need to navigate to another then you should use Navigate method again withe the required url. or if your test case allows you can use Back method as well. have you looked at the example above in the earlier post. what Deepak is trying to say is much advanced to this, in case you have many url needs to open and back to the earlier one the you can use datatable to store the links and use as per your need with navigate method. i will suggest you use the simple one first. RE: QTP Navigation between multiple applications - qtpdeepak - 09-30-2009 Hi Saket, Thanks for your reply. Your method would be much easier solution for the above said query. Andrew : You can use Saket's Idea for your purpose. If you want to get more advance way, then DataTable is one of the way you can access Multiple URL's and backforth. Regards, Deepak RE: QTP Navigation between multiple applications - Andrew.Stockdale - 09-30-2009 Thank you for your replys. Much appreciated but i've tried the code and it doesn't work. Any ideas or step by step guides? I have below the error message that keeps appearing on the screen when i am trying to navigate from one web browser to another. Run Error The "Login" Browser object was not found in the Object Repository. Check the Object Repository to confirm that the object exists or to find the correct name for the object. Line (17): "Browser("Login").Navigate "https://test/program/UI/Content/"". Tip: If the objects in your application have changed, the Maintenance Run Mode can help you identify and update your steps and/or the objects in your repository. Thanks again for your help RE: QTP Navigation between multiple applications - Saket - 09-30-2009 The code was just an example. you should modify as per your repository before using it. as the error say object is not in repository, so you will need to add a browser object in the repository and name it 'login' or replace 'Login' in Browser("login") with the object that you have in oR RE: QTP Navigation between multiple applications - qtpdeepak - 09-30-2009 Hi Andrew, You can also use the below ones. It will work even if you dont store any Objects in Repository. Code: Browser("CreationTime:=0").Navigate "www.google.com" Regards, Deepak. RE: QTP Navigation between multiple applications - Andrew.Stockdale - 09-30-2009 Deepak you are a star Thanks for the code it worked Andy |