Visual StudioでC#で書かれたSeleniumテストを実行する際に問題が発生しています。Visual StudioのデバッグモードでSelenium ChromeDriver(C#)がクラッシュする
私が持っている問題は、ChromeDriverのテストをスタジオからデバッグモードで実行したときに、クロムウィンドウが常にぼんやりとした顔でクラッシュすることです。
chromedriverコマンドウィンドウは、ループ(〜20倍)で、次のエラーを示しています。
Starting ChromeDriver 2.24.417431 (9aea000394714d2fbb20850021f6204f2256b9cf) on port 52376
Only local connections are allowed.
[28356:19528:0922/134628:ERROR:child_process_launcher.cc(528)] Failed to launch child process
これは私が取得トレースです:
at OpenQA.Selenium.Remote.HttpCommandExecutor.CreateResponse(WebRequest request)
at OpenQA.Selenium.Remote.HttpCommandExecutor.Execute(Command commandToExecute)
at OpenQA.Selenium.Remote.DriverServiceCommandExecutor.Execute(Command commandToExecute)
at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters)
at OpenQA.Selenium.Remote.RemoteWebDriver.StartSession(ICapabilities desiredCapabilities)
at OpenQA.Selenium.Remote.RemoteWebDriver..ctor(ICommandExecutor commandExecutor, ICapabilities desiredCapabilities)
at OpenQA.Selenium.Chrome.ChromeDriver..ctor(ChromeDriverService service, ChromeOptions options)
最良の部分は、私が(スタジオの外)エクスプローラから直接テストを実行すると、それだけで正常に動作していることです。
私は誰かが作ったテストランナーを使用します。私はランナーが何を使用しているのか分かりません。
IDE: Visual Studioのエンタープライズ2015 Update 3の
クロームドライババージョン: 2.24.417431
Bottomline:私はから私のSeleniumテストを実行できるようにしたいですスタジオ(デバッグモードで)それ自体。誰も私をここで助けてもらえますか?
私はちょっとこれを回避する方法を見つけました。 Visual Studioをセットアップして、常に管理者レベルで実行しました。 通常のユーザー(管理者以外のモード)として実行するように設定すると問題なく動作します。 まだ解決策はありません。 – supersophisticated
これについて何か知りましたか?私は反対の問題を持っています。 – JNF
いいえ、まだ何もありません。私はそれが動作するための非管理者として実行し続けました。 – supersophisticated