Quantcast
Channel: New board topics in SmartBear Community
Viewing all articles
Browse latest Browse all 21061

How to open internet explorer using C# application

$
0
0

I have done the debug on test complete

 

right now i would like to port over to my C# application to run.

 

Can i know what is the command to open internet explorer in C# application? i am still very new on test complete

 

Test Complete C# script

 

var browser;
var DestinationFileName="C:\\Share\\EIMSInterBuildingTransfer.xlsx";
browser=Browsers["Item"](btIExplorer)["Run"]("http://example.com");

 

Aliases["browser"]["pageHttpPgftmt20nlbPngIntelComIc"]["RootBrowserWindow"]["CatchuiNewui"]["Grid"]["TabControl"]["WPFObject"]("ReportsTabItem")["Click"]();

 

 

What is the C# script to open internet explorer? i tested below script and it prompt error

 

var browser = Connect.TestedApps["AddBrowser"]("Internet Explorer");
var app = Connect.TestedApps["Items"](browser);
app["PageAddress"] = "http://example.com";
app["Run"]();
Connect.Aliases["browser"]["pageHttpPgftmt20nlbPngIntelComIc"]["RootBrowserWindow"]["CatchuiNewui"]["Grid"]["TabControl"]["WPFObject"]("ReportsTabItem")["Click"]();

 

Is there any good tutorial guide for C# port script?


Viewing all articles
Browse latest Browse all 21061

Latest Images

Trending Articles



Latest Images