Running safaridriver thorugh ssh always asks password

后端 未结 2 1786
借酒劲吻你
借酒劲吻你 2021-01-07 09:14

I would like to run safari selenium test in virtual machine on virtualbox.

I have running macOS Sierra 10.12 inside virtual box. Tutorials say that you need to run <

2条回答
  •  有刺的猬
    2021-01-07 10:01

    This is a known issue in Safari 10 with no known workaround, except to use a terminal via the window server.

    On Safari 11+, safaridriver only requires you to run safaridriver --enable, and the authentication will be cached for the rest of the login session. So, you should just add this to your script that logs into the machine.

    There is a separate issue that safaridriver does not work if you have ssh'd in and there is no window server running. There is no workaround for this at the moment–the machine needs a GUI session to run Safari and webdriver.

提交回复
热议问题