码迷,mamicode.com
首页 > Windows程序 > 详细

webDriver API——第8部分Utilities

时间:2015-04-29 23:00:50      阅读:195      评论:0      收藏:0      [点我收藏+]

标签:

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.

webDriver API——第8部分Utilities

标签:

原文地址:http://www.cnblogs.com/hushaojun/p/4467501.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!