jalian-systems / Marathon

Marathon - Java GUI Testing
http://www.marathontesting.com
35 stars 19 forks source link

Marathon identifies a frame as `frame(":1")` #5

Closed samselikoff closed 10 years ago

samselikoff commented 11 years ago

I'm having trouble targeting a frame. I am able to target other parts of the app, but if I control-click a certain new frame, I get with_frame(":1") in my scripts. When I try to replay, Marathon cannot identify the frame, and hangs.

Do I need to add some sort of identifier to the frame for it to work?

samselikoff commented 11 years ago

I'm able to see the component with dump_components, and perhaps it's not a jFrame like I thought it was:

<:1> - com.intex.jtrader.UI.DealInstance

So, it is a custom component. What do I need to do to allow Marathon to identify it?

sampathkumar commented 11 years ago

Most probably you need a custom component resolver. Have a look at developer guide section in marathon user guide available here http://marathontesting.com/wp-content/downloads/marathonite-userguide.pdf

Send a mail to marathon-testing@googlegroups.com for faster response.

samselikoff commented 10 years ago

I set the name attribute on the frame and it started working. Thanks!