0
FirefoxProfile profile = new FirefoxProfile();
var binary = new FirefoxBinary(Directory.GetCurrentDirectory()+ @"\FirefoxPortable64\FirefoxPortable.exe");
var driver = new FirefoxDriver(binary, profile);
Firefoxの
ポータブルロードしようとしましたが、私はuはplsは私を助けることができるラインvar driver = new FirefoxDriver(binary, profile);
にエラーUnable to find a matching set of capabilities
を取得しますか?
そしてラインvar driver = new FirefoxDriver(binary, profile);
に私は警告している:
FirefoxDriverはFirefoxBinaryオブジェクトを構築すべきではありません。代わりにFirefoxOptionsを使用してください。このコンストラクタは、将来のリリースで削除されます。
どのようにコードを書き直すことができますか?
UPD: 私はコードを書き換える:再びエラーUnable to find a matching set of capabilities
これは理論的に質問に答えることができますが、コードが何をしているのか、どのように答えているのかを記述することをお勧めします。 – JeffC