-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathProgram.cs
More file actions
32 lines (29 loc) · 839 Bytes
/
Program.cs
File metadata and controls
32 lines (29 loc) · 839 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
using OpenQA.Selenium.Chrome;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace AutoWorkCheck
{
class Program
{
static void Main(string[] args)
{
// account.json 파일에서 사용자 계정 정보 획득.
Account account = new Account("account.json");
WebMacro webMacro = new WebMacro();
// 인수가 On 이면 출근처리.
if(args[0].Equals("on"))
{
webMacro.Run(account.id, account.password, true);
}
// 인수가 Off 면 퇴근처리.
else if(args[0].Equals("off"))
{
webMacro.Run(account.id, account.password, false);
}
}
}
}