-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtasks.robot
More file actions
50 lines (39 loc) · 1.55 KB
/
tasks.robot
File metadata and controls
50 lines (39 loc) · 1.55 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
*** Settings ***
Documentation Install latest Arcdps for Guild Wars 2
Library OperatingSystem
Library RPA.HTTP
Library RPA.FileSystem
Library RPA.Browser.Selenium
Library TimeConverter
*** Variables ***
${GW2_FOLDER_PATH}= C:\\Program Files\\Guild Wars 2
${ARCDPS_WEBSITE_URL}= https://www.deltaconnected.com/arcdps/x64/
${ARCDPS_DLL}= d3d11.dll
*** Tasks ***
Install latest Arcdps for Guild Wars 2
Check Guild Wars 2 folder exists
Check is Arcdps installed
*** Keywords ***
Check Guild Wars 2 folder exists
Directory Should Exist path=${GW2_FOLDER_PATH}
Check is Arcdps installed
${file_exists}= Does File Exist path=${GW2_FOLDER_PATH}\\${ARCDPS_DLL}
IF ${file_exists} is False
Download and Install latest Arcdps
ELSE
Check latest version
END
Check latest version
${local_version}= Get File Modified Date path=${GW2_FOLDER_PATH}\\${ARCDPS_DLL}
${latest_version}= Retrieve last modified Date
IF ${local_version} < ${latest_version}
Download and Install latest Arcdps
END
Download and Install latest Arcdps
Download ${ARCDPS_WEBSITE_URL}/${ARCDPS_DLL}
OperatingSystem.Move File ${ARCDPS_DLL} ${GW2_FOLDER_PATH}
Retrieve last modified Date
Open Headless Chrome Browser ${ARCDPS_WEBSITE_URL}
${table_data}= Get Table Cell xpath://table[@id="indexlist"] 3 2
${converted_data}= Datetime To Timestamp ${table_data}
RETURN ${converted_data}