try { for(int j = 0; j<cellcountforcustomers-1; j++, customerrow++) { cell c2 = sheetforgroups.getcell(customercolumn, customerrow); string clientuserid = c2.getcontents(); if(c2.gettype() == celltype.empty){ customercolumn = 0; break; } driver.findelement(by.id("clientuserid1")).clear(); driver.findelement(by.id("clientuserid1")).sendkeys(clientuserid); driver.findelement(by.id("add")).click(); } } catch (arrayindexoutofboundsexception e) { e.printstacktrace(); } i'm trying read excel file using jxl extension. somehow, when excel file ends , there no more cells further, not catch index out of bounds. doing wrong?
try { toast.maketext(context, "cood in try", 1).show(); } catch(exception e) { toast.maketext(context, "cood in catch", 1).show(); }
Comments
Post a Comment