Gaurav Suri | 29 May 2012 10:55
Picon

MultipleComponentsFoundException

Hello,

While trying to execute a test script , I am getting the following exception:
Could not distinguish between 5 components using <component
class="javax.swing.JTable" id="JTable Instance" index="0"
parent="JViewport Instance 2" window="PegaBase /radio 2012.1.0.0" />

abbot.finder.MultipleComponentsFoundException: Could not distinguish
between 5 components using <component class="javax.swing.JTable"
id="JTable Instance" index="0" parent="JViewport Instance 2"
window="PegaBase /radio 2012.1.0.0" />:

What  could be the reason ?

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
Gerard Davison | 8 Jun 2012 13:08
Picon
Favicon

Re: MultipleComponentsFoundException


Hi,

This has always been an ambiguous message, normally the problem is that component in question isn't
visible on the screen currently and you might need to add a wait for component to be visible before you can
move forward. The other scenario is that the component in question just don't have any distinguishing
features, you might have more than a few tables in screen at any one time that don't have Label components
attached nor have the "Name" property attached to them. You might need to modify the code slightly to make
it easier to find the components.

I will try to improve the message than comes with this exception,

Gerard

On 29 May 2012, at 09:55, Gaurav Suri wrote:

> Hello,
> 
> While trying to execute a test script , I am getting the following exception:
> Could not distinguish between 5 components using <component
> class="javax.swing.JTable" id="JTable Instance" index="0"
> parent="JViewport Instance 2" window="PegaBase /radio 2012.1.0.0" />
> 
> abbot.finder.MultipleComponentsFoundException: Could not distinguish
> between 5 components using <component class="javax.swing.JTable"
> id="JTable Instance" index="0" parent="JViewport Instance 2"
> window="PegaBase /radio 2012.1.0.0" />:
> 
> 
> What  could be the reason ?
(Continue reading)


Gmane