Script cannot send text using Keyboard.Sendkeys or .Text syntaxt in VSTS 2013

txtAgency.Text = "test";

      

Error - PlaybackFailureException was not changed by user code. an exception of type 'Microsoft.VisualStudio.TestTools.UITest.Extension.PlaybackFailureException' occurred in Microsoft.VisualStudio.TestTools.UITesting.dll but was not handled in user code

Details:

  • Tool - VS 2013
  • IE - IE10
  • The same code works fine in VS2010, but while running on VS 2013 it does.
  • Powered by VDI
  • Works fine, but most often doesn't. Works great in 2010.
  • Sends keys as "ttteeesst". the pattern continues to change, but the output is a malfunction.

Workaround:

  • Checked both true and false for Playback.PlaybackSettings.SendKeysAsScanCode
  • Checked sendkeysdelay = 1000;
+3


source to share





All Articles