| Quote: |
| Will FindTextBox work for the Edit control? |
Yes, you can find an edit box and set/get the text of it as follows:
(See the sample application RanorexVS2005Sample2)
Code: click into code to enlarge
TextBox textBox = form.FindTextBox("textBox1");
if (textBox != null)
{
textBox.Focus();
textBox.Text = "Ranorex";
text = textBox.Text;
}
Or you can also use the Element class:
Code: click into code to enlarge
Element fileEditControl = openFileDialog.Element.FindChild(Role.Text,"File name:");
if( fileEditControl != null)
fileEditControl.Value = "D:\\Ranorex\\Bin\\RanorexNet.dll";
Jenö
Ranorex Team |