1
私は大きな問題を抱えています。つのインスタンスを持つことは、正常に動作します:マリオネットでFirefoxの2番目のインスタンスを追加する(ポートを変更する)
のpythonでそれを制御するfirefox.exe -marionette
:
は、マリオネットが有効でFirefoxを起動
from marionette import Marionette
client = Marionette('localhost', port=2828)
client.start_session()
client.execute_script("alert('o hai there!');")
今、私は現在のものと並んで2番目のクライアントを追加したいです
firefox.exe -marionette --address=localhost:2829
TRYI:、quick searchは--addressコマンドの結果python経由で制御するngの:
from marionette import Marionette
client = Marionette('localhost', port=2829)
client.start_session()
client.execute_script("alert('o hai there!');")
しかし私は、これが機能するように見えることはできません。
error: [Errno 10061] No connection could be made because the target machine actively refused it
すべてのヘルプは大歓迎です。
サーバーが2829で動作しているかどうかを確認するために 'telnet localhost 2829'を実行できますか? – SilentMonk