IBM Support

loadUrl() method causes ObjectNotFoundException

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.

  1. Load any page in Firefox.

  2. Make a new tab by issuing Ctrl + t.

  3. Stop recording.

  4. 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");


  5. Playback the script.


You see the ObjectNotFoundException during playback.

[{"Product":{"code":"SSJMXE","label":"IBM Rational Functional Tester"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"Scripting","Platform":[{"code":"PF033","label":"Windows"}],"Version":"8.6","Edition":"","Line of Business":{"code":"LOB77","label":"Automation Platform"}}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

Modified date:
16 June 2018

UID

swg21693502