有誰知道是否有任何計劃支持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