Forum Discussion
Hi layfonchian,
To run Internet Explorer from a C# Connected App, you can use:
Connect.Integration["GetObjectByName"]("Browsers")["Item"]("iexplore")["Run"]("http://example.com");
Though your TestedApps variant is also valid.
Two notes:
1) For the Connect calls to work, TestComplete must be running a test at the same time. You have two options:
- Launch a dummy TestComplete test from your Connected App, before any Connect calls:
-
Connect.RunTest("My Test", "MyProject", "C:\\Work\\DummyProject.pjs"); - Launch your Connected App from a wrapper TestComplete test.
For details, please see Creating Connected Applications in C#, sections "Writing Test Code in C# Connected Applications" and "Writing Code in TestComplete Projects".
2) On Windows 10, 8.x and 2012, you may need to configure the manifest for your C# Connected App and/or TestComplete. More information here.
Hope this helps! If you are still having issues, please open a support ticket with out technical support.
- layfonchian11 years agoNew Contributor
Hi,
I tried to execute your solution and it prompt out empty messagebox with "Cannot create object"
Screenshot
Here is my code snippet
using AutomatedQA.script;
using AutomatedQA.TestComplete;public static void Testing123()
{Connect.RunTest("MyTest", "Testing", "C:\\Users\\ABC\\Documents\\TestComplete 11 Projects\\Testing\\Testing.pjs");
var browser = Connect.Integration["GetObjectByName"]("Browsers")["Item"]("iexplore")["Run"]("http://example.com");}
Testing.pjs is just a dummy TestComplete project
- HKosova11 years ago
Alumni
Please send your C# project and your TestComplete project to Support, and they will help you figure out what the problem is.
http://support.smartbear.com/message/?prod=TestComplete