This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Some methods use getPositionByText() method to identify start position and then they try to change caret position. If the text is not found, method getPositionByText() returns -1 and caret starts to trying reach -1 position. It would be better if JemmyException is thrown from methods below when text is not found. public void changeCaretPosition(String text, int index, boolean before) public void selectText(String text, int index)
Now changeCaretPosition and selectText methods throws NoSuchText exception - subclass of JemmyException.
Verified.