首页 > Web开发 > 详细

Run test case with RemoteWebDriver

时间:2019-10-05 00:05:24      阅读:115      评论:0      收藏:0      [点我收藏+]

To run with remote webDriver, need add two parameters, URL and Capabilities.

E.g. URL: the hub location

       Capabilities: the remote webdriver type:  firefox or chrome or IE. ..etc.

@BeforeTest

public void Setup() throws Exception {

   URL url = new URL("http://localhost:4444/wd/hub");

   Capabilities capabilities = DesiredCapabilities.firefox();

   driver = new RemoteWebDriver(url, capabilities);

}

Run test case with RemoteWebDriver

原文:https://www.cnblogs.com/amy2012/p/11623636.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!