Hi there,
I was wondering how can I select item in grid, based on particular text.
On left grid I've grabbed it by executing:
Code:
stpo.Analizatoriekran.gridNazivAnalizatora().contentLike('Cxxxxxxx').click();
grids.png
and interesting is engine picked 5th element in list, even though all which starts with C have same string ("Cxxxxxxx").
I tried same action with grid on right hand side, but couldn't manage to grab it, engine behaves like it hovers it and clicks on empty space (right beneath items, even though I gave it argument of string which should it locate, let's say:
Code:
stpo.PAGEOBJECT.SOMENAMEOFGRID().contentLike('Sencha').click();
while "Sencha" is on the list.
Later on when I tried with recorder, but realized that it only captures items by row index like:
Code:
ST.play([
{ type: "tap", target: "core-view-component-MultiselectGrid[fieldLabel=\"SOME_LABEL_OF_GRID\"] => [data-recordindex=\"2\"]", x: 106, y: 11 }
]);
So my first question is, why it chooses 5th element even though there are many more elements containing same string before.
Is there any better function to select element inside grid (multiselect grid) than .contentLike('SOMESTRING').click();
Is there option to grab element in recorder based on text, rather on index:
Code:
ST.play([
{ type: "tap", target: "core-view-component-MultiselectGrid[fieldLabel=\"SOME_LABEL_OF_GRID\"] => [data-recordindex=\"2\"]", x: 106, y: 11 }
]);
Thank you in advance