1
- Ranorex 7.0.1,試用版,有28天的時間
- 操作系統中,Windows 10
- Chrome的司機,2.29
- 硒webdriver的獨立服務器,3.4 .0
我已經將端點設置爲本地Selenium WebDriver,它的連接已經過「連接」測試。Ranorex無法啓動Chrome瀏覽器,沒有警告或錯誤
WebDriver,WebDriver.Support已被添加到引用。
的代碼片段如下:
namespace HoT
{
class Program
{
[STAThread]
public static int Main(string[] args)
{
// Uncomment the following 2 lines if you want to automate Windows apps
// by starting the test executable directly
//if (Util.IsRestartRequiredForWinAppAccess)
// return Util.RestartWithUiAccess();
Keyboard.AbortKey = System.Windows.Forms.Keys.Pause;
int error = 0;
var webDriver = new ChromeDriver(@"C:\Users\myName\Documents\Ranorex\RanorexStudio Projects\HoT\HoT\ExternalModules\chromedriver");
webDriver.Navigate().GoToUrl("http://www.google.com");
try
{
error = TestSuiteRunner.Run(typeof(Program), Environment.CommandLine);
}
catch (Exception e)
{
Report.Error("Unexpected exception occurred: " + e.ToString());
error = -1;
}
return error;
}
}
}
我得到的是一個控制檯窗口,彈出窗口,沒有Chrome瀏覽器實例或警告或錯誤。有人知道爲什麼