Home Forum
 
Welcome, Guest
Please Login or Register.    Lost Password?

This is the RIATest discussion forum. Its purpose is to share experiences amongst the ever-expanding RIATest user community. Welcome if you are a newcomer !

Please note that whilst RIATest staff welcome and may occasionally participate in discussions, the forum is not intended to be the recognised channel for obtaining official support. Customers with support contracts are asked always to contact the support desk directly to obtain official, company support.

Go to bottom Favoured: 0
TOPIC:
#2523
Can I select SparkItemRenderer based on its location (array) 1 Month, 3 Weeks ago  
I can select the 'Delete' button in any row from list of items as follows: -
SparkItemRenderer("Ali Warsame | Ali Warsame | 16/07/2010 17:09 | **")->SparkButton("Delete");

But I can't guarantee the date bit so is there a way that I can select specific SparkItemRenderer like : select array[2]?

I have a FlexDataGrid that contains number of SparkItemRenderer so I would like to select the second item with in the FlexDataGrid then click the 'Delete' button.

FlexDataGrid=>SparkItemRenderer[1]->SparkButton("Delete")=>click();

Thanks in advance.
Warsame (User)
Posts: 11
graphgraph
User Offline Click here to see the profile of this user
Logged Logged  
 
The administrator has disabled public write access.  
#2531
Re:Can I select SparkItemRenderer based on its location (array) 1 Month, 3 Weeks ago  
This should do it:
Code:


var columnName = "login"; // column name of your grid
var rowIndex = 1;
SparkItemRenderer(/.*/,columnName+":"+rowIndex)->SparkButton("Delete")=>click();



See also www.riatest.com/onlinedocs/v3/RIATest/WorkingWithGrids.html for more on referencing grid cells by index or by value.
RIATest (Admin)
Admin
Posts: 1150
graph
User Offline Click here to see the profile of this user
Logged Logged  
 
RIATest Team.
=====================
Please vote for RIATest and help it to be named the Best automated test tool for Flex here: www.automatedtestinginstitute.com/home/i...id=10&Itemid=183
 
The administrator has disabled public write access.  
#2540
Re:Can I select SparkItemRenderer based on its location (array) 1 Month, 2 Weeks ago  
Thanks for you post but I solved my issue using RegExp.

e.g. SparkItemRenderer(/Ali/ )->SparkButton("Delete")=>click();

Thanks,

Ali
Warsame (User)
Posts: 11
graphgraph
User Offline Click here to see the profile of this user
Logged Logged  
 
The administrator has disabled public write access.  
Go to top