testing - How to validate the number of columns in a table? -
i trying validate number of columns generated in table through ranorex. example car being bought , payment done in 12 installments. application divide amount in 12 equal installments , display them in table. have put screenshot in report. show there 12 columns in table. how can achieve this..please help.
get xpath table spy tool. , add usercode method.
public void testmethod() { var rows = host.local.find<trtag>("/dom[@caption='tryit editor v3.0']//iframe[#'iframeresult']/?/?/table/tbody/tr"); int rownum = 0; foreach (var row in rows) { rownum++; } report.info("total rows: " + rownum); }