Hi,
I am using WebAii 2011.1.
I want to send the key Ctrl-A to the framework element that I found.
According to the documentation:
1) SendString is deprecated in favor of TypeText or KeyPress
2) TypeText cannot send special characters
No sure how to use KeyPress for 2 keys that are simultaneous, ControlKey and the "A" key.
I tried this sequence but it did not work ( ie select all of the text in Framework Element )
fe.User.KeyDown(Keys.ControlKey);
fe.User.KeyPress(Keys.A,Constant.KeyDelay);
fe.User.KeyUp(Keys.ControlKey);
The only article I could find uses SendString.
http://www.telerik.com/automated-testing-tools/community/forums/test-studio-express/automation-framework/can-t-combine-shift-key-down-with-other-keys.aspx
Thanks,
I am using WebAii 2011.1.
I want to send the key Ctrl-A to the framework element that I found.
According to the documentation:
1) SendString is deprecated in favor of TypeText or KeyPress
2) TypeText cannot send special characters
No sure how to use KeyPress for 2 keys that are simultaneous, ControlKey and the "A" key.
I tried this sequence but it did not work ( ie select all of the text in Framework Element )
fe.User.KeyDown(Keys.ControlKey);
fe.User.KeyPress(Keys.A,Constant.KeyDelay);
fe.User.KeyUp(Keys.ControlKey);
The only article I could find uses SendString.
http://www.telerik.com/automated-testing-tools/community/forums/test-studio-express/automation-framework/can-t-combine-shift-key-down-with-other-keys.aspx
Thanks,