0

当我使用 Selenium 拖放某些东西时,似乎 css 没有更新。

    $driver.action.click_and_hold(item).move_by(0 , distanceToDrop).release.perform

拖放工作正常。就像您将其拖到不受支持的位置并弹回一样。据我所知,该页面正在使用 jQuery “sortables”。下面是我试图自动化的页面部分的 HTML。

    <p class="hint">Drop and drag the categories to the order they should appear on the screen.</p>

    <div class="sortables " id="yw0">
    <div class="sorted_items" id="4">Sample Inputs</div>
    <div class="sorted_items" id="3">Social Media Information</div>
    <div class="sorted_items" id="2">Numbers of Computers</div>
    <div class="sorted_items" id="1">Category 1</div>
    </div><form id="organize-categories-form" action="/listCustomFieldCategories/index" method="post">  <input type="hidden" id="new_order" name="new_order" value=""/>
4

1 回答 1

1

这似乎是 Selenium-WebDriver 中的一个错误: http ://code.google.com/p/selenium/issues/detail?id=5149

于 2013-05-13T07:50:14.100 回答