【发布时间】:2014-05-20 00:12:33
【问题描述】:
我正在尝试在 selenium webdriver 中导入数据驱动框架。
string passValue;
passValue = xlData[row][col];
for (int row = 1; row < xlData.length; row++) {
for(int col = 0; col < xlData[0].length; col++) {
wt.until(ExpectedConditions.elementsTobeclickable(By.cssSelectors("option[value=passValue]"))).click();
//How To pass value in above line of code?
}
}
//same question for the xpath as well
【问题讨论】:
-
很难弄清楚你想要什么。你能重申一下你特别想做什么吗?
标签: selenium xpath css-selectors