Discussion:
[abbot-users] How to click check box in the table on Abbot automation framework
thangaraj
2016-07-15 12:31:20 UTC
Permalink
Am automating window application using abbot frame work. In that
application have summary page that contains check boxes. I want to click
that check, But unable to works for my code. Please any one help me.

My code (xml file) :-

<?xml version="1.0" encoding="UTF-8"?>
<AWTTestScript desc="Menu selections">
<component class="javax.swing.JButton" id="OK" index="2" tag="OK"
title="My Code" />
<component class="javax.swing.JMenuItem" id="Job" tag="Job" title="My
Code" />
<component class="javax.swing.JMenuItem" id="Open Job" tag="Open Job"
title="My Code" />
<component class="javax.swing.JMenuItem" id="DMS-100" tag="DMS-100"
title="My Code" />
<component class="javax.swing.JButton" id="Yes" index="2" tag="Yes"
title="My Code" />

<component id="JTable Instance" class="javax.swing.JTable"
parent="JViewport Instance" index="0" title="My Code" />
<component id="JViewport Instance" class="javax.swing.JViewport"
parent="JScrollPane Instance" index="0" title="My Code" />
<component id="JScrollPane Instance" class="javax.swing.JScrollPane"
parent="My Panel3" index="7" title="My Code" />
<component id="My Panel1" class="javax.swing.JPanel" name="My Panel1"
parent="My Panel2" index="0" title="My Code" />
<component id="My Panel2" class="javax.swing.JPanel" name="My Panel2"
parent="My Panel3" index="0" title="My Code" />
<component id="My Panel3" class="javax.swing.JPanel" name="My Panel3"
parent="My Panel4" index="0" title="My Code" />
<component id="My Panel4" class="javax.swing.JPanel" name="My Panel4"
parent="JOptionPane Instance" index="0" title="My Code" />
<component class="javax.swing.JOptionPane" id="JOptionPane Instance"
parent="My Panel5" />
<component id="My Panel5" class="javax.swing.JPanel" name="My Panel5"
parent="Jlayered Pane" index="0" title="My Code" />
<component id="Jlayered Pane" class="javax.swing.JLayeredPane"
name="Jlayered Pane" parent="Jroot pane" index="1" title="My Code" />
<component id="Jroot pane" class="javax.swing.JRootPane" name="Jroot
pane" index="0" title="My Code" />
<component id="Jdialog" class="javax.swing.JDialog" name="Jdialog"
parent="Jfram" index="0" title="My Code" />
<component id="Jfram" class="javax.swing.JFram" name="Jfram" index="0"
title="My Code" />


<fixture filename="MyCode-fixture.xml" />
<action args="OK" class="javax.swing.JButton" desc="Click button 'OK'"
method="actionClick" />
<action args="Job" class="javax.swing.JMenuItem" desc="Select menu item
'Job'" method="actionSelectMenuItem" />
<action args="Open Job" class="javax.swing.JMenuItem" desc="Select menu
item 'Open Job'" method="actionSelectMenuItem" />
<action args="DMS-100" class="javax.swing.JMenuItem" desc="Select menu
item 'DMS-100'" method="actionSelectMenuItem" />
<action class="javax.swing.JTable" args="JTable Instance,[1,3]"
method="actionSelectCell" />
<action args="Yes" class="javax.swing.JButton" desc="Click button 'Yes'"
method="actionClick" />

</AWTTestScript>
Abbot Framework issue:-

abbot.finder.MultipleComponentsFoundException: Could not distinguish
between 3 components using

This is likely because either:

The component is not yet visible on the screen, consider using a wait for
component visible
The component reference no longer matches, consider re-recording the
reference
The component cannot be easily uniquely identified, consider whether this
component should have a JLabel associated with it or setting the Name
property in order to distinguish it from other components.
(1) DConvUI/JFrame( Data Converter ):JDialog( NDS Active DMS100 Job Listing
):JrootPane:JlayeredPane:Jpanel:JoptionPane:Jpanel[0]:Jpanel(OptionPane.rea
lBody):Jpanel(OptionPane.body):Jpanel:JscrollPane:Jviewport:Jtable:
javax.swing.JTable[,0,0,800x704,alignmentX=0.0,alignmentY=0.0,border=,flags
=251658568,maximumSize=,minimumSize=,preferredSize=,autoCreateColumnsFromMo
del=true,autoResizeMode=AUTO_RESIZE_SUBSEQUENT_COLUMNS,cellSelectionEnabled
=false,editingColumn=-1,editingRow=-1,gridColor=javax.swing.plaf.ColorUIRes
ource[r=122,g=138,b=153],preferredViewportSize=java.awt.Dimension[width=800
,height=300],rowHeight=16,rowMargin=1,rowSelectionAllowed=true,selectionBac
kground=javax.swing.plaf.ColorUIResource[r=184,g=207,b=229],selectionForegr
ound=sun.swing.PrintColorUIResource[r=51,g=51,b=51],showHorizontalLines=tru
e,showVerticalLines=true]

Loading...