82 lines
2.2 KiB
JSON
82 lines
2.2 KiB
JSON
{
|
|
"id": "7a4e4bc8-922c-4c84-865c-25ba34136be1",
|
|
"snapshot": "excel",
|
|
"instruction": "Reorder the columns to be \"Date\", \"First Name\", \"Last Name\", \"Order ID\", \"Sales\"",
|
|
"source": "https://www.youtube.com/shorts/bvUhr1AHs44",
|
|
"config": [
|
|
{
|
|
"type": "download",
|
|
"parameters": {
|
|
"files": [
|
|
{
|
|
"url": "https://drive.usercontent.google.com/download?id=1sXz6rch9XOzUgdBk6dvdDEyIR3vZ5gkl&export=download&authuser=0&confirm=t&uuid=b0e711ca-5e88-4eb1-8073-4972fbdc697e&at=APZUnTVi-YMJJEO4DALr4pHeB3o5:1710917585083",
|
|
"path": "C:\\Users\\chenj\\Name_Order_Id_move_column.xlsx"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "open",
|
|
"parameters": {
|
|
"path": "C:\\Users\\chenj\\Name_Order_Id_move_column.xlsx"
|
|
}
|
|
}
|
|
],
|
|
"trajectory": "trajectories/7a4e4bc8-922c-4c84-865c-25ba34136be1",
|
|
"related_apps": [
|
|
"excel"
|
|
],
|
|
"evaluator": {
|
|
"postconfig": [
|
|
{
|
|
"type": "activate_window",
|
|
"parameters": {
|
|
"window_name": "Name_Order_Id_move_column - Excel",
|
|
"strict": true
|
|
}
|
|
},
|
|
{
|
|
"type": "sleep",
|
|
"parameters": {
|
|
"seconds": 0.5
|
|
}
|
|
},
|
|
{
|
|
"type": "execute",
|
|
"parameters": {
|
|
"command": [
|
|
"python",
|
|
"-c",
|
|
"import pyautogui; import time; pyautogui.hotkey(\"ctrl\", \"s\"); time.sleep(0.5);"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "sleep",
|
|
"parameters": {
|
|
"seconds": 0.5
|
|
}
|
|
}
|
|
],
|
|
"func": "compare_table",
|
|
"expected": {
|
|
"type": "cloud_file",
|
|
"path": "https://drive.usercontent.google.com/download?id=1DeT0kFcjrLapgYgE7hNZWvZp3r0NLMrN&export=download&authuser=0&confirm=t&uuid=6651550d-ec4b-4dc7-ba82-5da4cc407b27&at=APZUnTWT75zWKM9orjpbn-pUsnHM:1710917648164",
|
|
"dest": "Name_Order_Id_move_column_gold.xlsx"
|
|
},
|
|
"result": {
|
|
"type": "vm_file",
|
|
"path": "C:\\Users\\chenj\\Name_Order_Id_move_column.xlsx",
|
|
"dest": "Name_Order_Id_move_column.xlsx"
|
|
},
|
|
"options": {
|
|
"rules": [
|
|
{
|
|
"type": "sheet_data",
|
|
"sheet_idx0": 0,
|
|
"sheet_idx1": "EI0"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
} |