how to use WebDriverBacked Selenium

淺唱寂寞╮ 提交于 2019-12-13 00:23:40

问题


I have been trying to find a way to test an application that will only open on IE and the application has pages rendered in Silverlight looked at the silvernium but could not get it to work as when I run it there is a missing dll.so I found out about the WebdriverBackedSelenium which I have tried to use but I get the error

    OpenQA.Selenium.WebDriverException' occurred in WebDriver.dll
    Cannot find a file   named 'C:\Users\.nuget\packages\selenium.webdriver\3.14.0\lib\netstandard2.0\isTextPresent.js' or an embedded resource with the id 'isTextPresent.js

here is my code just simple code to get me started my aim is to be able to test the Silverlight part of the application

    browser = new WebDriverBackedSelenium(driver, url);
        var wait = new WebDriverWait(driver, TimeSpan.FromSeconds(60));
        browser.Start();
        browser.Open(url);

the error is being flagged when I initialise the browser here

     browser = new WebDriverBackedSelenium(driver, url);

any help and resources to read will be appreciated thanks in advance please not I am using c# even java examples are appreciated

来源:https://stackoverflow.com/questions/51670269/how-to-use-webdriverbacked-selenium

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!