WatiN - Firefox and chrome support

Does anyone know if there is any plan to support the latest versions of firefox (> 3.6) WatiN? Since currently I feel that it only supports the whole version of IE. It only supports Firefox 2.x - 3.6 (http://watin.org/documentation/setting-up-firefox/)

thanks

+3
source share
2 answers

As a recent post on the WatiN forum (sorry, no link). Jeroen (WatiN conceptor) proposed making WatiN compatible with FireFox (or another browser) using the Selenium web driver.

The problem arises from the JSSH plugin, which WatiN depends on the management of FireFox, which is currently not supported / compatible with FireFox version> 3.6.

But there is no compromise when it will be done, if it will be done at all.

+3
source

I got a solution working with a new jssh plugin called mozrepl-jssh ! plugin. It works great with the FF 17 ESR version that I was able to execute.

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(); } } } 

The only problem I encountered is that clicking the login button gives a TimeOutException if the page is not loaded properly. Hope this helps someone who wants WATiN to work on the latest version of Firefox.

Regards, Rahoolm

+2
source

Source: https://habr.com/ru/post/1337125/


All Articles