Skip to content

Commit

Permalink
Merge pull request #26 from pinanks/convert-sdk-to-commonjs
Browse files Browse the repository at this point in the history
Change SDK samples to commonJS
  • Loading branch information
sushobhit-lt authored Jan 30, 2024
2 parents 4b4cfc9 + 78afefa commit b99a7f4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
{
"dependencies": {
"@lambdatest/selenium-driver": "^1.0.1",
"@lambdatest/selenium-driver": "^1.0.2",
"@lambdatest/smartui-cli": "^2.0.3",
"selenium-webdriver": "^4.16.0"
},
"type": "module",
"name": "sdk",
"version": "1.0.0",
"description": "",
Expand Down
4 changes: 2 additions & 2 deletions sdk/sdkCloud.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Builder, By, Key, until } from "selenium-webdriver";
import { smartuiSnapshot } from "@lambdatest/selenium-driver";
const { Builder, By, Key, until } = require('selenium-webdriver');
const { smartuiSnapshot } = require('@lambdatest/selenium-driver');

// username: Username can be found at automation dashboard
const USERNAME = process.env.LT_USERNAME || "<USERNAME>";
Expand Down
4 changes: 2 additions & 2 deletions sdk/sdkLocal.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Builder, By, Key, until } from "selenium-webdriver";
import { smartuiSnapshot } from "@lambdatest/selenium-driver";
const { Builder, By, Key, until } = require('selenium-webdriver');
const { smartuiSnapshot } = require('@lambdatest/selenium-driver');

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

0 comments on commit b99a7f4

Please sign in to comment.