index : btroops | |
Virtual board game-aid for BattleTroops, an infantry combat simulator wargame published by FASA in 1989. |
aboutsummaryrefslogtreecommitdiff |
path: root/google_test.js
diff options
author | Catalin Mititiuc <webdevcat@proton.me> | 2024-04-17 15:56:41 -0700 |
---|---|---|
committer | Catalin Mititiuc <webdevcat@proton.me> | 2024-04-17 15:56:41 -0700 |
commit | 24e2bd5821b09d4d7e243fc62ab36f45454a0a03 (patch) | |
tree | 464830f06896e3725da889159ae6296781071c7f /google_test.js | |
parent | 143e3cdb45a96912d6791a37f64bf3893879cd93 (diff) |
Add beginning setup for tests
Diffstat (limited to 'google_test.js')
-rw-r--r-- | google_test.js | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/google_test.js b/google_test.js new file mode 100644 index 0000000..bf751a6 --- /dev/null +++ b/google_test.js @@ -0,0 +1,22 @@ +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() |