Web Dev Solutions

Catalin Mititiuc

aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCatalin Mititiuc <webdevcat@proton.me>2024-04-17 22:26:53 -0700
committerCatalin Mititiuc <webdevcat@proton.me>2024-04-17 22:26:53 -0700
commit23967fe2f5ae9fb6d6c8a2cbc29845531f7acece (patch)
treea9bc130e002ed7241552891f70326976b01117fb /google_test.js
parent24e2bd5821b09d4d7e243fc62ab36f45454a0a03 (diff)
Integration test running with test server
Diffstat (limited to 'google_test.js')
-rw-r--r--google_test.js22
1 files changed, 0 insertions, 22 deletions
diff --git a/google_test.js b/google_test.js
deleted file mode 100644
index bf751a6..0000000
--- a/google_test.js
+++ /dev/null
@@ -1,22 +0,0 @@
-import { Builder } from 'selenium-webdriver';
-import chrome from 'selenium-webdriver/chrome.js';
-
-console.log("Start the browser.")
-
-let chromeOptions = new chrome.Options();
-chromeOptions.addArguments('--headless', '--disable-gpu', '--no-sandbox');
-
-let driver = new Builder()
- .forBrowser('chrome')
- .setChromeOptions(chromeOptions)
- .build();
-
-console.log("Done!")
-
-console.log("Open Google.")
-await driver.get("https://google.com");
-console.log("Done!")
-
-const html = await driver.getPageSource();
-
-driver.quit()