You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The above grid connect will create the `Webdriver` for the test suite to execute the `Selenium` commands for your test.
93
104
@@ -99,18 +110,24 @@ In the test script, you need to update your test capabilities. In this code, we
99
110
100
111
```js
101
112
// index.js
102
-
constcapabilities= {
103
-
build:'NodeJS build', // Name of the build
104
-
name:'Test 1', // Name of the test
105
-
platform:'windows 10', // Name of Operating System
106
-
browserName:'chrome', // Name of the browser
107
-
version:'67.0', // Version of the browser
108
-
resolution:'1280x800', // Resolution of the screen
109
-
network:true, // Enable to capture browser network logs
110
-
visual:true, // Enable to capture screenshot on every command
111
-
console:true, // Enable to capture the console log
112
-
video:true// Enable to capture the video recording of the test
113
-
}
113
+
// Setup capabilities, Know more about LamdbdaTest Capabilities: https://www.lambdatest.com/capabilities-generator/
114
+
constcapabilities= {
115
+
"browserName":"Chrome",
116
+
// "browserVersion": "latest", #Uncomment to Specify Browser Version
117
+
"LT:Options": {
118
+
name:'NodeJS Get Set Go', // name of the test
119
+
build:'NodeJS Loves LambdaTest', // name of the build
120
+
"project":"Build-With-LambdaTtest",
121
+
"w3c":true,
122
+
"plugin":"NodeJS",
123
+
"customData": {
124
+
"buildNumber":"1234",
125
+
"environment":"Staging",
126
+
"apiVersion":"v1.2.3",
127
+
"releaseTag":"v1.2.3-rc1"
128
+
},
129
+
130
+
}
114
131
```
115
132
> **Note:** You can generate capabilities for your test requirements with the help of our inbuilt **[Capabilities Generator tool](https://www.lambdatest.com/capabilities-generator/?utm_source=github&utm_medium=repo&utm_campaign=nodejs-selenium-sample)**.
116
133
@@ -119,25 +136,28 @@ const capabilities = {
119
136
Now you write your selenium test cases in your `index.js` file:
120
137
121
138
```js
122
-
functionsearchTextOnGoogle() {
123
-
// navigate to a url, search for a text and get title of page
0 commit comments