Ecolab.Pages.WETabPage.AddWaterEnergyDevice C# (CSharp) Method

AddWaterEnergyDevice() public method

Adds the water energy device.
public AddWaterEnergyDevice ( string strDeviceName, string strDevivceType, string strDeviceModel, string strInstallDate, string strComment ) : void
strDeviceName string
strDevivceType string Type of the string devivce.
strDeviceModel string The string device model.
strInstallDate string The string install date.
strComment string The string comment.
return void
        public void AddWaterEnergyDevice(string strDeviceName, string strDevivceType, string strDeviceModel, string strInstallDate, string strComment)
        {

            GetHtmlControl<HtmlInputText>("txtDeviceNameAddNew").TypeText(strDeviceName);
            MouseKeyboardLibrary.KeyboardSimulator.KeyPress(System.Windows.Forms.Keys.Tab);
            GetHtmlControl<HtmlSelect>("SelectDeviceType").SelectByText(strDevivceType,true);
            MouseKeyboardLibrary.KeyboardSimulator.KeyPress(System.Windows.Forms.Keys.Tab);
            GetHtmlControl<HtmlSelect>("SelectDeviceModel").SelectByText(strDeviceModel,true);
            MouseKeyboardLibrary.KeyboardSimulator.KeyPress(System.Windows.Forms.Keys.Tab);
            GetHtmlControl<HtmlInputText>("InstallDate").TypeText(strInstallDate);
            MouseKeyboardLibrary.KeyboardSimulator.KeyPress(System.Windows.Forms.Keys.Tab);
            GetHtmlControl<HtmlTextArea>("txtComment").Text = strComment;
            MouseKeyboardLibrary.KeyboardSimulator.KeyPress(System.Windows.Forms.Keys.Tab);
            Thread.Sleep(3000);
            GetHtmlControl<HtmlSpan>("btnWEUpdate").DeskTopMouseClick();


        }