Hello A911,
First, let me ask what would be wrong with simply straight setting the text of your input field? Do you really need to simulate keyboard typing? You can set the text of your input text field directly with code like this:
The reason your code isn't working as expected is that textfield.MouseClick sends a click event directly to the DOM of the browser. It doesn't change/set the input focus at all. What you need is to do a desktop mouse click instead using code like this:
The above code will actually move the mouse cursor to the middle of your input textbox and then simulate a windows mouse click at the current cursor position. That will force input focus to be on input textbox. Then the SendString will work as expected.
All the best,
Cody
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the
Telerik Public Issue Tracking system and vote to affect the priority of the items.