The Utils methods.

selenium.webdriver.common.utils.free_port()

Determines a free port using sockets.

selenium.webdriver.common.utils.is_connectable(port)

Tries to connect to the server at port to see if it is running.

Args:
  • port: The port to connect.
selenium.webdriver.common.utils.is_url_connectable(port)

Tries to connect to the HTTP server at /status path and specified port to see if it responds successfully.

Args:
  • port: The port to connect.

相关文章:

  • 2022-02-25
  • 2021-09-14
  • 2021-07-27
  • 2021-08-23
  • 2021-12-06
  • 2021-06-07
  • 2021-08-03
  • 2022-12-23
猜你喜欢
  • 2021-07-05
  • 2021-11-19
  • 2022-01-03
  • 2021-09-09
  • 2022-02-14
  • 2022-01-28
  • 2021-08-16
相关资源
相似解决方案