hallan_cits
11 years agoNew Contributor
insert the field value in IE
Hi, I'm with difficulty in TestComplete. This question is simple, but it's messing me up. I need to know how can i insert login and password in Facebook using testcomplete in IE 11 ( https://www.fa...
- 11 years agoHi!
You can do it yourself using the recording feature of TestComplete:
Recording Automated Tests - Overview
Just record your actions over IE while logging into the Facebook and you are fine. A recorded script might look like that (JScript):
function Test()
{
var page;
var table;
Browsers.Item(btIExplorer).Run("https://www.facebook.com/");
page = Sys.Browser("iexplore").Page("https://www.facebook.com/");
page.Wait();
table = page.Panel(0).Panel("pagelet_bluebar").Panel("blueBarDOMInspector").Panel("blueBarNAXAnchor").Panel(0).Panel(0).Panel(0).Panel(0).Form("login_form").Table(0);
table.Cell(1, 0).Textbox("email").SetText("login");
table.Cell(1, 1).PasswordBox("pass").SetText("password");
table.Cell(1, 2).Label("loginbutton").SubmitButton("*").ClickButton();
}