public TextTest() { frame = GetFrame ("gtktextview.py"); Accessible textView = FindByRole (frame, Role.Text); Assert.IsNotNull (textView, "Couldn't find the TextView"); text = textView.QueryText (); Assert.IsNotNull (text, "textView.QueryText"); editableText = textView.QueryEditableText (); Assert.IsNotNull (editableText, "textView.QueryEditableText"); }
public ValueSource (Element element) { accessible = element.Accessible; text = accessible.QueryText (); editableText = accessible.QueryEditableText (); }
public void Init() { frame = GetFrame ("DocumentTest.exe", "DocumentTest"); et = frame.QueryEditableText (); Assert.IsNotNull (et, "frame.QueryEditableText"); }