It is a standard UI pattern to have actions (checkbox, link, etc) associated 
with rows in a table.  What support does WebTest provide to simulate these user 
actions?  If this is not currently supported, what would be the proposal and 
what would be the process of adding this support?  

Thanks

Viraf





________________________________
From: Viraf Bankwalla <[email protected]>
To: [email protected]
Sent: Tuesday, April 14, 2009 7:37:44 AM
Subject: [Webtest] Working with tables and their content


Hi, I have a test that performs a search that returns results in a table.  I 
want to be able to select a link in one of the table rows.  The ID's are 
generated through application so I do not have an expression to search on.  

Using HtmlUnit code I :


        1. Got the HtmlTableBody using getHtmlElementById
        2. Could determine the # of rows returned by tableBody.getRows().size()
        3. Selected a HtmlTableRow using get(rowNum)
        4. Select a cell using row.getCells().get(column)How do I achieve the 
above in WbTest.  Basically, I am want to get a specific column in a row.  The 
row is randomly selected.  In the implementation, the selected column is 
actually a link so one could use clickLink.

Thanks


      

Reply via email to