【问题标题】:Automating a page that uses jQuery drag and drop with Selemium Webdriver使用 Selenium Webdriver 自动化使用 jQuery 拖放的页面
【发布时间】:2012-08-04 23:26:36
【问题描述】:

当我使用 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=""/>

【问题讨论】:

    标签: jquery ruby selenium automated-tests


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 2023-03-03
      • 2019-05-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-12-06
      • 1970-01-01
      • 2012-01-14
      相关资源
      最近更新 更多