I'm developing a Chrome extension that clicks elements on a website, but some of the elements appear after the check and the code doesn't work. I need to make the function wait until the selected element is loaded.
And NOT wait in delays in seconds like on setTimeout function.
How can I do it?