Skip to content

Commit 7843110

Browse files
hub sample
1 parent 4a8d375 commit 7843110

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/java-frameworks.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,14 @@ cd java-selenium-sample
7070
If you are using your own project, make sure you update the **Hub endpoint** in your tests file. By setting up the Hub endpoint, you establish the communication channel between your tests and the browser nodes, enabling effective test distribution and execution.
7171

7272
```java title="Test.java"
73+
// highlight-next-line
7374
public static String hubURL = "https://hub.lambdatest.com/wd/hub";
75+
private WebDriver driver;
76+
public void setup() throws MalformedURLException {
77+
//... your capabilities
78+
// highlight-next-line
79+
driver = new RemoteWebDriver(new URL(hubURL), capabilities);
80+
}
7481
```
7582

7683
## Step 2: Update the dependencies

0 commit comments

Comments
 (0)