-
lysergic-acid
c# automation watin ui-automation
We are working on automation various different web/client applications, using several different frameworks (WatiN, Ranorex for example).My question is — what are the for/against for storing the actual object identification (the properties used to identify it at runtime) in the code (using attributes or whatever other mechanism), or extracting it to an external configuration file that will be read by the code executing.
-
Chris
watin tfs2010
I have created a suite of WatiN tests and added them into Source Control. My team are new to using TFS and I am looking at how I can get the tests to run as part of a TFS Build that will build all the projects concerned, run our suite of Unit Tests and ran the Automated UI Tests created using WatiN.At the moment, everything detailed previously gets done when the build is ran apart from the Automated UI Tests.When editing the Build Definition, in the process section I set the Automated Tests to r
-
Gustavo Mori
c# list watin selectlist
I need to add a new option to a selectList in one of my unit tests, and I can’t figure out how to do it.The Dropdown currently has 2 options, I want to add a third, and use it.I tried to use JavaScript injection using http://stevenharman.net/blog/archive/2007/07/10/add-option-elements-to-a-select-list-with-javascript.aspx as a base, but that failed. I get exceptions that crash the IE browser every time, and the text “RunScript failed” gets printed into my logs even though I don’t use that text i
-
Nirmal
watin scheduled-tasks
I have developed an application using watin to test a website. I run the job every 15 minutes, and as long as I was running this with an admin account on the Windows 2008 server, there were no issues. Recently, I tried changing this to an local computer account(with remote login rights only), and after that every time the scheduler runs the EXE, it opens up 2-3 IE windows instead of the 1 that it is supposed to. I think it is not able to get a handle on any of the windows, and hence the applicat
-
metro
c# firefox watin
Using WatiN, Im facing some issues with FireFox FF = new FireFox (“http://www.google.com”);, FireFox always crashes at this point and VS report :Unable to read data from the transportconnection: An existing connection wasforcibly closed by the remote hostany idea why this is happening ?Win7 32Bit – VS2008 – .NET 3.5 – Firefox 3.5 – WatiN-2.0.10.928-net-2.0
-
Dmitri Nesteruk
c# .net watin web-scraping web-mining
I want to mine large amounts of data from the web using the IE browser. However, spawning lots and lots of instances of IE via WatiN crashes the system. Is there a better way of doing this? Note that I can’t simply do WebRequests – I really need the browser due to having to interact with JS-driven behaviors on the site.
-
romaintaz
internet-explorer testing teamcity watin
We are using Team City and I noticed problem during running Watin test. Sometimes some instance of IE randomly just don’t stop in task manager on build server, even if test closes all opened instances. This causes failure of all tests that follows. We tried with script that kills all instances of ie before this test starts runing, but that can’t prevent random unstopped instances of ie that crashes all tests.
-
GEOCHET
visual-studio nunit watin
I am trying to use Dialog handler twice in a function. For first time it executes well but on second time it hangs the system with dialog box open and showing Ok and Cancel butoon but never able to click it. Also it times out with an error “Dialog not available within 60 seconds”Dim cdhPopup As ConfirmDialogHandler cdhPopup = New ConfirmDialogHandler() If (ie.Button(Find.ById(“btnDelete”)).Exists) Then’Cancel the booking ‘ie.AddDialogHandler(cdhPopup) ie.Button(Find.ById(“btnDelete”)).ClickNoW
-
Omer Eldan
c# multithreading watin
I am using WatiN to test my website.I would like to open few URLs in the same time, and click on a button in each of them simultaneously.I know that i need to implement it using multi-threading , but my attempt failed.using (var browser =new IE()){var th1 = new Thread(() => { browser.GoTo(“http://www.google.com”); });th1.SetApartmentState(ApartmentState.STA);th1.Start();var th2 = new Thread(() => { browser.GoTo(“http://www.google.com”); });th2.SetApartmentState(ApartmentState.STA);th2.Star
-
Cocoa Dev
c# internet-explorer c#-4.0 watin
I am using WATIN 2.1 with C#. Here is my Code// Should I add something here like [] private void ProcessInkPresenter() {String path = “http://localhost/index.asp?HOSTID=AD&USERID=&ALIAS=” + userName;Int32 startingRow = 1;using (var browser = new IE(path)){browser.AutoClose = true;try{try{browser.Image(Find.ByAlt(“Use a password”)).Click();browser.WaitForComplete(90);browser.TextField(Find.ByName(“_MYPW”)).TypeText(privateCurrentPassword);// the application keeps crashing in the line abov
-
achilles
watin unresponsive
I have been using stackoverflow since WatIn documentation (especially an API) is quite sparse.I am using WatIn to automate inputs to a website on a server to our local netwrok. The device is a test device by another manufacturer and has a few quirks, namely, when it’s powered up it might take a while to load all its internal settings. Times vary.When the C# program starts, I have two threads running. One thread is automatically entering input to the local site on the device and the other one kee
-
Cocoa Dev
c# internet-explorer c#-4.0 watin
I keep getting this on IE6 using Windows XPWatiN.Core.Exceptions.RunScriptException : RunScript failed—-> System.UnauthorizedAccessException : Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))I added my domain to the Trusted Sites but still same issue.This error didn’t happen with Windows 7 64-bit with IE9Here is where it crashesbrowser.Image(Find.ByAlt(“Use a password”)).Click();browser.TextField(Find.ByName(“_MYPW”)).TypeText(privateCurrentPassword); // CRASHES HERE
-
Ankush Roy
c# multithreading datagridview delegates watin
I am stuck with this problem of mine and it will be great help if someone solves this problem for meWhat I am trying to do is :1) Intialize a DataTable datatable in form load event and assign its defaultview to a datagridview dgvresult2) On click of a button start an STA thread (I am actually working with WatIN IE hence the need for making the thread STA ) which calls a method which creates an identical DataTable dt as datatable created in step 1 and then adds 300 rows to this datatable.3) calls
-
user526186
webbrowser-control watin browser-automation
Our target is: Watin-enabled browser testing embedded in a .net winform.Currently, we are using a .net WebBrowser control to embed browser behavior in a winform. We are attaching WatiN to the WebBroswer control on the form with code like this ( thanks prostynick ):var thread = new Thread(() => {Settings.AutoStartDialogWatcher = false;var ie = new IE(webBrowser1.ActiveXInstance);ie.GoTo(“http://www.google.com”); }); thread.SetApartmentState(ApartmentState.STA); thread.Start();The problem is th
-
ngm
nunit jenkins watin specflow
I’m running acceptance tests on a project via SpecFlow, NUnit and Coypu (for browser automation, using the WatiN driver). The running of the tests are invoked via a powershell/psake script.If I run these tests on my local box, they run fine. However, we have a build server on which a Jenkins job will automatically run these tests, and when run via this Jenkins job they don’t execute — they just hang.Looking in task manager I can see there’s two instances of iexplore.exe that are created when
-
eglasius
c# .net testing automation watin
Whenever a dialog appears and there is no attached handler, watin auto closes the dialog. This is helpful when you don’t want to add code for different/several simple confirmations the application might have. The issue is that using this default behavior can cause simple issues to go unnoticed, like a confirmation dialog appearing in the scenarios it shouldn’t.I am looking for a simple way to gracefully fail the tests when unhandled dialogs appear. With gracefully I mean the test stops right whe
-
Baptiste Pernet
internet-explorer-7 watin
I have this code:FileDownloadHandler handler = new FileDownloadHandler(fileName); Browser.AddDialogHandler(handler); //using (new UseDialogOnce(Browser.DialogWatcher, handler)) //{Browser.Button(Find.ById(“ButtonExportReport”)).ClickNoWait();handler.WaitUntilFileDownloadDialogIsHandled(20);handler.WaitUntilDownloadCompleted(30);Console.WriteLine(“download finish: ” + handler.HasHandledFileDownloadDialog); //} Browser.RemoveDialogHandler(handler);And when I call Browser.RemoveDialogHandler, Inter
-
azamsharp
watin
I am getting the following WatiN error: Unhandled Exception: System.IO.FileLoadException: Could not load file or assembl y ‘Interop.SHDocVw, Version=1.1.0.0, Culture=neutral, PublicKeyToken=db7cfd3acb5 ad44e’ or one of its dependencies. The located assembly’s manifest definition do es not match the assembly reference. (Exception from HRESULT: 0x80131040) File name: ‘Interop.SHDocVw, Version=1.1.0.0, Culture=neutral, PublicKeyToken=dbI copied the shDocvw.dll from System32 to the bin directory but
-
Mef
c# browser control watin embedded-browser
I have a c# windows form project using watin.I would love to attach to the web-browser control on a form, is this possible? Is there any sample code on how to attach to the embedded web-browser control.//Looks like this only works for actual IExplorer instances. window = WatiN.Core.Browser.AttachTo<WatiN.Core.IE>(WatiN.Core.Find.ByTitle(“Google”));
-
user2537642
c# nunit watin
Am working on webautomation for some of the applications. I am new to WATIN. Currently am using version: watin 2.1.0.1196 in vs2010. I need to test the applications, which is under submenus in the frame set.-<_html>+<_head>-<_frameset id=”f1″ cols=”0,*” border=”0″ frameBorder=”NO” frameSpacing=”0″>+<_frame name=”mast” src=”mast.htm” frameBorder=”NO” marginWidth=”0″ marginHeight=”0″ noResize=”noresize” scrolling=”no”>-<_frameset id=”f2″ rows=”132,*” cols=”*” border=”0″
-
Dan Snell
watin
I am looking for some suggestions on how to deal with a slight timing issue that I am having with two controls on a page. I have a list box that contains up to 10 items, however the contents of the box can change depending on what characters are entered into the search box. For example: I enter zi into the search box and the list box will begin to populate Zimmerman…The trouble that I am running into is that there is enough of a delay between entering the text and when I use WatiN to click t
-
Clint
windows-7 watin
I have recently updated to Windows 7, VS2010 and IE8. We have an automation suite running tests against IE using WatiN. These tests require the logon dialog handler to be used in order to log different AD Users into the IE Browser. This works perfectly when using Windows XP and IE8, but now using Windows 7 has resulted in the Windows Security dialog box no longer being recognised, the dialogue box is just being ignored. This is the method being used to startup the browser:public static Browser S
-
Johnny Codes
c# javascript .net watin
I am trying to execute some JavaScript using C# eval call. browser.Frames[1].Eval(“myFunctionCall(” + Id + “, 1, ” + RowNumber + “);”);It cannot seem to find the function as it throws a JavaScriptException “The value of the property ‘myFunctionCall’ is null or undefined, not a Function object”Here is the back story. I am trying to automate a click on a grid component that is an activex control. Because it is, I do not have access to its inner working and cannot click directly on a row. So I
-
Chris Kooken
c# automation window watin
I found this code on SO to automatically dismiss a confirm dialog, but it is not working in Firefox.The problem is, var windowButton = new WindowsEnumerator().GetChildWindows(window.Hwnd, w => w.ClassName == “Button” && new WinButton(w.Hwnd).Title == “OK”).FirstOrDefault();Always returns null. Is there another way to get the handle of the dialog button in firefox?public class OKDialogHandler : BaseDialogHandler {public override bool HandleDialog(Window window) {var button = GetOKButto
-
user1706751
watin
Due to unknown reasons, the time it takes to log onto the application has grown significantly. This wouldn’t normally be an issue; however, nothing I do seems to prevent Watin from timing out.After the ‘Log on’ button is clicked, it can take up to 1 minute for the home page to be displayed. I’ve tried a few thigs like:ieInUse.Button(Find.ByValue(“Log On”)).Click();ieInUse.WaitUntilContainsText(“Text on home page”);or something like…ieInUse.Button(Find.ByValue(“Log On”)).Click();ieInUse.WaitFo
-
Mytic Moon
c# svn watin
I tried to check out the Watin Test Recorder from http://sourceforge.net/p/watintestrecord/code/195/tree/version3/And the svn link I tried was: svn://svn.code.sf.net/p/watintestrecord/code/trunk watintestrecord-codeIs there any problem with this url?The error from svn is “Unknown host name ‘svn.code.sf.net’Thankss
-
Roger
c# .net asp.net watin
When I am attempting to run the unit tests against my website, I suddenly started receiving the following error:WatiN.Core.Exceptions.ElementNotFoundException was unhandled by user codeMessage=Could not find A element tag matching criteria: Attribute ‘href’ equals uri ‘https://my.companyurl.com/client/clientupload.aspx’ at https://my.companyurl.com/account/default.aspxSource=WatiN.CoreStackTrace:at WatiN.Core.Element.get_NativeElement()at WatiN.Core.Element.GetAttributeValueImpl(String a