Troubleshooting
Problem
Attempts to call the loadUrl() method from an IBM Rational Functional Tester (RFT) script against Mozilla Firefox result in error "Could not find a Browser role attribute for the object."
Symptom
The full error message is as follows.
Could not find a Browser role attribute for the object.
com.rational.test.ft.ObjectNotFoundException
at com.rational.test.ft.object.interfaces.ClientTestObject.invokeProxy(ClientTestObject.java:411)
at com.rational.test.ft.object.interfaces.BrowserTestObject.loadUrl(BrowserTestObject.java:115)
at NewTab2.testMain(NewTab2.java:41)
at org.eclipse.equinox.internal.app.EclipseAppContainer.callMethodWithException(EclipseAppContainer.java:587)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:198)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
at org.eclipse.core.launcher.Main.main(Main.java:34)
The browser is properly enabled and passes the RFT browser test. The error does not occur in Internet Explorer.
Steps to reproduce
Record a script that does the following actions.
- Load any page in Firefox.
- Make a new tab by issuing Ctrl + t.
- Stop recording.
- Load ibm.com by scripting the following code.
Disclaimer All source code and/or binaries attached to this document are referred to here as "the Program". IBM is not providing program services of any kind for the Program. IBM is providing the Program on an "AS IS" basis without warranty of any kind. IBM WILL NOT BE LIABLE FOR ANY ACTUAL, DIRECT, SPECIAL, INCIDENTAL, OR INDIRECT DAMAGES OR FOR ANY ECONOMIC CONSEQUENTIAL DAMAGES (INCLUDING LOST PROFITS OR SAVINGS), EVEN IF IBM, OR ITS RESELLER, HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
browser_htmlBrowser().loadUrl("http://ibm.com");
- Playback the script.
You see the ObjectNotFoundException during playback.
Log InLog in to view more of this document
Was this topic helpful?
Document Information
Modified date:
16 June 2018
UID
swg21693502