Skip to content

Commit 78afefa

Browse files
committed
Change SDK samples to commonJS
1 parent 4b4cfc9 commit 78afefa

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

sdk/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
{
22
"dependencies": {
3-
"@lambdatest/selenium-driver": "^1.0.1",
3+
"@lambdatest/selenium-driver": "^1.0.2",
44
"@lambdatest/smartui-cli": "^2.0.3",
55
"selenium-webdriver": "^4.16.0"
66
},
7-
"type": "module",
87
"name": "sdk",
98
"version": "1.0.0",
109
"description": "",

sdk/sdkCloud.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { Builder, By, Key, until } from "selenium-webdriver";
2-
import { smartuiSnapshot } from "@lambdatest/selenium-driver";
1+
const { Builder, By, Key, until } = require('selenium-webdriver');
2+
const { smartuiSnapshot } = require('@lambdatest/selenium-driver');
33

44
// username: Username can be found at automation dashboard
55
const USERNAME = process.env.LT_USERNAME || "<USERNAME>";

sdk/sdkLocal.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { Builder, By, Key, until } from "selenium-webdriver";
2-
import { smartuiSnapshot } from "@lambdatest/selenium-driver";
1+
const { Builder, By, Key, until } = require('selenium-webdriver');
2+
const { smartuiSnapshot } = require('@lambdatest/selenium-driver');
33

44
(async function example() {
55
let driver = await new Builder().forBrowser("chrome").build();

0 commit comments

Comments
 (0)