selenium.webdriver.common.utils

The Utils methods.

selenium.webdriver.common.utils.free_port()[source]

Determines a free port using sockets.

selenium.webdriver.common.utils.is_connectable(port)[source]

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)[source]

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.

This Page