vendredi 12 août 2016

IBM RFT(8.6.0.3)- Code to handle different browsers

Using browser1(IE version 9) and browser2(firefox33.0.01) I have tried to open browser enter the value in a login page separately - its working fine. If I have that login page opened already in browser1 and then if I'm trying with browser2 to open and enter the value in a login page RFT throwing the Ambiguous error since the objects are available in both the browser.

To open browser seperately I have used the below code

ProcessTestObject Iebrowserobj1 = startBrowser("Internet Explorer",url);

ProcessTestObject Ffbrowserobj2 = startBrowser("Mozilla Firefox",url);

I want to handle objects like for browser1: Iebrowserobj1.text_userId().setText("userID");

I have tried to do with -- text_userId(browser1, DEFAULT).setText("userID"); but its not working.Currenly we are using objects with object map.

Is there any way to handle objects based on the opened browser with the objects stored in object map?

Aucun commentaire:

Enregistrer un commentaire