public void RecordedMethod1(string testData)
{
#region Variable Declarations
HtmlEdit uIEnteryoursearchtermEdit = this.UIExercise3DataDrivenDWindow.UIBingDocument.UIEnteryoursearchtermEdit;
HtmlDiv uIItemPane = this.UIExercise3DataDrivenDWindow.UIBingDocument.UISb_formCustom.UIItemPane;
HtmlInputButton uISearchButton = this.UIExercise3DataDrivenDWindow.UIBingDocument.UISearchButton;
WinButton uICloseButton = this.UIExercise3DataDrivenDWindow.UIVisualstudio2010BingTitleBar.UICloseButton;
#endregion
// Go to web page
'http://www.bing.com/' using new browser instance
this.UIExercise3DataDrivenDWindow.LaunchUrl(new System.Uri(this.RecordedMethod3Params.UIExercise3DataDrivenDWindowUrl));
// Set flag to
allow play back to continue if non-essential actions fail. (For example, if a
mouse hover action fails.)
Playback.PlaybackSettings.ContinueOnError = true;
// Mouse hover
'Enter your search term' text box at (213, 5)
Mouse.Hover(uIEnteryoursearchtermEdit, new Point(213, 5));
// Reset flag to
ensure that play back stops if there is an error.
Playback.PlaybackSettings.ContinueOnError = false;
// Click 'Unknown
Name' pane
Mouse.Click(uIItemPane, new Point(151, 34));
// Type 'visual
studio 2010' in 'Unknown Name' pane
Keyboard.SendKeys(uIItemPane, this.RecordedMethod3Params.UIItemPaneSendKeys, ModifierKeys.None);
// Type 'visual
studio2010' in 'Enter your search term' text box
uIEnteryoursearchtermEdit.Text = testData;
// Click 'Search'
button
Mouse.Click(uISearchButton, new Point(21, 20));
// Click 'Close'
button
Mouse.Click(uICloseButton, new Point(18, 8));
}