Ask a Question

How to open a local html file by script?

SOLVED
mengbinhao
Occasional Contributor

How to open a local html file by script?

Hi There,

    Is there a way that I can open an HTML file on my disk by Script?  to be more precise,  simulator double click to open the target HTML file

    Thanks for your response

1 ACCEPTED SOLUTION

Accepted Solutions
Marsha_R
Community Hero

Re: How to open a local html file by script?

There's a reference for that here
https://support.smartbear.com/testcomplete/docs/app-testing/web/general/common-tasks/launching-brows...
Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame

View solution in original post

4 REPLIES 4
Marsha_R
Community Hero

Re: How to open a local html file by script?

This should help

https://support.smartbear.com/testcomplete/docs/reference/test-objects/members/window-and-process/op...

Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
mengbinhao
Occasional Contributor

Re: How to open a local html file by script?

Hi Marsah_R,

    The link you gave to me is not what I want,  OpenFile method open html as text mode,   What I want is using a browser (edge or chrome) open target html,  Thanks for your response

    BTW, I only have a desktop license

Marsha_R
Community Hero

Re: How to open a local html file by script?

There's a reference for that here
https://support.smartbear.com/testcomplete/docs/app-testing/web/general/common-tasks/launching-brows...
Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame

View solution in original post

mengbinhao
Occasional Contributor

Re: How to open a local html file by script?

Yes, this is a solution for my case, but as I said above, I don't have a web test license for now , so it seems I can not open an HTML until I upgrade my license.

cancel
Showing results for 
Search instead for 
Did you mean: