无法使用excel将数据放入appium中

时间:2017-09-14 10:25:01

标签: selenium automation appium jxl

以下是我正在使用的代码:

 @Test 
 public void excel() throws JXLException, IOException  
{

 String FilePath = "C://Users//QA Rahul Singh//Desktop//dat.xls";
 FileInputStream fs = new FileInputStream(FilePath);
Workbook wb = Workbook.getWorkbook(fs);
Sheet wrksheet = wb.getSheet(0);
 String data = wb.getCell("A1").getContents();
 driver.findElement(By.id("inputUsername")).sendKeys(data);
 driver.findElement(By.id("btnRegisterUser")).click();  

 }

0 个答案:

没有答案
相关问题