Can not call method SetText of a CUITe_HtmlEdit

Oct 16, 2012 at 10:58 PM
Edited Oct 16, 2012 at 11:17 PM

I found the control HtmlEdit but I can not call the method SetText.

Cannot perform 'SetProperty of Text with value "GI"' on the control. Additional Details: 
TechnologyName:  'Web'
ControlType:  'Edit'
Id:  'txtComputationName'
Name:  'txtComputationName'
TagName:  'INPUT'

The HTML code of that control is:

<input name="txtComputationName" id="txtComputationName" type="text" jQuery1350425750909="5"/>

Do you know what the reason is?

Thank you

Oct 16, 2012 at 11:47 PM

I found the solution how to solve that problem. I must perform the Mouse.Click on that control before setting text.

Mouse.Click(computation.UnWrap());                
computation.SetText("GI");
But I don't know why I need to Click on that control first before I set text for that control. On others pages, I don't need to do that.

Coordinator
Oct 17, 2012 at 2:05 AM

See the post marked as the answer here:

http://social.msdn.microsoft.com/Forums/sa/vsautotest/thread/4e8dd069-f463-486f-80f9-b6b7a20be91a

GeorgeSanders:

Playback.PlaybackSettings.SendKeysAsScanCode = true;