Hello,
I’m trying to create an automator action that records and process a web page through :
first a web archive ( the page is a bank statement, that I can see on my screen, but cannot record directly )
then extract the html page from the archive ( via textutil ) which is the Apple converted form
then extract parts of the web page through a series of javascript functions like
var xyz = document.getElements…textContent and process these further to format them etc…
I can reach the state where I can have the “local” web page opened in Safari, but I cannot go any further
I’ve tested the javascript script outside automator and it is working but I cannot find the way to get the correct input parameter that will enable the var xyz = document.getElements…textContent functions in the run javascript action in automator ?
How could I pass the html file as a DOM element ?
I cannot use Applescript because I want as much of my actions and codes to be usable in iOS devices as well (Shortcuts) and there I cannot use AppleScript…
Thank you for any help, I’ve been searching this for months now…
Model: MacBook Pro 13"
Browser: Safari 537.36
Operating System: macOS 10.14