From 0654cd885e98dbfc591910f3fb40084921348cf1 Mon Sep 17 00:00:00 2001 From: sasimatjhb024 Date: Fri, 3 Oct 2025 11:25:59 +0200 Subject: [PATCH 1/3] adobe json file --- ai-connector/adobe/adobe.json | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 ai-connector/adobe/adobe.json diff --git a/ai-connector/adobe/adobe.json b/ai-connector/adobe/adobe.json new file mode 100644 index 0000000..e69de29 From 490d293ed5358bc192f0a05398e1acefdd810984 Mon Sep 17 00:00:00 2001 From: sasimatjhb024 Date: Fri, 3 Oct 2025 12:01:37 +0200 Subject: [PATCH 2/3] updated adobe connecter blue print --- ai-connector/adobe/adobe.json | 41 +++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/ai-connector/adobe/adobe.json b/ai-connector/adobe/adobe.json index e69de29..84db196 100644 --- a/ai-connector/adobe/adobe.json +++ b/ai-connector/adobe/adobe.json @@ -0,0 +1,41 @@ +{ + "meta": { + "schemaVersion": "1.0.0" + }, + "data": { + "type": "blueprint", + "attributes": { + "getDocuments": [ + { + "action": "goToUrl", + "url": "https://account.adobe.com/billing-history" + }, + { + "action": "waitForNetworkIdle" + }, + { + "action": "forEach", + "id": "invoice-links-loop", + "on": { + "querySelector": "a[href*='invoice']" + }, + "steps": [ + { + "action": "getPdf", + "outputVariable": "new_pdfs" + }, + { + "action": "mergeVariables", + "inputVariable": "new_pdfs", + "outputVariable": "all_pdfs" + } + ] + }, + { + "action": "downloadPdfsFromUrls", + "inputVariable": "all_pdfs" + } + ] + } + } +} \ No newline at end of file From 54de5562e376ef465beb2ab73b50bb063b8ad62d Mon Sep 17 00:00:00 2001 From: sasimatjhb024 Date: Fri, 3 Oct 2025 12:37:23 +0200 Subject: [PATCH 3/3] adobe json with css selectors --- ai-connector/adobe/adobe.json | 86 +++++++++++++++++++++++++++++------ 1 file changed, 73 insertions(+), 13 deletions(-) diff --git a/ai-connector/adobe/adobe.json b/ai-connector/adobe/adobe.json index 84db196..d07c7e8 100644 --- a/ai-connector/adobe/adobe.json +++ b/ai-connector/adobe/adobe.json @@ -13,24 +13,84 @@ { "action": "waitForNetworkIdle" }, + + { + "action": "goToIframeUrl", + "urlIncludes": "billing" + }, + { + "action": "waitForNetworkIdle" + }, + + + { "action": "setVariable", "name": "all_pdfs", "value": [] }, + { + "action": "forEach", + "id": "paginated-invoice-loop", + "on": { "querySelector": "td a[href*='pdf']" }, + "steps": [ + { "action": "getPdf", "outputVariable": "new_pdfs" }, + { "action": "mergeVariables", "inputVariable": "new_pdfs", "outputVariable": "all_pdfs" } + ] + }, + { + "action": "checkInvoicePagination", + "querySelector": "a.next-page:not(.disabled)" + }, + + + { + "action": "forEach", + "id": "direct-invoice-loop", + "on": { "querySelector": "a[href*='pdf']" }, + "steps": [ + { "action": "getPdf", "outputVariable": "new_pdfs" }, + { "action": "mergeVariables", "inputVariable": "new_pdfs", "outputVariable": "all_pdfs" } + ] + }, + + + { + "action": "startNetworkInspection" + }, + { + "action": "forEach", + "id": "network-invoice-loop", + "on": { "querySelector": ".download-btn" }, + "steps": [ + { "action": "click" }, + { "action": "waitForNetworkIdle" }, + { "action": "findPdfFromNetworkInspection", "outputVariable": "new_pdfs" }, + { "action": "mergeVariables", "inputVariable": "new_pdfs", "outputVariable": "all_pdfs" } + ] + }, + + + { + "action": "forEach", + "id": "invoice-detail-loop", + "on": { "querySelector": ".invoice-row a.view-details" }, + "steps": [ + { "action": "click" }, + { "action": "waitForNetworkIdle" }, + { "action": "getPdf", "querySelector": ".download-pdf-btn", "outputVariable": "new_pdfs" }, + { "action": "mergeVariables", "inputVariable": "new_pdfs", "outputVariable": "all_pdfs" }, + { "action": "goBack" } + ] + }, + + { "action": "forEach", - "id": "invoice-links-loop", - "on": { - "querySelector": "a[href*='invoice']" - }, + "id": "iframe-invoice-loop", + "on": { "querySelector": "[data-url]" }, "steps": [ - { - "action": "getPdf", - "outputVariable": "new_pdfs" - }, - { - "action": "mergeVariables", - "inputVariable": "new_pdfs", - "outputVariable": "all_pdfs" - } + { "action": "getPdf", "attributeName": "data-url", "outputVariable": "new_pdfs" }, + { "action": "mergeVariables", "inputVariable": "new_pdfs", "outputVariable": "all_pdfs" } ] }, + + { "action": "downloadPdfsFromUrls", "inputVariable": "all_pdfs"