watin

Problem when using WatiN to test add a SharePoint Web Part in a page

I have problem when i use WatiN to test my web site (created from SharePoint), I would like to create test script to add a SharePoint Web Part in a page. When Add Web Parts dialog opens, I can't make the IE automatically check on the web part (that i would like to add). Is there any solution to do that? Can anyone help me? Thank you very...

C#: Using Watin.Core with another user (ProcessStartInfo), IIS returns not authorized

My situation: I'm running a C# testing program which allows me to configure certain browser "steps", like going to an URL or clicking on a button. There's also the posibility to enter a domain, username and password. When running the program it will invoke another program* with the (if entered) username and password. This new program wi...

Books for watin

Hi, As i am new watin user. Could any one tell me resource (books,ebooks etc) for watin concept learning.....I need it asap......... I have gonne through watin site already.....My biggest requirement is any book for it ...

Spurious errors from WatiN with MSTest

I'm running MSTest to use the browser-automation framework, WatiN. When I run tests individually they always pass but however when I run the entire set of automation tests 7-8 tend to fail with different errors each time. All the tests are isolated and login to the site from the beginning every time, so I don't think it's related to the ...

Is it possible to see what the response headers were after a page load using Watin

Part of our testing is to check that a page is being returned in the correct format (specifically gzip) Does WATIN expose the HTTP response headers so they can be inspected? ...

WatiN.Core.IE component giving Timeout while Internet Explorer busy error while opening a URL

I am using WATin IE component for browsing a specific website On StartBrowsing button click event I am initializing the object of WatiN.Core.IE and passing the website URL for opening the website as shown in the code snippet below :- WatiN.Core.IE ie; private void btnStartBrowsing_Click(object sender, EventArgs e) { ie = ...

WatiN and typing capital letters

I'm trying to automate a password entry but the website in question does not allow you to type your password with the caps lock key on. WatiN appears to use the caps lock key in order to type capital letters thus not allow this to work. Does anyone know a workaround or a way to force WatiN to use the shift key? ...

Problem in Updating DataGridView via a thread ( when Scrolling )

Hi Experts, I am stuck with this problem of mine and it will be great help if someone solves this problem for me What I am trying to do is : 1) Intialize a DataTable datatable in form load event and assign its defaultview to a datagridview dgvresult 2) On click of a button start an STA thread (I am actually working with WatIN IE ...

How to test content of popup IE window

Hi. I'm using Watin and Nant to create unit tests for my web site. I want to know the way how to test content of the popup IE window. That window is opening when user clicks on the link that has target="_blank", like on the example below <p> ... receives oversight and governance from the <a target="_blank" href="ihealth.html">iHealth...

How do I automate Chrome using WatiN?

I've done countless Google searches on this. Despite all the promises, I simply can't find one straight-forward peice of documentation on how to automate Chrome with WatiN. Can anyone help? ...

How to get a list of elements with Watin?

I'm trying to use Watin for testing. And I need to get a list of elements with specific properties, e.g. all links that have "Go" title. I was trying this: browser.Link(link => link.Text == "Go"); but it returns only one element. Also I was trying this: var links = from link in browser.Elements where link.Text ==...

How do I get the children of an Element in Watin?

Given the following html: <ul id="search-results"> <li> <h3>Result 1</h3> <span class="some-info">Tag line</span> </li> <li> <h3>Result 2</h3> <span class="some-info">Another bit</span> </li> <li> <h3>Result 2</h3> <span class="some-info">Another bit</span> </li> </ul> ...

WatiN permissions problem when eval javascript code

My environment is: WindowXP, IE8, VS2008, WatiN-2.0.20 When i try to execute the follow code: IE _browser = new IE(); _browser.GoTo(_url); _browser.Eval("alert('hello!');"); I get the following error: Message: "Access denied. (Exception of HRESULT: 0x80070005 (E_ACCESSDENIED))" Source: "Microsoft.mshtml" Partial StackTrace ...

Save current webpage in Watin

I'm trying to save the full content of the current static web page, using the code from http://stackoverflow.com/questions/3546047/show-save-as-dialog-of-ie-using-watin So here it is: IE ie = new IE("http://localhost"); // more code //I expect out.html is the output file FileDownloadHandler fileDownloadHandler = new FileDo...

Can we create Test Suite Using WATIN?

I would like to know whether we can create Test Suites for WATIN. Im using WATIN to automate my Web Application. I was planning to create a set of Test Cases and save them in an Excel sheet and use WATIN to read data from them. But since its not posible using WATIN, I'm planning to create a Test Suite. ...

Checking that a HTML element is not present

Hi, I'm doing UI testing using Watin (Watir, for java folks). I need to check that an element is not present in the HTML. As of today, I do this as follows: [FindBy(Id = "pnConfirmation")] protected Div Confirmation; public bool ConfirmationMessageDisplayed { get { try { ...