def command_executor(self):
        """Get the appropriate command executor URL for the Selenium server
        running in the Docker container."""
        ip_address = self.ip_address if self.ip_address else '127.0.0.1'
        return 'http://{}:{}/wd/hub'.format(ip_address, self.port)
Get the appropriate command executor URL for the Selenium server
        running in the Docker container.