squish - Identify table cells by column name -


let's have following table:

 |a|b|c| |1|2|3| |4|5|6| 

to modify value (from 2 7) (row 1, column 2) used following line:

mouseclick(waitforobjectitem(":dummy_jtable", "0/1")) type(waitforobject(":dummy_jtable"), "7") 

... if new feature introduced in sw, let's column d between a , b, upper mentioned code put 7 in new column d.

is there way type values somehow related column names/text (table header)?

updated: i'm using squish 5.1.3 python.

from telling, don't believe there is. could write function, reads table items, , returns 1 looking for. example:

children = object.children(":dummy_jtable") counter in range(len(children)):     cell_value = children[counter].text     if cell_value == "searched cell value":         mouseclick(waitforobjectitem(":dummy_jtable", children[counter]))         type(waitforobject(":dummy_jtable"), "7") 

"searched cell value" = value expect in cell.

i have problem software test, , because encounter gui changes, must use kind of functions, tho` using cell/row easier.


Comments

Popular posts from this blog

android - Pass an Serializable object in AIDL -

How to provide Authorization & Authentication using Asp.net, C#? -

How to use Authorization & Authentication in Asp.net, C#? -