更新时间:2023-01-15 14:27:45
使用selenium驱动程序时,端口可以在以下位置找到:
When using the selenium driver, the port can be found on:
Capybara.current_session.driver.rack_server.port
,当使用webkit驱动程序时,它可以在以下位置找到:
and when using the webkit driver, it can be found on:
Capybara.current_session.driver.server_port
,您可以设置
Capybara.server_port
到一个已知的值并使用。
to a known value and use that.