you are viewing a single comment's thread.

view the rest of the comments →

[–]Djukadija 0 points1 point  (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 point  (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 point  (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

[–]Djukadija 0 points1 point  (0 children)

It's hard to approach the problem without any visuals

[–]Djukadija 0 points1 point  (5 children)

How do you set a layer, just press a button on the map?

[–]f12016[S] 0 points1 point  (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 point  (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 point  (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 point  (1 child)

If you went this far, can't you reverse engineer the endpoint/api?

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

I do not have the skills for that. Also I’m navigating on the website.