Testing jQuery Drag & Drop and Droppable with Selenium

后端 未结 1 1954
甜味超标
甜味超标 2021-01-03 05:26

I have a page that makes use of jQuery Drag & Drop, and I would like to build a relatively robust test suite for this process using Selenium.

Looking into Seleni

相关标签:
1条回答
  • 2021-01-03 05:32

    This works for me...

    <!--test sorting-->
    <!--move block 2 to col 1-->
    <tr>
        <td>mouseDownAt</td>
        <td>//div[@id="block-set-col-1"]/ul/li</td>
        <td>80,20</td>
    </tr>
    <tr>
        <td>mouseMoveAt</td>
        <td>//div[@id="block-set-col-0"]/ul</td>
        <td>50,10</td>
    </tr>
    <tr>
        <td>mouseOver</td>
        <td>//div[@id="block-set-col-0"]/ul</td>
        <td>50,10</td>
    </tr>
    <tr>
        <td>pause</td>
        <td>2000</td>
        <td></td>
    </tr>
    <tr>
        <td>mouseUpAt</td>
        <td>//div[@id="block-set-col-0"]/ul</td>
        <td>50,10</td>
    </tr>
    
    0 讨论(0)
提交回复
热议问题