Web Dev Solutions

Catalin Mititiuc

From 23967fe2f5ae9fb6d6c8a2cbc29845531f7acece Mon Sep 17 00:00:00 2001 From: Catalin Mititiuc Date: Wed, 17 Apr 2024 22:26:53 -0700 Subject: Integration test running with test server --- google_test.js | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 google_test.js (limited to 'google_test.js') 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() -- cgit v1.2.3