0

Seleniumで何かをドラッグアンドドロップすると、cssが更新されていないようです。

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

ドラッグアンドドロップは問題なく動作しています。サポートされていない場所にドラッグすると、跳ね返るようなものです。私の知る限り、ページはjQueryの「ソート可能」を使用しています。以下は、自動化しようとしているページのセクションの 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 に答える