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...
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...
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
...
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 ...
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?
...
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 = ...
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?
...
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 ...
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...
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?
...
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 ==...
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>
...
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
...
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...
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.
...
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
{
...