신원형

Initial commit

asdffdsa.txt
node_modules
\ No newline at end of file
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "pwa-node",
"request": "launch",
"name": "Launch Program",
"skipFiles": [
"<node_internals>/**"
],
"program": "${workspaceFolder}\\main.js"
}
]
}
\ No newline at end of file
import fs from 'fs/promises'
import { login, load, logout } from './khcanvas.js';
fs.readFile("asdffdsa.txt").then(it => {
const auth = it.toString().split('|')
login(auth[0], auth[1]).then(async driver => {
load(driver, new Date())
.then(it => {
console.log(it)
logout(driver)
})
}).catch(err => { console.log(err) })
})
\ No newline at end of file
This diff is collapsed. Click to expand it.
{
"name": "study-or-enjoy",
"version": "1.0.0",
"description": "",
"main": "main.js",
"scripts": {
"test": "mocha --debug-brk"
},
"repository": {
"type": "git",
"url": "http://khuhub.khu.ac.kr/2018102202/study-or-enjoy"
},
"author": "",
"license": "",
"dependencies": {
"@types/selenium-webdriver": "^4.1.0",
"eslint": "^8.15.0",
"selenium-webdriver": "^4.1.2"
},
"type": "module",
"devDependencies": {
"@types/node": "^17.0.35"
}
}