This project is read-only.

Get null reference when creating a new instance of page definition class

Jan 6, 2015 at 5:57 PM
Edited Jan 6, 2015 at 7:19 PM
Hi,

The quick start guide says that to create a new instance of page definition class do the following :
PAHome pgPAHome = CUITe_BrowserWindow.GetBrowserWindow<PAHome>();

But when I do that, I get System.NullReferenceException: Object reference not set to an instance of an object.

Can you please help me get started with this?

Thank you.

Here is the stack trace
Result Message:
Test method CodedUITestProject1.CodedUITest1.CodedUITestMethod1 threw exception:
System.NullReferenceException: Object reference not set to an instance of an object.
Result StackTrace:
at CUITe.ObjectRepositoryManager.GetInstance(Type typePageDefinition) in E:\CUITe\CUITe\ObjectRepositoryManager.cs:line 29
at CUITe.ObjectRepositoryManager.GetInstanceT in E:\CUITe\CUITe\ObjectRepositoryManager.cs:line 24
at CUITe.Controls.HtmlControls.CUITe_BrowserWindow.GetBrowserWindowT in E:\CUITe\CUITe\Controls\HtmlControls\CUITe_BrowserWindow.cs:line 44
at CodedUITestProject1.CodedUITest1.CodedUITestMethod1() in
Jan 23, 2016 at 7:43 PM
What does the code for PAHome look like?