Hello.
I'm trying to write a simple test for a Chrome plugin.
I'm running Win7 x64, VS2010, with latest version of Telerik Testing Framework(2011.2).
Everything works fine when I'm trying to access a normal(http://) url, but fails when calling NavigateTo on a "file:///" url.
It just hangs on the "Preparing browser for automation..." page, and doesn't budge from there.
The same code works with Internet explorer.
Here's my test code:
Thanks for any help!
I'm trying to write a simple test for a Chrome plugin.
I'm running Win7 x64, VS2010, with latest version of Telerik Testing Framework(2011.2).
Everything works fine when I'm trying to access a normal(http://) url, but fails when calling NavigateTo on a "file:///" url.
It just hangs on the "Preparing browser for automation..." page, and doesn't budge from there.
The same code works with Internet explorer.
Here's my test code:
using
System;
using
System.Text;
using
System.Collections.Generic;
using
System.Linq;
using
System.Threading;
using
ArtOfTest.WebAii.Core;
using
Microsoft.VisualStudio.TestTools.UnitTesting;
namespace
ChromeTests
{
[TestClass]
public
class
ShowForm
{
private
Settings testSettings;
private
Manager testManager;
[TestInitialize]
public
void
Init()
{
testSettings =
new
Settings()
{
Web =
{
Browser = BrowserExecutionType.Chrome
// works fine if changed to InternetExplorer
},
LogLocation = @
"c:\testLog.txt"
};
testManager =
new
Manager(testSettings);
testManager.Start();
testManager.LaunchNewBrowser();
}
[TestCleanup]
public
void
Cleanup()
{
testManager.Dispose();
}
[TestMethod]
public
void
Local()
{
// works fine if changed to "http://www.google.com"
testManager.ActiveBrowser.NavigateTo(
"file:///D:/TFS/ChromeToolbar/ChromeTests/bin/Debug/TestForms/sample1.htm"
);
var tdNum = testManager.ActiveBrowser.Find.ById(
"tdNum"
);
Assert.IsNotNull(tdNum);
Assert.AreEqual(
"1"
, tdNum.InnerText);
}
}
}