{"action":"created","issue":{"url":"https://api.github.com/repos/icnocop/cuite/issues/57","labels_url":"https://api.github.com/repos/icnocop/cuite/issues/57/labels{/name}","comments_url":"https://api.github.com/repos/icnocop/cuite/issues/57/comments","events_url":"https://api.github.com/repos/icnocop/cuite/issues/57/events","html_url":"https://github.com/icnocop/cuite/issues/57","id":124374000,"number":57,"title":"Trouble getting instance of Object Repository from BrowserWindowUnderTest","user":{"login":"Kritner","id":8814983,"avatar_url":"https://avatars.githubusercontent.com/u/8814983?v=3","gravatar_id":"","url":"https://api.github.com/users/Kritner","html_url":"https://github.com/Kritner","followers_url":"https://api.github.com/users/Kritner/followers","following_url":"https://api.github.com/users/Kritner/following{/other_user}","gists_url":"https://api.github.com/users/Kritner/gists{/gist_id}","starred_url":"https://api.github.com/users/Kritner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kritner/subscriptions","organizations_url":"https://api.github.com/users/Kritner/orgs","repos_url":"https://api.github.com/users/Kritner/repos","events_url":"https://api.github.com/users/Kritner/events{/privacy}","received_events_url":"https://api.github.com/users/Kritner/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-30T17:08:14Z","updated_at":"2015-12-30T20:48:56Z","closed_at":null,"body":"I'm sure I'm doing this incorrectly, but I'm not finding a whole lot on a tutorial on how to go about accomplishing a multi page test.  I had this working previous with the older syntax (codeplex's version) but am having trouble with the current syntax.\r\n\r\n    public class Foo\r\n    {\r\n        public void System_Login(string URL, string UserID, string Password, string System)\r\n        {\r\n            BrowserWindow bw = BrowserWindowUnderTest.Launch(URL);\r\n            LogInPage pgLogin = BrowserWindowUnderTest.GetBrowserWindow<LogInPage>();\r\n            pgLogin.txtUserID.Text = UserID;\r\n            pgLogin.txtPassword.Text = Password;\r\n            pgLogin.cboSystem.SelectItem(System);\r\n            pgLogin.btnLogin.Click(); // Directs to \"NewPage\"\r\n\r\n            DoStuff();\r\n        }\r\n\r\n        public void DoStuff()\r\n        {\r\n             NewPage newPage = BrowserWindowUnderTest.GetBrowserWindow<NewPage>();\r\n        }\r\n    }\r\n\r\n    public class LogInPage : BrowserWindowUnderTest\r\n    {\r\n        public LogInPage() : base(\"Log-In Page\")\r\n        {\r\n        }\r\n\r\n        public HtmlEdit txtUserID\r\n        {\r\n            get\r\n            {\r\n                return this.Find<HtmlEdit>(By.Id(\"text1\"));\r\n            }\r\n        }\r\n        public HtmlPassword txtPassword\r\n        {\r\n            get \r\n            {\r\n                return this.Find<HtmlPassword>(By.Id(\"password1\"));\r\n            }\r\n        }\r\n        public HtmlComboBox cboSystem\r\n        {\r\n            get\r\n            {\r\n                return this.Find<HtmlComboBox>(By.Id(\"cboSystem\"));\r\n            }\r\n        }\r\n        public HtmlInputButton btnLogin\r\n        {\r\n            get\r\n            {\r\n                return this.Find<HtmlInputButton>(By.Id(\"submit1\"));\r\n            }\r\n        }\r\n\r\n\t}\r\n\r\nI get a successful compile, but I'm getting an exception when attempting to resolve my `LoginPage` from `LogInPage pgLogin = BrowserWindowUnderTest.GetBrowserWindow<LogInPage>();`\r\n\r\nThe exception is:\r\n\r\n> Test Name:\tSmokeTest_DEV\r\nTest Outcome:\tFailed\r\nResult Message:\t\r\nTest method SmokeTest.CodedUITest1.SmokeTest_DEV threw exception: \r\nSystem.MissingMethodException: Constructor on type 'SmokeTest.ObjectRepository.LogInPage' not found.\r\nResult StandardOutput:\t\r\nDebug Trace:\r\nV, 2888, 14, 2015/12/30, 11:56:29.406, 2335822818100, QTAgent32.exe, ConstructDeviceToDriveMap() Added mapping '\\Device\\Mup\\' -> '\\\\'\r\nV, 2888, 14, 2015/12/30, 11:56:29.406, 2335822818743, QTAgent32.exe, ConstructDeviceToDriveMap() Added mapping '\\Device\\RdpDr\\' -> '\\\\'\r\nV, 2888, 14, 2015/12/30, 11:56:29.406, 2335822819210, QTAgent32.exe, ConstructDeviceToDriveMap() Added mapping '\\Device\\LanmanRedirector\\' -> '\\\\'\r\nV, 2888, 14, 2015/12/30, 11:56:29.406, 2335822819692, QTAgent32.exe, ConstructDeviceToDriveMap() Added mapping '\\Device\\WebDavRedirector\\' -> '\\\\'\r\nV, 2888, 14, 2015/12/30, 11:56:29.406, 2335822824667, QTAgent32.exe, ConstructDeviceToDriveMap() Added mapping '\\Device\\HarddiskVolume2\\' -> 'C:\\'\r\nV, 2888, 14, 2015/12/30, 11:56:29.406, 2335822825430, QTAgent32.exe, ConstructDeviceToDriveMap() Added mapping '\\Device\\CdRom0\\' -> 'D:\\'\r\nV, 2888, 14, 2015/12/30, 11:56:29.406, 2335822825960, QTAgent32.exe, ConstructDeviceToDriveMap() Added mapping '\\Device\\HarddiskVolume3\\' -> 'F:\\'\r\nV, 2888, 14, 2015/12/30, 11:56:29.406, 2335822826635, QTAgent32.exe, ConstructDeviceToDriveMap() Added mapping '\\Device\\LanmanRedirector\\;G:0000000000b2612a\\DEVFILE\\vol3\\Data\\Common\\' -> 'G:\\'\r\nV, 2888, 14, 2015/12/30, 11:56:29.406, 2335822827474, QTAgent32.exe, ConstructDeviceToDriveMap() Added mapping '\\Device\\LanmanRedirector\\;H:0000000000b2612a\\devfile\\vol3\\Home\\Rhammett\\' -> 'H:\\'\r\nV, 2888, 14, 2015/12/30, 11:56:30.250, 2335825860170, QTAgent32.exe, ExtensionFramework : Assembly resolver trying to resolve Microsoft.VisualStudio.TestTools.UITest.Extension.IE.EventHelper\r\nV, 2888, 14, 2015/12/30, 11:56:30.250, 2335825863176, QTAgent32.exe, ExtensionFramework : Assembly resolver trying to resolve Microsoft.VisualStudio.TestTools.UITest.Extension.IE.EventHelper\r\n\r\nIs my syntax wrong?  Am I doing something else wrong?  My LoginPage does have a public parameterless constructor, not sure why it's throwing an exception on attempting to assign my LoginPage var"},"comment":{"url":"https://api.github.com/repos/icnocop/cuite/issues/comments/168071190","html_url":"https://github.com/icnocop/cuite/issues/57#issuecomment-168071190","issue_url":"https://api.github.com/repos/icnocop/cuite/issues/57","id":168071190,"user":{"login":"Kritner","id":8814983,"avatar_url":"https://avatars.githubusercontent.com/u/8814983?v=3","gravatar_id":"","url":"https://api.github.com/users/Kritner","html_url":"https://github.com/Kritner","followers_url":"https://api.github.com/users/Kritner/followers","following_url":"https://api.github.com/users/Kritner/following{/other_user}","gists_url":"https://api.github.com/users/Kritner/gists{/gist_id}","starred_url":"https://api.github.com/users/Kritner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kritner/subscriptions","organizations_url":"https://api.github.com/users/Kritner/orgs","repos_url":"https://api.github.com/users/Kritner/repos","events_url":"https://api.github.com/users/Kritner/events{/privacy}","received_events_url":"https://api.github.com/users/Kritner/received_events","type":"User","site_admin":false},"created_at":"2015-12-30T20:48:55Z","updated_at":"2015-12-30T20:48:55Z","body":"No problem - just trying to get a better feel for the new syntax."}}