码迷,mamicode.com
首页 > Web开发 > 详细

Run test case with RemoteWebDriver

时间:2019-10-05 01:05:01      阅读:109      评论:0      收藏:0      [点我收藏+]

标签:ret   oca   type   driver   cat   throws   throw   ref   nbsp   

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

标签:ret   oca   type   driver   cat   throws   throw   ref   nbsp   

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

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