Selenium Webdriver - 滑块不能按照excel

时间:2016-11-11 15:39:02

标签: java excel selenium

我想基于excel(Apache POI)

的值在页面中移动Slider

在Excel中,我将answer_weight的值设为" 98"

这是我使用的代码。当我运行代码时,Slider设置为" 53"但我想将滑块设置为98.你能帮忙吗

    Actions action = new Actions(driver);
    action.click(answerweight).build().perform();
    for (int i = 100; i >= answer_weight; i--) 
    {
        action.sendKeys(Keys.RIGHT).build().perform();
     }

0 个答案:

没有答案