public void click() { IntPtr hid = handleid("msn"); //System.Threading.Thread.Sleep(2000); this.myHtmlDoc = this.cls.Get_HtmlDocumentToWindow(hid, "Name", "mstest_eses_1009"); Maui.Core.WinControls.Button objExactControl = this.c2.Get_MauiButton(this.myHtmlDoc); if (objExactControl.IsEnabled) { objExactControl.Click(); Thread.Sleep(2000); } try { this.myHtmlDoc = this.cls.Get_HtmlDocumentToWindow(hid, "AutomationId", "4019"); Maui.Core.WinControls.TextBox objExactControl4 = this.c2.Get_text(this.myHtmlDoc); } catch (Exception ex) { this.myHtmlDoc = this.cls.Get_HtmlDocumentToWindow(hid, "AutomationId", "5001"); Maui.Core.WinControls.Control objExactControl2 = this.c2.Get_MauiControl(this.myHtmlDoc); objExactControl2.Click(); this.click(); } }
public void hello() { IntPtr hid12 = handleid("msn"); this.myHtmlDoc10 = this.cls.Get_HtmlDocumentToWindow(hid12, "AutomationId", "4026"); Maui.Core.WinControls.CheckBox objExactControl10 = this.c2.getbox(this.myHtmlDoc10); if (objExactControl10.Checked) { MessageBox.Show("checked"); } else { MessageBox.Show("unchecked"); } //System.Threading.Thread.Sleep(5000); IntPtr hid = handleid("msn"); this.myHtmlDoc2 = this.cls.Get_HtmlDocumentToWindow(hid, "AutomationId", "4019"); Maui.Core.WinControls.TextBox objExactControl2 = this.c2.Get_text(this.myHtmlDoc2); objExactControl2.Text = "password"; //System.Threading.Thread.Sleep(5000); this.myHtmlDoc3 = this.cls.Get_HtmlDocumentToWindow(hid, "AutomationId", "4020"); Maui.Core.WinControls.Control objExactControl3 = this.c2.Get_MauiControl(this.myHtmlDoc3); objExactControl3.Click(); Thread.Sleep(1000); hell(); System.Threading.Thread.Sleep(40000); IntPtr hid1 = handleid("msn"); //this.myHtmlDoc4 = this.cls.Get_HtmlDocumentToWindow(hid1, "AutomationId", "2337"); //Maui.Core.WinControls.Control objExactControl4 = this.c2.Get_MauiControl(this.myHtmlDoc4); //objExactControl4.Click(); this.myHtmlDoc5 = this.cls.Get_HtmlDocumentToWindow(hid1, "AutomationId", "61536"); Maui.Core.WinControls.Control objExactControl5 = this.c2.Get_MauiControl(this.myHtmlDoc5); objExactControl5.Click(); this.myHtmlDoc5 = this.cls.Get_HtmlDocumentToWindow(hid1, "AutomationId", "1"); Maui.Core.WinControls.Control objExactControl6 = this.c2.Get_MauiControl(this.myHtmlDoc5); objExactControl6.Click(); }
/// <summary> /// This function explecitely close the model dialogue. /// </summary> /// <param name="windowHandle">Window handle.</param> public void CloseModeldialogue(object windowHandle) { try { Thread.Sleep(4000); this.mauiWindow = this.myWindow.Get_WindowToSpecificControl((IntPtr)windowHandle, "AutomationId", "2355"); Maui.Core.WinControls.Control objExactControl = this.myControls.Get_MauiControl(this.mauiWindow); objExactControl.Click(); } catch (Exception) { return; } }
/// <summary> /// This function explecitely close the FinishPage model dialogue. /// </summary> /// <param name="windowHandle">Window handle.</param> public void CloseModeldialogue(object windowHandle) { try { Thread.Sleep(4000); this.mauiWindow = this.myWindow.Get_WindowToSpecificControl((IntPtr)windowHandle, "AutomationId", "2355"); Maui.Core.WinControls.Control objExactControl = this.myControls.Get_MauiControl(this.mauiWindow); Logger.AddComment(MessagesBuildSanitySmokeToolBL.MsgRestartOptionModelFound, Logger.CommentType.Message); objExactControl.Click(); } catch (Exception) { return; } }