Forum Discussion

abrar22's avatar
abrar22
Frequent Contributor
7 years ago

Multiselect Rows in table

Hi,

 

I have scenario where I want to multiselect 2 rows (One current highlighted in black and other its previous row). I don't want to hard code the values for the rows from object browser as it may change but it will always be current highlighted row and second its previous row which i want to multiselect. Is there any function for it?

 

See attached.

 

A

2 Replies

  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor

    The "Click" method available in TestComplete for any and all UI components has a parameter for whether or not the shift key is selected.  Have you looked into using that?

  • AlexKaras's avatar
    AlexKaras
    Champion Level 3

    Hi,

     

    Also, depending on the used table control/component, you may consider to use its native methods to select this or that row.