I have been working through the examples you have listed for .net testing. The real only change I have made is the name of the control and the caption text.
Control seekButton = form.FindChildText("Seek Device");
I get a Null Pointer Exception when I run the application. and it points to the first line in the code above. I ran the example almost the same way with the exception of a few name changes. What object am I supposed to instantiate in this example?
Class library usage, coding and language questions.
2 posts • Page 1 of 1
This can happen if the form object reference is null (e.g. Application.FormFindTitle cannot find a form with the specified title and returns null):
Code: Select all
I get a Null Pointer Exception when I run the application. and it points to the first line in the code above.
Form form = Application.FindFormTitle("RanorexTestedApp");
Please check your form object, which sample do you mean?