Hi there,
I'm trying to write a test automation for a system that has a web page containing a silverlight control. I'm using the selenium webdriver dll to test non-silverlight pages. When I open a page with a silverlight control, I'm using the selenium RC dll instead so that I can try to leverage the silvernium dll. Here's a sample of the code:
public class Class2
{
private Silvernium _silvernium;
private ISelenium _selenium;
[Fact]
public void MyTest()
{
IWebDriver driver = new InternetExplorerDriver();
driver.Navigate().GoToUrl("myUrl");
_selenium = new WebDriverBackedSelenium(driver, driver.Url);
_selenium.Start();
_selenium.Click("LinkToFormWithSilverlightControl");
_selenium.SelectWindow("FormWithSilverlightControl");
var title = _selenium.GetTitle();
var html = _selenium.GetHtmlSource();
_silvernium = new Silvernium(_selenium, "silverlight_object");
}
}
This is all working fine until I add the final line (_silvernium = new Silvernium(_selenium, "silverlight_object");). Without this line, the test runner runs the unit test and I can see that the tile and html vars have the expected values. When I add the last line, the test runner fails to run with the message:
Failed: System.IO.File.NotFoundException: Could not load file or assembly 'Silvernum, Version=1.0.4254.29979....
I'm using XUnit, and it's a 64 bit machine if that makes any difference.
Anyone any ideas what the source of the issue is?
Cheers,
J.