Selenium点击不能与GWT一起使用 [英] Selenium clicks not working with GWT

查看:177
本文介绍了Selenium点击不能与GWT一起使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我运行GWT OBF(因此不是问题),但是当我使用Selenium(同时尝试IDE和RC)时,我的点击没有被记录。我尝试点击的组件是< div> ,但没有任何反应。 在IDE中,我有时(非常少见,如50个点击中的一个)能够在不同的标签上注册点击(包含在< div> 中),但无法重播任何由此产生的点击进行测试。帮助!?!

解决方案

这是 GWT 2.0的硒测试,但这里是我的答案。



不幸的是,看看这种情况下,我一直无法用Selenium复制点击。我看到许多人抱怨说他们不能在GWT中使用Selenium,而其中一个更着名的团队也有这个问题。 Google Wave开发团队已经开始使用WebDriver来测试他们的代码。



现在好的一点是,目前有一个项目将Selenium和WebDriver合并,因为他们有优势,弱点和其中一些是在不同的领域,所以最终的产品将是惊人的。我相信他们可能有一个谷歌代码WebDriverBackedSelenium的工作版本,所以所有你需要做的是更新Selenium的实例化,它应该开始使用WebDriver代码来运行你的测试。


I run GWT OBF (thus this isn't the problem), but when I use Selenium (tried both IDE and RC) my clicks don't get recorded. The component I'm trying to click is a <div>, but nothing happens.

For instance, in IDE I am sometimes (very seldom, like one in 50 clicks) able to register a click on different tabs (contained in <div>), but never able to replay the test with any resulting click. Help!?!

解决方案

This is a duplicate of Selenium Testing of GWT 2.0 but here is my answer again.

Unfortunately having a look at this case I have not been able to replicate clicking with Selenium. I have seen a number of people complaining that they can't use Selenium with GWT and one of the more famous teams have that issue. The Google Wave development team have started using WebDriver to test their code.

Now the good thing is that there currently a project to merge Selenium and WebDriver as they have their strengths and weaknesses and a number of them are in different areas so the final product will be amazing.

I believe that they may have a working version of the WebDriverBackedSelenium at Google Code so all you would need to do is update the instantiation of Selenium and it should start using the WebDriver code to run your test.

这篇关于Selenium点击不能与GWT一起使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