selenium - Reading from login.xls file and append results in same file? -


 workbook workbook = workbook.getworkbook(new file("c:\\users\\tsss-pc1\\desktop\\login.xls"));          sheet sheet = workbook.getsheet(0);         string uname = sheet.getcell(0, 0).getcontents();         d.findelement(by.id("inputemail")).sendkeys(uname);         string pwd = sheet.getcell(1, 0).getcontents();         d.findelement(by.id("inputpassword")).sendkeys(pwd);         d.findelement(by.xpath("//div[3]/div/button")).click(); 

this code reading user name , password login.xls, want append results in third column in same file.

   writablecell label = new label(2,0, "pass");         writablesheet sheet1 = null;         sheet1.addcell(label); 

i tryed code, it's not working me.. can 1 tell me, how this...

writableworkbook workbook = workbook.createworkbook(new file("d://output6.xls"));         writablesheet sheet = workbook.createsheet("first sheet", 0);              label label = new label(0, 0, "pass");               sheet.addcell(label);                                    workbook.write();                      workbook.close();                   } 

Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -