Enter a value in a textbox.
Posted: Tue Oct 26, 2010 10:29 am
Hello, I have the following problem:
I’d like to enter a value in a textbox. That would normally be no problem, but I need to scroll down to the textbox. The scroll action is implemented and works. But instead of writing the value in the textbox, the scroll indicator jumps back, so that the textbox is invisible again. Ranorex doesn`t enter the value and doesn’t throw a RanorexException.
In an older Ranorex version (before 2.3), my program worked.
Code:
Text txtElement = new Text(absolutRanorexPath.ToString());
txtElement.DoubleClick();
Ranorex.Keyboard.Press(“123”);
Ranorex.Keyboard.Press(System.Windows.Forms.Keys.Return);
I tried to solve the problem with the Focus()-, EnsureVisible()- or MoveTo()-method, but without success.
Can anybody help me?
I’d like to enter a value in a textbox. That would normally be no problem, but I need to scroll down to the textbox. The scroll action is implemented and works. But instead of writing the value in the textbox, the scroll indicator jumps back, so that the textbox is invisible again. Ranorex doesn`t enter the value and doesn’t throw a RanorexException.
In an older Ranorex version (before 2.3), my program worked.
Code:
Text txtElement = new Text(absolutRanorexPath.ToString());
txtElement.DoubleClick();
Ranorex.Keyboard.Press(“123”);
Ranorex.Keyboard.Press(System.Windows.Forms.Keys.Return);
I tried to solve the problem with the Focus()-, EnsureVisible()- or MoveTo()-method, but without success.
Can anybody help me?