Having problems with your account or logging in?
A lot of changes are happening in the community right now. Some may affect you. READ MORE HERE

Why, in SilkTest, does Browser.Navigate work with Netscape 7.02, but not Internet Explorer 6.0?

Why, in SilkTest, does Browser.Navigate work with Netscape 7.02, but not Internet Explorer 6.0?

Problem:

Why, in SilkTest, does Browser.Navigate work with Netscape 7.02, but not Internet Explorer 6.0?

Resolution:

QUESTION
----------------------------------

Why, in SilkTest, does Browser.Navigate work with Netscape 7.02, but not Internet Explorer 6.0?

ANSWER
----------------------------------

Consider the following code;

    String StartURL = "http://localhost/"
      String URL = "/test/test.asp"
      Browser.Navigate(StartURL+URL)


When run on Netscape 7.02, this will place the correct URL in the browser and navigate to the correct page.

If the same code is tried with Internet Explorer 6, the code will pass but the URL will not be placed in the browser. The problem here is that Netscape is automatically being set active but Internet Explorer is not.

There is a simple solution to this problem. Just place a Browser.SetActive() before the "Navigate" statement. That overcomes a slight difference between the browsers and allows SilkTest to work with both of the browsers.

Old KB# 22031

DISCLAIMER:

Some content on Community Tips & Information pages is not officially supported by Micro Focus. Please refer to our Terms of Use for more detail.
Top Contributors
Version history
Revision #:
1 of 1
Last update:
‎2013-02-15 19:27
Updated by:
 
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.