Error Locating the text fields - Replay mode

30 views
Skip to first unread message

senthil nathan

unread,
Apr 28, 2015, 3:59:05 AM4/28/15
Fred,

I am getting WidgetNotFound exception when executing below recorded code.

ui
.click(new JTextComponentLocator(JLovTextField.class, 0,
new NamedWidgetLocator("Agent")));

ui.enterText("****");


I want to locate first Text Field in JPanel with name ("Agent")

-Senthil


Fred G

unread,
Apr 28, 2015, 8:57:03 AM4/28/15
Hi Senthil,

As I wrote in the other thread (https://groups.google.com/forum/#!topic/windowtester-pro/oK3wZr1xSWk),
without knowing your application, having a test snippet that reproduces the problem or at least seeing a screenshot, I can't help much.

You can try to call "new DebugHelper().printWidgets();" before this error occurs, to see if the hierarchy of the widgets is correct.

Regards,

Fred

Venkata Prasad Reddy

unread,
Dec 16, 2015, 5:16:39 AM12/16/15
to windowtester-pro
Hi,

I am able to Record and Play ContactManagerRPC Application which is provided by Window Tester Pro Team, but I dont know the steps for Recording and Playing my own Java Swing Application.

Please tell me, Steps for Recording and Playing Application (Not provided by Window Tester Pro Team).

Thanks in advance.
Reply all
Reply to author
Forward
0 new messages