Questions tagged [watin]
WatiN aims to bring you an easy way to automate web testing with Internet Explorer and Firefox using .Net. Since the start of the project in 2005, WatiN has grown into an easy to use, feature rich and stable framework. WatiN is developed in C# and inspired by Watir.
1,050
questions
0
votes
1
answer
381
views
Save a link as PDF C#
I need to automate download of a pdf file.
Sample link below
<a href="https:\\..?serachid=1"
onclick="window.open(this.href,'popupwindow','scrollbars=no,resizable=no')return false&...
0
votes
0
answers
206
views
How do I get past this login page?
I need to visit several web pages every day to update a spreadsheet. I'm trying to automate the process. On one site, I can't get past the login page.
No matter what I throw at it, it says I haven't ...
2
votes
2
answers
2k
views
Interaction Win Form and Web Browser, advice? Winium? Watin? White? Sikuli? [closed]
I want to create a .NET app which helps me to manage and automate a web browser.
I did a quick search, and I found some solutions.
It seems that Selenium is the main reference software (open source), ...
0
votes
0
answers
90
views
How can i get download link with watin?
There is a HTML code, in another website :
<form action="down.php" enctype="multipart/form-data" method="post">
<input type="hidden" name="mid" id="mid" value="pg/K/c3scJubYvZj8UI=" /&...
0
votes
1
answer
232
views
How to Find.By a non-standard attribute with Watin?
I am using WatiN to test a site.
There is a checkbox that I need to verify whether it is checked or not, then act on it accordingly.
When the checkbox is checked, the HTML shows
<input type="...
0
votes
0
answers
70
views
Breakpoint and runtime different results?
I am writing a pdf grabber in C# using Watin. For some reason, my code runs ok when I breakpoint a line and then step through manually, but when I let it run, it does the same (first) step twice and ...
0
votes
0
answers
72
views
Cannot login with WatiN
I'm trying to log in a website that use a ".cgi" instead of a ".html". The input field have this HTML code:
<input name="username" class="input" type="text" size="20"></input>
As you can ...
0
votes
1
answer
54
views
WatiN doesn't find anything
I'm new to C# and I'm trying to do an application that automatize Internet Explorer.
When I click a button, the application does :
using ( var Browser = new IE())
{
Browser.GoTo("http://testweb....
0
votes
0
answers
265
views
WATIN unable to find an input
I'm new of WatiN, and I have a problem: I'm trying to set the value of a text, but WatiN doesn't find it, with Find.ById, Find.ByName and Find.ByClass; here the html of the object:
<input name="...
1
vote
1
answer
161
views
WatiN: GetAttributeValue("value") does not return value
I intend to display the value of value attribute from the Google Translate menu of all the languages. It is represented by the left list of the page.
This is the code I am running and nothing is ...
1
vote
1
answer
161
views
Angular model is not updated by watin
I am using watin and specflow to automate the browser testing for my angular application. I have ran into a problem with TextField.TypeText("some string") function which does not update the angular ...
0
votes
1
answer
272
views
How to handle IE specific browser confirm dialog using Watin Core?
I am using the below code for a basic search automation using Watin Core.
IE ie = new IE();
GoToNoWait("www.stackoverflow.com");
ie.TextField(Find.ByName("q")).TypeText("Test");
ie.Button(Find....
0
votes
1
answer
255
views
WatiN handling the IE 11 “Are you sure you want to leave this page?” popup
I have been trying using this code
WatiN.Core.DialogHandlers.ReturnDialogHandler myHandler = new WatiN.Core.DialogHandlers.ReturnDialogHandler();
browser.AddDialogHandler(myHandler);
myHandler....
1
vote
2
answers
356
views
Browser.back is not working
Using watir, I've written scripts to check multiple links are being directed to the right page as below.
Links= ["Link", "Link1"]
Links.each do |LinkValue|
@browser.link(:text => ...
0
votes
0
answers
107
views
Watin can't find element when running outside main thread
The problem is with the button:contains('Deal') selector, the button containing deal does exist on the page and Watin can find it without problems when running in main thread.
// Add bet, deal ...
0
votes
1
answer
238
views
How to get a list of elements with Watin (c#) and change values?
i want use watin to get list of elements in a webpage and change all the values
for example i want find all textboxes with "test" ID
and change their values
this is my code. but it only change ...
-1
votes
2
answers
75
views
Find a string in a text few times and do action each time
I want to find all strings in a text with WatiN.
I can find the first string, but i can't gather all of them.
For example I want find all occurrences of "water" in this text:
There is a lot of ...
0
votes
1
answer
2k
views
C# Based Testing Automation Attaching to Existing Browser
C#, Visual Studio 2015, .NET 4.x Framework, Internet Explorer 11 (or latest Chrome), Windows 8.1 Pro workstation.
For testing purposes, using a Windows Forms or Console application written in C#, I ...
5
votes
2
answers
498
views
Hiding browser popups - Watin
I'm using Watin library in a windows forms app. In order to hide the browser I use this instruction :
Settings.Instance.MakeNewIeInstanceVisible = false;
However, it doesn't hide the popups (when ...
0
votes
1
answer
900
views
Automatically download from links in browser using c# watin
Trying to automate file downloads, using Watin in IE. Have a 10 documents to be downloaded and i could find that the below code will prompt for download option.
string download_url="link to file";
...
0
votes
2
answers
306
views
An unhandled exception of type 'WatiN.Core.Exceptions.RunScriptException' occurred in WatiN.Core.dll [closed]
An unhandled exception of type 'WatiN.Core.Exceptions.RunScriptException' occurred in WatiN.Core.dll Additional information: RunScript failed ....can anybody give solution to this error ???
browser....
0
votes
1
answer
195
views
Download generated and showed pdf automatically
I use WatiN for automating Internet Explorer.
I have now a problem with a pdf-file.
When i click on a button, there will be a pdf-file open in the browser:
Now, I want to download and save this pdf ...
0
votes
1
answer
253
views
C# WatiN Firefox - Unable to read data from the transport connection
I'm trying to launch a web bot developed with WatiN (via Firefox).
It launches and works perfectly on my computer (even without launching it as admin), however when I launch it from my VPS (where I'm ...
0
votes
1
answer
116
views
Simulating actual mouse move and click with WatiN
I'm using WatiN to fill in a form on a website. However, the text boxes' autocomplete feature only fire if I actually take the mouse and click on a text box. I've tried using Select(), Click() and ...
0
votes
0
answers
55
views
Watin+Calendar pick an active date
I have the below code for a read only textfield and a dropdown list:
<div class='formRowNB'>
<label class="label" for="appointment_date">Date of Appointment
<abbr title='...
0
votes
1
answer
613
views
Watin crawling c# click button submit the page ignoring the text box value entered
Hello i am trying to click a search button via watin code
IE ie = new IE();
ie.GoTo("http://www.apartments.com/");
ie.TextField(Find.ById("quickSearchLookup")).TypeText("5000");
Link link = ie.Link(...
0
votes
2
answers
301
views
Switching tabs in IE while doing automation
I am trying to automate a web page. On it there is a link and by clicking it it opens in another tab. I am stuck here. I have tried the Redirect option but it didn't work.
This is the web page code ...
1
vote
1
answer
630
views
How to maximize browser window using WatiN?
I'm trying to maximize the browser window opened by WatiN:
var browser = new IE();
browser.SizeWindow(width, height);
but I don't know how to set width and height to my screen size.
0
votes
1
answer
102
views
Firing J-Script onClick event not working, IE Browser
I have a question about WatiN, I just started using it today, and I can't figure out how to click a js button, here's what I got:
private void btnLogin_Click(object sender, EventArgs e)
{
if (!...
0
votes
1
answer
149
views
Asp .Net MVC WatiN failing assert
So I just got a hold of WatiN and wanted to do some automated acceptance tests.
I've got resharper, as well as Nunit and WatiN using NuGet manager. Changed the reference Interop.SHDocVw property of ...
-1
votes
1
answer
440
views
Fill a form with WatiN in C#
that's my first question, i hope i'm doing everything correctly.
Anyway, i have a weird issue. I basically have this HTML input which i want to fill with WatiN :
<input name="edit[id]" class="...
1
vote
1
answer
161
views
Navigate with WatiN
I try to automate a Task "Navigating on a Website" with WatiN.
Now, I have the following problem:
The website shows this:
There I have to simulate a click on "Einstellungen". When I look at the ...
0
votes
1
answer
61
views
how can i Select from a select list that enabling select list 2 by watin in c#
i have a problem in controlling web page by watin...
we have a html page with 2 select list that when you select an item from selectlist1 , selectlist2 will be visibled ...
but when i select a value ...
-1
votes
1
answer
66
views
C# Click HTML button on multiple webbrowsers
So I have about 30 webbrowsers that I have to goto, then fill in a textbox, then click the button. The button doesnt have an ID so I cant do the GetElementById method. I tried WatiN but I lack the ...
1
vote
1
answer
773
views
How to click OK in confirm popup opened from a frame (Watin)?
I can't find a way to click confirm popup when it is inside iframe. I could find the iframe and click "Clicked OK" button, then confirm button pops up, at this point I am stuck. I posted my html and c#...
1
vote
1
answer
884
views
Use WatiN in windows Form to Automate Clicking and Writing in Internet Explorer C#
Internet Explorer is open and it is showing a webpage. We know there a drop down and a textbox and a button are exist in this page.
I need to select an item from drop down, writing a text in textBox ...
1
vote
0
answers
165
views
Watin tests running much slower on Teamcity
I have a set of Watin GUI tests that run on Teamcity. They each run in about 300 seconds locally. They previously ran in about the same time on a TeamCity agent (PC specs are about the same). For some ...
1
vote
1
answer
516
views
How to select a table with no ID or class
Clarification - I'm using Watin to automate the browser. It's a Watin Table object I need to create, not a javascript object.
I'm using watin to extract data from a web app. I need to create a watin ...
0
votes
0
answers
178
views
WatiN submit button is hidden(disabled)
I have to select an option in the SelectList, and then press a button, I thought to do it with WatiN in C#, but if you have another suggestion I would love to hear.
When I select an item from the ...
0
votes
1
answer
85
views
Error at Watin.Core.Comparer StringComparer class
I am using Watin system in my program.
I get the following error:
ArgumentNullException at Watin.Core.Comparer
StringComparer(string comparisonValue, bool ignoreCase)
Error : Value Cannot be ...
0
votes
1
answer
155
views
WatiN downloading files
I am trying to use WatiN to do some screen scraping type of work. It runs on our site on a scheduler. I have no need to see the UI, I just need it to do the work. I can navigate the sites with no ...
0
votes
1
answer
996
views
Can Watin work with IE edge?
I am unable to get a single proper document based on this topic.
As far as I know, Watin works well with Internet Explorer and Firefox (with some exceptions).
1
vote
1
answer
163
views
Watin works in background
I started using WaTin as web automation tools. My target is let WaTin run their tasks, when success (such as complete sign-in) it will show the results in textbox and datagrid. My question is does ...
0
votes
0
answers
540
views
C# Watin element's click() function doesn't trigger ng-click
I am gathering data from a webpage that uses angular. I'm very familiar with the ins and outs of using Watin for data gathering. This is the first time that I've hit a site using angular.
The ...
0
votes
1
answer
169
views
Modify External Browser Element via Vb.Net
Is that anyway to Modify firefox (or other browser) element with Watin/VB.Net after it open?
For example, I have a blank html page, then i open that page with Watin. Because its blank so no element ...
-1
votes
2
answers
51
views
div collection prints only one value
Hi i am trying to print the div collection.while printing the div collection i am getting the first value only.here is my program.
using System;
using System.Diagnostics;
using System.Threading;
...
0
votes
1
answer
911
views
Timeout while Internet Explorer busy error when Browser.AttachTo
I have a number of tests that seem to be randomly failing due to a Timeout while Internet Explorer busy error.
WatiN.Core.Exceptions.TimeoutException: Timeout while Internet Explorer busy
They ...
0
votes
2
answers
192
views
Watin Tests do not work on TeamCity build machine
I am running automated IE browser tests using Watin 2.1.0. They work correctly on my local machine however I am trying to get them to run on my TeamCity build machine but I get this error when the ...
0
votes
1
answer
239
views
Selecting option from selectlist using watin issue
I have a selectlist with the HTML:
<select style="background-color: rgb(255, 255, 255);" id="advFindE_fieldListFLDCTL" class="ms-crm-SelectBox" Sort="ascending" defaultSelected="-1">
<...
0
votes
1
answer
265
views
Unble to click on a link using WATIN
<section>
<div class="col-sm-12 text-center ">
<a id="submitButton" class="btn btn-lg mt40">Reset password</a>
</div>
</section>
browser1.Link(Find....