-
Selenium webDriver拖拽问题,大神些进来帮我看看5
拖拽前:
<tr id="t1">
<td id="layoutCol0_0" class="colBox" align="center" colspan="2">
<div class="colTitle">Wide Display Area</div>
<div class="targetMarker"></div>
</td>
</tr>
<tr id="t2">
<td id="layoutCol1_0" class="colBox" align="center" colspan="1">
<div class="colTitle">Narrow Display Area</div>
<div class="targetMarker"></div>
<div class="dragBox dragBoxCaption dragBoxTable" style="left: 0px; top: 0px;">System Information</div>
<div class="targetMarker"></div>
</td>
</tr>
拖拽后要达到的效果是这样的:
<tr id="t1">
<td id="layoutCol0_0" class="colBox" align="center" colspan="2">
<div class="colTitle">Wide Display Area</div>
<div class="targetMarker"></div>
<div class="dragBox dragBoxCaption dragBoxTable" style="left: 0px; top: 0px;">System Information</div>
<div class="targetMarker"></div>
</td>
</tr>
<tr id="t2">
<td id="layoutCol1_0" class="colBox" align="center" colspan="1">
<div class="colTitle">Narrow Display Area</div>
<div class="targetMarker"></div>
</td>
</tr>
两个tr是平行.
我打算把id="t2"里面红色的那个div拖到 id="t1"上面去,使其和id="t2"的tr一样,实现拖拽的目的,可是我怎么拖也不成功下面是我试过的方法:
Actions actions = new Actions(driver);
Action action;
actions.clickAndHold(sysInfotext).moveToElement(desPos).release(desPos);
action = actions.build();
action.perform();
还有就是(new Actions(driver)).dragAndDrop(sysInfotext, desPos).perform();
我都试过可是都实现不了,我都不知道怎么办了,
求大神帮忙,如需方便加QQ158338582谢谢大家!
2013年5月31日 14:06
目前还没有答案
相关推荐
本书是一本从入门到精通模式的Selenium WebDriver实战经验分享书籍。全书共分为四个部分:第1部分基础篇主要讲解自动化测试相关的基础理论、WebDriver 环境安装、单元测试工具的使用方法以及 WebDrvier的入门使用...
关于Selenium WebDriver工作原理的介绍,原理相关描述
selenium RC与selenium webdriver的区别
selenium webdriver是web自动化的一本经典著作,吴老集合python java不同版本。本资源为java版本,内容较新,无论是入门还是提升都有很大帮助。
Selenium WebDriver 3.14.0 本来需要.net45 我改为.net2.0 希望喜欢的人需要。 dll 反编译,嵌入程序内。无需调用那个讨厌的dll。 绝对不骗人,骗人是小狗。架构复杂修改麻烦,各位体谅
Selenium WebDriver 3 Practical Guide will walk you through the various APIs of Selenium WebDriver, which are used in automation tests, followed by a discussion of the various WebDriver implementations...
Selenium WebDriver Practical Guide will guide you through the various APIs of WebDriver which should be used in automation tests, followed by a discussion of the various WebDriver implementations ...
seleniumwebdriver(python) (第三版)
selenium webdriver基于python源码案例,全是案例适合小白入门学习
Selenium WebDriver 学习笔记 API大全 中文API 元素 操作大全
selenium2.0自动化
自动化测试:Selenium webdriver学习笔记C#版
Selenium WebDriver Recipes in C#(2nd) 英文epub 第2版 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络,如有侵权,请联系上传者或csdn删除
selenium WebDriver 安装包及启动服务的一些命令 对于正在学习自动化测试的小伙伴们非常有用
Selenium Webdriver自动化测试 operadriver win64位,最新版本(20150611)
对于Selenium更加详细的操作和使用,推荐一本书《selenium webdriver(python)第三版》,该书详细的讲解了webdriver的用法
selenium webdriver2 环境搭建
Selenium WebDriver + ReportNG 中文乱码问题解决方案。
悠悠的selenium webdriver基于python源码案例,全是案例适合小白入门学习,现在有的资源都是只有4章
在idea里配置selenium webdriver自动化测试环境的完整教程。