-
The below code will work with IE, but not FireFox
[STAThread]
static void Main(string[] args)
{
FireFox theBrowser = new FireFox();
//IE theBrowser = new IE();
string url = "http://www.yahoo.com/";
theBrowser.GoTo(url);
Element theElement = theBrowser.Element(Find.By("outerText", "Sign In"));.
2010-01-08 02:11:16 UTC by nobody
-
1/ Launch a web page with FireFox
2/ Using method CaptureWebPageToFile method
--> InvalidCastException was unhandled: Unable to cast object of type "WatiN.Core.Native.Mozilla.FFDocument' to type 'WatiN.Core.Native.InternetExplorer.IEDocument'
Note: the method works fine for IE.
I was using FireFox 3.5.7.
2010-01-06 22:11:48 UTC by chasingamyt
-
This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).
2010-01-06 02:20:16 UTC by sf-robot
-
There seem to be a lot of problems using the CaptureWebPage method with black images being generated. I had that issue myself and as can be seen here: xxx and there: xxx others are struggling with this one, too. It seems to me that at least the IE version and the HTML document type have an impact whether it works or not.
I managed to get it working for my web pages under IE8 with the following...
2010-01-04 09:53:40 UTC by nobody
-
Already reported in bug ID 2858442, but the resolution there is more like a workaround. Actual fix suggested below.
Repro Steps:
* Launch IE8 via WatiN (open an intranet site - to me it reproed for intranet sites)
* Do some navigation operations in IE8
* Stop the automation but leave the IE8 instance open
* Launch the same automation again... this time it'll try to create a new IE8...
2009-12-30 06:22:35 UTC by shivashankarp
-
1/ Go to Google.com using IE MANUALLY
2/ Will not able to run the following line of codes:
var theBrowser = IE.AttachTo(Find.ByTitle("Google"));
That line of code only run if I open IE and navigate to Google using WatiN first. Same problem for FireFox
The old method "AttachToIE" worked fine even if the IE was opened MANUALLY. With AttachToIE, it was helpful in Debug mode because I...
2009-12-30 00:59:00 UTC by chasingamyt
-
Assert.AreEqual(@"528px", IE.Div(COMPONENT_ID).Style.GetAttributeValue(@"width").Trim());
This code was working fine in Watin2 CTP, but in RC1 it is broken (can't find div with specified id). When I'm switching library - all works fine.
I have Span with specified id and Div included to this span with the same id, may be this information will help a little.
"WatiN.Core.Exceptio.
2009-12-25 16:12:28 UTC by nobody
-
Supported in the current WatiN 2.0 RC 1 release.
2009-12-22 16:38:12 UTC by jvmenen
-
Fixed this issue in WatiN 2.0 RC 1. Thanks for the report and provided solution.
Jeroen.
2009-12-22 16:37:02 UTC by jvmenen
-
Please provide an example/site to test this against. I can't reproduce it with our AJAX code.
2009-12-22 16:35:13 UTC by jvmenen