I have a test that worked with an older version of WebAii (Beta). I just downloaded the latest version and the tests that run with IE all fail but work with Firefox.
The test fails when I call LaunchNewBrowser(). IE starts up and goes to "about:blank" and is functional (I can use it directly) but the method fails with exception
System.TimeoutException : Wait for condition has timed out
at
ArtOfTest.Common.WaitSync.
CheckResult(
WaitSync wait,
String extraExceptionInfo)
at
ArtOfTest.Common.WaitSync.
For(
Predicate`1 predicate,
T target,
Boolean invertCondition,
Int32 timeout)
at
ArtOfTest.WebAii.Core.Manager.
WaitForBrowserToConnect(
Int32 browserIndexToWaitFor)
at
ArtOfTest.WebAii.Core.Manager.
LaunchNewBrowser(
BrowserType browserToLaunch,
Boolean waitForBrowserToConnect,
ProcessWindowStyle windowStyle,
String arguments)
at
ArtOfTest.WebAii.Core.Manager.
LaunchNewBrowser(
BrowserType browserToLaunch,
Boolean waitForBrowserToConnect)
at
Marqui.Tests.wxWeb.ArtOfTest.TestArtOfTest.
InitializeInstance() in
TestArtOfTest.cs: line 36
My test looks like this:
SetTestMethod(this, "InitializeInstance");
Manager.LaunchNewBrowser(BrowserType.InternetExplorer, true);
ActiveBrowser.NavigateTo("http://www.google.ca");
and I have a SetUp method that looks like this
[SetUp]
public void InitializeEachTest()
{
var settings = new Settings(BrowserType.InternetExplorer, LogLocation)
{
DefaultBrowser = BrowserType.InternetExplorer,
RecycleBrowser = true,
BaseUrl = TestSite,
ClientReadyTimeout = 60000,
ExecuteCommandTimeout = 60000,
AnnotateExecution = true,
AnnotationMode = AnnotationMode.All
};
// Now call Initialize again with your updated settings object
Initialize(settings, LogCaller);
}
John.