Completed
Last Updated: 22 Jul 2015 06:59 by ADMIN
ADMIN
Cody
Created on: 09 Feb 2015 23:28
Type: Bug Report
0
Test Studio does not record text in customer specific WPF rich text editor
Customer has a WPF application which has a rich text editor feature. Test Studio records clicking on the tool bar, the OK and Cancel buttons but will not record text typed into the editor block.
Repro steps will be given in the internal problem report.
1 comment
ADMIN
Daniel Djambov
Posted on: 22 Jul 2015 06:59
Telerik: 
The problem is that there is a WindowsFormsHost control over the TextBox area of the editor. This control is taking the keyboard focus and "System.Windows.Input.Keyboard.FocusedElement" returns null instead of the focused TextBox. (see screenshot: http://screencast.com/t/rMrZFSTGNr).

Also the "windows forms" content which is inside of the WindowsFormsHost is not supported from Telerik Testing Framework.

As a work-around we can offer for this specific case is the usage of blind mouse clicks (desktop clicks) on the text area and desktop text typing.
http://docs.telerik.com/teststudio/troubleshooting-guide/test-execution-problems-tg/invoke-blind-keyboard-typing
http://docs.telerik.com/teststudio/troubleshooting-guide/test-execution-problems-tg/invoke-blind-mouse-click