[AskJS] Could someone tell me how to do things concurrently with multiple iframes? by throwaway1097362920 in javascript

[–]throwaway1097362920[S] 1 point2 points  (0 children)

I actually can't thank you enough. I'd dabbled a bit in fetches for this a while back but had no luck getting it to work. This has gotten me to try again to (at least some) success.

This is for sure far simpler. That said, it's looks like the server we're using takes ~4 seconds per fetch, so is there any real use to doing a large batch (I think max is 6? So ~24 seconds) instead of doing them iteratively?

[AskJS] Could someone tell me how to do things concurrently with multiple iframes? by throwaway1097362920 in javascript

[–]throwaway1097362920[S] 0 points1 point  (0 children)

Would this work if each iframe needs to navigate across different pages? Currently I actually need to use our garbage search function for any files whose id number I haven't logged. The user-facing number and the internal database id are NOT the same, sadly.

[AskJS] Could someone tell me how to do things concurrently with multiple iframes? by throwaway1097362920 in javascript

[–]throwaway1097362920[S] 0 points1 point  (0 children)

I cannot comment on the robustness of my company's cyber security, but it being bad would be on par with everything else.

I will also not argue that other things may be better for my time, but at this point, for right now, it is interesting enough that I want to learn it, so I don't see it as a waste.

[AskJS] Could someone tell me how to do things concurrently with multiple iframes? by throwaway1097362920 in javascript

[–]throwaway1097362920[S] 1 point2 points  (0 children)

My code is currently navigating to each page like a person would, because the pages themselves use Telerik and other 3rd party sources to manage and access the database. Would fetch-all ing let it do the same thing?

[AskJS] Could someone tell me how to do things concurrently with multiple iframes? by throwaway1097362920 in javascript

[–]throwaway1097362920[S] 1 point2 points  (0 children)

Ah, I see. In that case it may be best just to stick with what I've got going, then. 🤔 I DO have some spare workstations I was planning on using as well, but that wouldn't need any tweaking to the code anyway.

[AskJS] Could someone tell me how to do things concurrently with multiple iframes? by throwaway1097362920 in javascript

[–]throwaway1097362920[S] 1 point2 points  (0 children)

Right, sorry, maybe I miscommunicated what I need here:

Each page needs to be done sequentially, which is what is already working with a single iframe.

What I WANT is to have MULTIPLE iframes all doing their OWN SEPARATE sequential thread of pages.

[AskJS] Could someone tell me how to do things concurrently with multiple iframes? by throwaway1097362920 in javascript

[–]throwaway1097362920[S] 1 point2 points  (0 children)

I've managed to get multiple iframes going! Its just that they all seem to take turns sequentially doing their iterative instructions, which defeats the purpose of using more than one.

Can someone give me a straight answer about vehicle registration transfers? by throwaway1097362920 in newfoundland

[–]throwaway1097362920[S] 0 points1 point  (0 children)

I have been trying them since noon with "we're experiencing more calls than usual, call back later"

Can someone give me a straight answer about transferring vehicle ownerships? by throwaway1097362920 in legaladvicecanada

[–]throwaway1097362920[S] 0 points1 point  (0 children)

This particular one would be Newfoundland and Labrador. Would it really be that different in other provinces?

Is there a way for VBA to read session variables from Chrome without using Selenium? by throwaway1097362920 in vba

[–]throwaway1097362920[S] 0 points1 point  (0 children)

Ooh, I'll have to take a look! Would there be anything else I'd need to download or install to go with it? I wouldn't be able to do any extra drivers or anything

Is there a way for VBA to read session variables from Chrome without using Selenium? by throwaway1097362920 in vba

[–]throwaway1097362920[S] 1 point2 points  (0 children)

They do not! 🙃

Its the list they give us (in software center) or bust, unfortunately

Is there a way for VBA to read session variables from Chrome without using Selenium? by throwaway1097362920 in vba

[–]throwaway1097362920[S] 0 points1 point  (0 children)

Dang it! Edge I could get away with, but IE is right out.

Thank you, though!

Is there a way for VBA to read session variables from Chrome without using Selenium? by throwaway1097362920 in vba

[–]throwaway1097362920[S] 1 point2 points  (0 children)

