1

In UFT it is pretty straight forward; however, when attempting to use the SendKeys method insert some simple text, the syntax apparently is not correct. Anyone used SendKeys with LeanFT?

Motti
  • 110,860
  • 49
  • 189
  • 262
Paul
  • 11
  • 1
  • 2
  • Have you reviewed this link for the details? http://leanft-help.saas.hpe.com/en/latest/NetSDKReference/HP.LFT.SDK~HP.LFT.SDK.ISupportSendKeys~SendKeys(String).html – dmcgill50 Aug 11 '16 at 20:57
  • Thanks for the feedback. I did look there; however, when using what I thought would bring up the SendKeys method, it did not work. It is probably me being new to programming, expecially C#. What I am trying to do is after dumping text in a text field using setvalue just hit the return key afterwards. – Paul Aug 18 '16 at 22:01
  • What kind of application are you interacting with? Web, .NET, Java? – dmcgill50 Aug 19 '16 at 19:33

1 Answers1

1

You will need to use the object that you used to set the text with you then SendKeys. This example is given in Java, but it should be similar in C#.

object.SetText("example text");
object.SendKeys(Keys.RETURN);
dmcgill50
  • 528
  • 6
  • 26