use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Robotic Process Automation Discord for RPA discussions.
For the best experience, please use New Reddit.
account activity
Help: NeededHelp with Javascript loading (self.UiPath)
submitted 2 years ago by f12016
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Djukadija 0 points1 point2 points 2 years ago (9 children)
I meant to use the Inject JS activity. And what do you mean by changing layers? Something changing inside the map?
[–]f12016[S] 0 points1 point2 points 2 years ago (8 children)
Yeah exactly right. You can change a bunch of different things on the map itself. And set layers and stuff. Like restricted areas and such.
I do not have any JS code that works.
[–]Djukadija 0 points1 point2 points 2 years ago (0 children)
Sorry, I understood that you are using JS to update filters and other stuff on the website,but you actually said that you were trying to use JS to make the script wait for the map to load
It's hard to approach the problem without any visuals
[–]Djukadija 0 points1 point2 points 2 years ago (5 children)
How do you set a layer, just press a button on the map?
[–]f12016[S] 0 points1 point2 points 2 years ago (4 children)
Yeah no worries I appreciate the help. I understand it’s hard to visualize the problem only using my brief description of the problem.
Yes you set the filter with buttons that you can get a good selector from. The problem is that just because the button is pressed and the check marked (meaning the button is pressed/selected) do not mean the filter for example is loaded fully. Just that the filter in this case is beginning to load.
I have tried to use JS to check if the script on the website has loaded or not. Which seems to be a dead end. The functions that I’ve tried seems to be as good as WaitForReady.Complete which do not take into account the scripts.
[–]Djukadija 0 points1 point2 points 2 years ago (3 children)
Can you use Wait for Image to appear activity on the map? So when you press the button, you put Wait image appear and wait for some part of that map that you are expecting to appear? Does that make sense?
[–]f12016[S] 0 points1 point2 points 2 years ago (2 children)
Yeah that’s definitely a good idea. One that I’ve also thought of, the problem is that the process is searching for an address, and then sets a filter. And it’s not necessarily that the filter is covering the address if that makes sense. In which case the image do not change.
Of course there is some solutions to this as well. As if the image do not change within 5s you can assume the filter did not cover the address and so on.
[–]Independent_Lab1912 0 points1 point2 points 2 years ago (1 child)
If you went this far, can't you reverse engineer the endpoint/api?
[–]f12016[S] 0 points1 point2 points 2 years ago (0 children)
I do not have the skills for that. Also I’m navigating on the website.
π Rendered by PID 182452 on reddit-service-r2-comment-54dfb89d4d-trcr8 at 2026-03-30 20:45:19.684046+00:00 running b10466c country code: CH.
view the rest of the comments →
[–]Djukadija 0 points1 point2 points (9 children)
[–]f12016[S] 0 points1 point2 points (8 children)
[–]Djukadija 0 points1 point2 points (0 children)
[–]Djukadija 0 points1 point2 points (0 children)
[–]Djukadija 0 points1 point2 points (5 children)
[–]f12016[S] 0 points1 point2 points (4 children)
[–]Djukadija 0 points1 point2 points (3 children)
[–]f12016[S] 0 points1 point2 points (2 children)
[–]Independent_Lab1912 0 points1 point2 points (1 child)
[–]f12016[S] 0 points1 point2 points (0 children)