-4
代碼使用:如何獲得在數組中的文本和硒的webdriver比較在Excel中數據的價值
int n = 0;
int a[10] = null;
for(int i=1;i<n;i++)
{
a[i] = driver.findElement(By.xpath(".//*[@id='steplist']/li[n]")).getText();
System.out.println("/userID ="+a[i]);
}
請幫我把字符串轉換和INT的,我怎麼能得到李的所有值並存儲在n?
您不能轉換webelement以字符串或int – Sagar007 2015-01-01 13:41:07