Run test case with RemoteWebDriver
Posted amy2012
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Run test case with RemoteWebDriver相关的知识,希望对你有一定的参考价值。
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的主要内容,如果未能解决你的问题,请参考以下文章
SQL调优指南笔记22:Gathering Diagnostic Data with SQL Test Case Builder
Can‘t find third_party/gtest. Run git submodule update --init, or disable with CMake -DBUILD_TEST(代码