This question is locked. New answers and comments are not allowed.
I see there is some support with interacting with the Desktop via the WebAii framework. And I have verified a bit of that framework by creating a simple form with a textbox and button. I can launch the form from my Nunit test (Process.Start), and can even utilize the Desktop.KeyBoard.KeyDown method to input some text into the form. The trouble comes when I try to Click the mouse.
results in:
System.NullReferenceException : Object reference not set to an instance of an object.
I also tried moving the mouse
, and receive:
System.NullReferenceException : The Settings.Current object has not been set. It is Null.
I see that there is a way to define a Webaii settings configuration section, but I'm beginning to question the framework's ability to interact with a winform when the settings all have to do with browsers and URLs...
Is there some reason the Mouse object needs these settings to interact with a webform when the Keyboard did not?
Thanks in advance for your help.
-J.
| Dim Desktop As New Desktop |
| Desktop.Mouse.Click(MouseClickType.LeftClick, 200, 200) |
| MsgBox("Done") |
results in:
System.NullReferenceException : Object reference not set to an instance of an object.
I also tried moving the mouse
| Desktop.Mouse.Move(0, 0, 200, 200) |
, and receive:
System.NullReferenceException : The Settings.Current object has not been set. It is Null.
I see that there is a way to define a Webaii settings configuration section, but I'm beginning to question the framework's ability to interact with a winform when the settings all have to do with browsers and URLs...
Is there some reason the Mouse object needs these settings to interact with a webform when the Keyboard did not?
Thanks in advance for your help.
-J.