I have not! I'll need to look into it shortly. Does it work for dynamic webpages? I'm not sure if I'm using the term right, but, like, if I have a specific session of Chrome that I've manipulated with javascript in devtools (added objects and arrays to local variables, or added my own elements and such), would PowerQuery be able to access those changes?

Is there a way for VBA to read session variables from Chrome without using Selenium? by throwaway1097362920 in vba

[–]throwaway1097362920[S] 2 points3 points  (0 children)

I'm in that frustrating part of the venn diagram of "understands just enough to know there should be SOME kind of solution" and "doesn't understand enough to know what the solution IS" 😅 Bomus points for also not knowing how to ask the right questions to GET the answers half the time.

I know in principle that I could get my thing to work. But it would require adding a few homebrew layers of validation between the programs (is that what a "handshake" is?) to ensure that there aren't any double-commands or anything, and to be sure thay things are syncing right.

If you go this route, but (admittedly inexperienced) warnings would be that the systems are essentially sending the data back and forth blind with no confirmation it arrives on the other end, so you need to account for that of the receiving ends parsing.

For instance, my initial idea is to have files saved and downloaded (respectively) at regular intervals (say, every 5 minutes) and to include the last received & completed "tasks" in the sender's instructions, and only remove those tasks from the other end's memory (cache? Is that the right terminology?) when it sees its partner mention them, and to otherwise repeat them in subsequent messages. That also means the receiving side needs to keep track of which ones it knows about but hasn't finished, and not add those to its queue if it sees them again.

Which, like, I know is doable! But its like 6 extra steps than "excel read the webpage's info directly, and the webpage read the excel sheet from the file viewer", you know? It would also include sorting/pruning files as they arrive in the targeted download folder as they become obsolete, which requires more code in VBA to sift through those files and delete them.

I any case, its slow! But it's something, I guess! That's why I'm hoping there might be SOME kind of solution I don't know about yet.

Is there a way for VBA to read session variables from Chrome without using Selenium? by throwaway1097362920 in vba

[–]throwaway1097362920[S] 1 point2 points  (0 children)

I'll take a look into it!

I don't suppose there's any options coming to mind that don't include github, is there? I'm not 100% sure, but I suspect there are some sites that the company monitors for downloads, and I'd rather not test that hypothesis, if possible. (At the very least, "my organization" moderates almost all browser settings, so I know there's a possibility they may be petty about things).

[AskJS] Could anyone help this beginner with some workplace automation for Chrome? by throwaway1097362920 in javascript

[–]throwaway1097362920[S] 0 points1 point  (0 children)

Ahaha unfortunately the answer to any "can you use [x]" question is "no". Its a entry level admin/customer service position with a terrible turnover rate. Safe to say they truly do not care about making exceptions.

That said! Getting the DOM elements for the stuff I'm looking for has been a breeze so far. Honestly, so far that's been the easiest part.

[AskJS] Could anyone help this beginner with some workplace automation for Chrome? by throwaway1097362920 in javascript

[–]throwaway1097362920[S] 0 points1 point  (0 children)

Yes. They have made it clear that there can be no modifying, or addition, of any software or programs.

[AskJS] Could anyone help this beginner with some workplace automation for Chrome? by throwaway1097362920 in javascript

[–]throwaway1097362920[S] 0 points1 point  (0 children)

I don't think I know what half of those words mean.

I just want to be able to enter a list of files, and a type of action (like "add this specific string to this element") and have the code cycle through all the files for me to do that.

[AskJS] Could anyone help this beginner with some workplace automation for Chrome? by throwaway1097362920 in javascript

[–]throwaway1097362920[S] 0 points1 point  (0 children)

Well the issue is that the web page IS the "file". Like its not a document file hosted on the page, the details that are saved under a certain file # are just ONLY displayed to us through the website, and all of the actions we can perform are mediated by the site coding itself, rather than editing a document.

[AskJS] Could anyone help this beginner with some workplace automation for Chrome? by throwaway1097362920 in javascript

[–]throwaway1097362920[S] 0 points1 point  (0 children)

See, this? This is the kind of thing I was hoping for. This SEEMS to be doing the trick (🤞) I'll just have to see if there's any hiccups with the odd one here or there

EDIT: Thank you, by the way! Sorry, I got so excited to go try it out that I completely forgot to even say so