上下文:Azure,C#,ClearScript,Selenium,Firefox
我将Selenium的Firefox符号暴露在ClearScript JavaScript环境中.在以下JavaScript代码中,从C#公开/导出的符号以CS为前缀.
// Preamble_Launchbrowser.js driverService = CSFirefoxDriverService.CreateDefaultService(); driverService.FirefoxBinaryPath = "C:\\Program Files\\Mozilla Firefox\\firefox.exe"; driverService.HideCommandPromptwindow = true; driverService.SuppressInitialDiagnosticinformation = true; var options = new CSFirefoxOptions(); driver = new CSFirefoxDriver(driverService,options,CSTimeSpan.FromSeconds(10)); driver.Url = "http://www.google.com.au/";