watin

Selenium WebDriver does it understand page loads now?

喜夏-厌秋 提交于 2019-12-08 09:09:01
问题 With the current form of Selenium WebDriver does it understand page loads now? In my recent research comparing WatiN vs Selenium vs X one of the biggest points I've seen in favor of WatiN was that it understands the concept of a page is loaded, whereas atleast on older versions of Selenium you had to fake this using waits/thread sleeps etc. Is this now no longer a valid negative against Selenium? 回答1: Yes, many of the functions in Selenium WebDriver return only after the page has loaded. In

WatiN testing of a popup

随声附和 提交于 2019-12-08 07:07:09
问题 I have an application that brings up a popup window when you click a link. I have a watin test that naviates to the page and clicks a link to open the popup. This is my current code: [Test] public void TestCommentBoxInput() { window.GoTo("mylocalurl"); window.Link(Find.ById("popuplink.aspx")).Click(); IE iepopup_1 = IE.AttachTo<IE>(Find.ByUrl("popuplinkurl.aspx")); iepopup_1.TextField(Find.ById("txtComments")).TypeText("Commenttest"); } As you can see I tried attatching the popup window to

WatiN with webbrowser

跟風遠走 提交于 2019-12-08 05:18:45
问题 I'm using the following code to bind watin to a webbrowser on the winform. Dim w As IE = New IE(WebBrowser1.ActiveXInstance) Settings.AutoStartDialogWatcher = False w.GoTo("http://google.com") I can see from wireshark that the page get's loaded, but the form is frozen until a exception gets thrown "Timeout while Internet Explorer busy". Is there a way to bind watin to the webbrowser control ? 回答1: First of all, I think that this line: Settings.AutoStartDialogWatcher = False should be at the

WatiN pressTab doesn't press tab

放肆的年华 提交于 2019-12-08 02:25:10
问题 Has anyone found a means to press tab with watiN in Internet explorer? 回答1: Do you mean you want to press the tab key itself, or just click on an HTML element that looks like a tab? For the latter use the Click method against the appropriate element (Div, Span etc). Otherwise you could try SendKeys instead of PressTab. e.g.: IE ie = new IE("http://www.google.com"); ie.AutoClose = false; ie.TextField(Find.ByName("q")).Click(); SendKeys.SendWait("{TAB}"); The above example will set the focus

How do I use the FileUploadDialogHandler in watin to access the file upload dialog

陌路散爱 提交于 2019-12-07 08:56:51
问题 I'm using IE8 with watin and am trying to test uploading a file via my webpage. I can't simply set the upload file using the set method like ie.FileUpload(Find.ById("someId")).Set("C:/Desktop/image.jpg"); because the upload textarea is not writeable in IE8, so I have to use the FileUploadDialogHandler but I can't find any examples of how to do this. I have found and used examples of the ConfirmDialogHandler successfully, but I can't seem to figure out how to use the FileUploadDialogHandler.

Test framework to replace Watin, if it would cease being maintained?

只谈情不闲聊 提交于 2019-12-07 02:16:41
问题 I had the impression that Watin was no longer being maintained and asked to which framework would be the best to switch to for testing of a website in a browser from .net? 回答1: Back in July on the WatiN mailing list, Jeroen stated the following. ...is WatiN still alive: Yes. Is the activity visible for the outside world: No, which is a bad thing. During my holiday last two weeks I have been thinking about how to proceed and decided that I will work on WatiN every Thursday evening. Number one

Selenium vs. SimpleTest vs. WatiN

点点圈 提交于 2019-12-06 21:30:38
问题 It seems there is very few comparison between Selenium / WatiN and SimpleTest (which has web testing features too). I tried Selenium and found the GUI great to create tests as you can see what's going on and record without typing all commands manually. As for running the tests, Selenium is way more complex than SimpleTest. For SimpleTest you just have to run a PHP script which does all the tests (client or browser side). This means that whatever browser or browser settings you're using, you

WatiN UnauthorizedAccessException errors

廉价感情. 提交于 2019-12-06 12:18:04
I am getting UnauthorizedAccessException errros when running any tests using NUnit and WatiN: Test Test.IndexTests.Can_Do' failed: WatiN.Core.Exceptions.ElementNotFoundException : Could not find INPUT (hidden) or INPUT (password) or INPUT (text) or INPUT (textarea) or TEXTAREA element tag matching criteria: Attribute 'name' equals 'q' at http://www.google.com/ (inner exception: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))) ----> System.UnauthorizedAccessException : Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) at WatiN.Core.Element.get

WatiN pressTab doesn't press tab

不羁的心 提交于 2019-12-06 10:52:50
Has anyone found a means to press tab with watiN in Internet explorer? Do you mean you want to press the tab key itself, or just click on an HTML element that looks like a tab? For the latter use the Click method against the appropriate element (Div, Span etc). Otherwise you could try SendKeys instead of PressTab. e.g.: IE ie = new IE("http://www.google.com"); ie.AutoClose = false; ie.TextField(Find.ByName("q")).Click(); SendKeys.SendWait("{TAB}"); The above example will set the focus the text field then tab off, putting focus on the search button. we had the same problem, we resolve it

Automating the Choose a digital certificate dialog

谁说胖子不能爱 提交于 2019-12-06 05:37:34
问题 I am using WatiN (2.0.10.928) with C# and Visual Studio 2008 to test a SSL secured website that requires a certificate. When you navigate to the homepage a "Choose a digital certificate" dialog is displayed and requires that you select a valid certificate and click the 'OK' button. I'm looking for a way to automate the certificate selection so that every time a new test or fixture is executed (and my browser restarts) I don't have to manually interfere with the automated test and select the