{"action":"closed","issue":{"url":"https://api.github.com/repos/icnocop/cuite/issues/41","labels_url":"https://api.github.com/repos/icnocop/cuite/issues/41/labels{/name}","comments_url":"https://api.github.com/repos/icnocop/cuite/issues/41/comments","events_url":"https://api.github.com/repos/icnocop/cuite/issues/41/events","html_url":"https://github.com/icnocop/cuite/issues/41","id":109541175,"number":41,"title":"Getting \"SetProperty of \"Text\" is not supported on control type: Window\" when trying to set text in textBox","user":{"login":"arushisingh90","id":14926149,"avatar_url":"https://avatars.githubusercontent.com/u/14926149?v=3","gravatar_id":"","url":"https://api.github.com/users/arushisingh90","html_url":"https://github.com/arushisingh90","followers_url":"https://api.github.com/users/arushisingh90/followers","following_url":"https://api.github.com/users/arushisingh90/following{/other_user}","gists_url":"https://api.github.com/users/arushisingh90/gists{/gist_id}","starred_url":"https://api.github.com/users/arushisingh90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arushisingh90/subscriptions","organizations_url":"https://api.github.com/users/arushisingh90/orgs","repos_url":"https://api.github.com/users/arushisingh90/repos","events_url":"https://api.github.com/users/arushisingh90/events{/privacy}","received_events_url":"https://api.github.com/users/arushisingh90/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-10-02T18:02:06Z","updated_at":"2015-10-05T15:54:23Z","closed_at":"2015-10-05T15:54:23Z","body":"Getting \"SetProperty of \"Text\" is not supported on control type: Window\" when trying to set text in textbox.\r\n\r\n```\r\nusing System;\r\nusing System.Collections.Generic;\r\nusing System.Linq;\r\nusing System.Text;\r\nusing CUITe.SearchConfigurations;\r\nusing Microsoft.VisualStudio.TestTools.UITesting;\r\nusing CUITe.Controls.HtmlControls;\r\n\r\nnamespace ABCSmokeTestCuite.ObjectRepository\r\n{\r\n    public class ABCLoginPage : BrowserWindowUnderTest\r\n    {\r\n        public ABCLoginPage()\r\n            : base(\"ABC - Log-in Page\")\r\n\t\t{\r\n\t\t}\r\n\r\n        public ABCLoginPage(string windowTitle)\r\n            : base(windowTitle)\r\n        {\r\n\r\n        }\r\n\r\n        public HtmlEdit txtTemp1 = new HtmlEdit(By.SearchProperties(\"Id=ctl00_ContentPlaceHolder1_loginABC_UserName\"));        \r\n        public HtmlPassword txtTemp2 = new HtmlPassword(By.SearchProperties(\"Id=ctl00_ContentPlaceHolder1_loginABC_Password\"));\r\n        public HtmlInputButton btnLogIn = new HtmlInputButton(By.SearchProperties(\"Id=ctl00_ContentPlaceHolder1_loginABC_LoginButton\"));\r\n    }\r\n}\r\n\r\n\r\npublic void Login(string url, string username, string password)\r\n{\r\n\r\n       MBESLoginPage loginPage = BrowserWindowUnderTest.GetBrowserWindow<ABCLoginPage>(\"ABC - Log-in Page\");\r\n\r\n       loginPage.txtTemp1.Text = username;\r\n       loginPage.txtTemp2.Text = password;\r\n       loginPage.btnLogIn.Click();\r\n}\r\n```"}}