-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtasks.robot
66 lines (57 loc) · 2.15 KB
/
tasks.robot
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
*** Settings ***
Library RPA.Browser.Selenium auto_close=${False}
Library RPA.HTTP
Library RPA.Tables
Library RPA.PDF
Library RPA.Images
Library RPA.Desktop
Library OperatingSystem
*** Variables ***
*** Keywords ***
uKw_Login into CRM Website
Open Available Browser https://robotsparebinindustries.com/
Input Text username maria
Input Password password thoushallnotpass
Submit Form
#uKw_Download order file
#Download https://robotsparebinindustries.com/orders.csv input overwrite=True
uKw_Goto order page
Click Link alias:Orderyourrobot
Click Button When Visible alias:Alertbuttonsbtndark
uKw_Fill in an order form
[Arguments] ${Order}
Select From List By Index alias:Head ${Order}[Head]
Click Element css:.radio:nth-child( ${Order}[Body] )
Input Text alias:Legs ${Order}[Legs]
Input Text alias:Address ${Order}[Address]
uKw_Make order
Click Button alias:Preview
Click Button alias:Order
Sleep 1s
Element Should Not Contain alias:Containercontainer Error
uKW_Save order receipt
[Arguments] ${Order}
${receit_image}= Set Variable
${bot_image}= Set Variable
${receit_image} = Get Element Attribute alias:Dividordercompletiondiv outerHTML
#${bot_image} = Get Element Attribute locator attribute
Html To Pdf ${receit_image} ${OUTPUT_DIR}${/}orde_${Order}[Order number].pdf
Sleep 2s
Click Button alias:Orderanother
Click Button When Visible alias:Alertbuttonsbtndark
.
uKw_Fill in all order form
${ORDERFILE}= Read table from CSV input/orders.csv header=${True}
FOR ${order} IN @{ORDERFILE}
uKw_Fill in an order form ${order}
Wait Until Keyword Succeeds 3x 1s uKw_Make order
uKW_Save order receipt ${order}
END
#uKw_Save receits in Zip file
*** Tasks ***
Order robots from RobotSpareBin Industries Inc
#uKw_Download order file
uKw_Login into CRM Website
uKw_Goto order page
uKw_Fill in all order form
#uKw_Save receits in Zip file