Forum Discussion

juliemorris's avatar
juliemorris
Occasional Contributor
7 months ago

Can no longer open a htm file into a browser window

Good morning, 

This issue has arrived since the last upgrade (I think), there was also Windows patching.

I would like to check if anyone else has the issue, and if there is a workaround?

 

The functions purpose is to open a browser, and then open a given file.

The open browser command works but it cannot find the file.

I can open the file manually into the browser just find - so it is there :), path name is good, same character case as being called.

I have tried Edge, Chrome and Firefox and have the same outcome.
File permissions have not changed

Here is the code:

 

var destinationAddress = "C:/Testing/" + formatStr + "_TC" + testCompleteVersionNumber + "_results.htm/index.htm";

function OpenBrowser(browserType, destinationAddress)
{
//Close browser if there is already one open
if (Sys.WaitBrowser(browserType).Exists)
{
Sys.WaitBrowser(browserType).Close();
}
Browsers.Item(browserType).Run(destinationAddress);
Sys.Browser(browserType).BrowserWindow(0).Maximize();
}

Heres the error when another file failed when trying to open

 

Last week I upgraded TC to 15.56.2.7 x64

 

Thanks Julie

2 Replies

  • rraghvani's avatar
    rraghvani
    Champion Level 3

    If you copy the text shown in the results,

    and paste it to your browser, does it open?

     

    There seems to be a few issues with the latest version of TC. Might be worth installing a previous version instead.

    • juliemorris's avatar
      juliemorris
      Occasional Contributor

      Yes, it does open the file.
      Ive logged an issue with Smartbear too.
      And I might have to downgrade 😞