有谁知道是否有任何计划支持WatiN的Firefox后期版本(> 3.6)?目前我觉得它只支持所有版本的IE。 它仅支持Firefox 2.x的 - 3.6(http://watin.org/documentation/setting-up-firefox/)WatiN - 支持firefox和chrome
感谢
有谁知道是否有任何计划支持WatiN的Firefox后期版本(> 3.6)?目前我觉得它只支持所有版本的IE。 它仅支持Firefox 2.x的 - 3.6(http://watin.org/documentation/setting-up-firefox/)WatiN - 支持firefox和chrome
感谢
最近的一个岗位上华廷论坛(抱歉,没有链接) Jeroen(WatiN conceptor)建议使用Selenium的网络驱动程序将WatiN与FireFox(或其他浏览器)兼容。
问题来自JSSH插件,WatiN依赖于控制FireFox,目前FireFox版本不支持/兼容> 3.6。
但是,如果完成的话,在完成这件事时没有任何提议。
我得到了解决方案与jssh新插件叫mozrepl-jssh!插入。 它能正常工作,FF 17 ESR版本能够做测试。
using Microsoft.VisualStudio.TestTools.UnitTesting;
using WatiN.Core;
using WatiN.Core.Logging;
using System;
namespace TestProject
{
[TestClass]
public class FFTestJssh
{
private static FireFox ff = new FireFox("www.google.co.in");
[TestMethod]
public void TestMethod1()
{
//
// TODO: Add test logic here
//
ff.GoTo("http://machine/loginpage");
ff.TextField(Find.ByName("login_name")).TypeText("Test");
ff.TextField(Find.ByName("login_password")).TypeText("Secret");
try
{
ff.Button(Find.ByText("Login")).Click();
}
catch (TimeoutException te)
{
var str = te.Message;
Logger.LogAction("Time out happened" + str);
}
ff.WaitForComplete();
}
}
}
我现在面临的唯一问题是在登录按钮的点击是给TimeOutException
如果页面无法正常加载。 希望对于那些希望WATiN能够使用Firefox最新版本的人有所帮助。
问候, Rahoolm
对此有何更新? – atwellpub
我认为最好是使用硒webdriver,因为他们每次更新他们的浏览器时更新他们的代码。 Watin最后更新于2011年。 – PHPGuru