01-16-2017, 07:09 PM
Hello,
I am trying to automate Java based application using HP UFT. In a JTable, there are two levels of table headers where second level is repeating more than once and first level are unique as shown in attached screenshot. When i try to identify table, only second level column headers are being retrieved. How to get values of first level header? Because i want to type in values in each column. With out getting values from First level header, it is not possible to identify cells correctly, because the number of columns are dynamic.
[img]data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAYUAAAAnCAIAAABv4sNOAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAARQSURBVHhe7ZptepswEIRzrhwo58lpcpimPYs77A4gJExs6yuIeR//GEBoZ/F0mza8/fn7Tx999NGn1+cWMM0jSiGe5+3tjUqI54nyo3kkstA8EjloHomSaB6JHC47j74+0PrHF49u35/vm+NX2dknqjQ2UZ7GpUV+rAa5SIDQKZWheZRJtI8fFtn5HKBVqsGpnp9wRyv2/vltS4YGfVIZmkeZJCki+TufA7RKNTht/j6bucxAivKjeeQEoyRMga8iwYXl/MdnsA82gSiV1HOAVqkGp0F+Vq6TIbRJZVxsHsX4N26XmJZEMxR31jBYYXKuk6UJtEo1OPalx9TID7AF14gQ+qQy9PPRNiq8sBwBRsZI16fTJz0zMmiVanCa5cevXyVA6JTK0Dza5GVhDQ6js4Zkm6A0TzsJGxi0SjU4jfLjx+E8Gxs0S2VoHvHKTgI2dwSLNuvjPO2dGRm0SjU4TfJjly6TnQm0S2VoHoEwIHHOXPrZnfW+Jtg3TtjooFWqwWmQHz+YJ9U1QMNUhuaRw1wY66LgrP8iZM7KnK+9349EOw8OWqUanOr5Wc4tXGEyoU0q4zrzSFQhypMQT6F5JEqieSRy0DwSJdE8EjnszCOcEkKILnAUGaf/+Sjq53TIf1/kvy+Rf82jzsh/X+S/L5F/zaPOyH9f5L8vkf9kHoUvUvz8Es3OuzbRexq1QTEqJ8P//jsklUEtKifDf/ACSzP7Jf07ys9ToBaVc/L8bObRNh1+dPxO1vaOtaM+/eT4D++177TRy2ioRJXnn0GcZEv75fyvh+GZ6qAYVZ7/8F7l53FQisoI55H5mLt5jORbIM/tkgOKUeX6D2j4jVTwf6epOpTzr/y8QgX/vfIzEcyjH9pxl86yKsoTRNNmAIpR5fpfadkDClEV8/9CLl8HpaiUn5mWPaAQ1dnzY6zz6PAhmkVeDBemNx1uUwEUc1HIPwgXVweVXBTy3zRMANVcFPJ/uE0FUMxFIf9A+XkCVKMyHptHZnL9+XM9TG86fCwVQDEXhfz7xXYNoJaLUv5BtLwqqOSikP+jbWqAYi5KPX+72K4B1HJRyj+IllcFlaiMh/69Frs+6ufosdQAxahK+PfjRl+FgXJUZZ6/sS6oDgpRlfF/p6NqoBhVCf9+rPw8DgpRGY/9f3bk76ifOx1WA8Wo8v3b+YbeJ1CQKt//wv2dioNCVGX8Kz/PgYJU+f4X7u9UHBSiMsJ5FLnzI+8ifNLhqrSfOx1WA8Wocv37mvVbawNKUuX5T1bP21QGlajy/M+kZ+qCYlS5/pWfV0AlKmMzjybcOQk9uWFnOR/25qRn6oJiVM6r/sPLTptkoRCVk/H8g1vb/alAMSpH+ZlRfh4BxaiMZB6djaif0yH/fZH/vkT+NY86I/99kf++RP41jzoj/32R/75E/qd5hFNCCNEFjiLj3MNVCDESmkdCiN+C5pEQ4regeSSE+B3cbv8BJ9kMF/tWOoIAAAAASUVORK5CYIIA[/img]
I am trying to automate Java based application using HP UFT. In a JTable, there are two levels of table headers where second level is repeating more than once and first level are unique as shown in attached screenshot. When i try to identify table, only second level column headers are being retrieved. How to get values of first level header? Because i want to type in values in each column. With out getting values from First level header, it is not possible to identify cells correctly, because the number of columns are dynamic.
[img]data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAYUAAAAnCAIAAABv4sNOAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAARQSURBVHhe7ZptepswEIRzrhwo58lpcpimPYs77A4gJExs6yuIeR//GEBoZ/F0mza8/fn7Tx999NGn1+cWMM0jSiGe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