I'm making an extension for reading dta from the page and stuck on reading drop down lists. I have an algorithm represented on image. List is in time to open, crate a closing object, but not in time to add closing listener to closing object. Also, when click to open a new list it closes previous, but it in time to open new, but not close previous before reading start. So, how 2 wait until all the actions on click will be happened or until some object has an event listener on click?
>>1507770this is gibberish. whatever machine translation you're using is not cutting it, dude
>изoбpaжeниeRussian or Bulgarian? If you're bulgarian just ask in bg and I'll help you. Whatever you wrote makes 0 sense, we don't know what you're trying to say
>>1507794ok, i'm a machine translation...
>>1507918but how did i resolve captchas?
>>1507799UA, but yeah, it's russian lang
Dis u?>>1507750
I rewrote the question with guy, with which we can speak only in English. So, here is it:I'm making a browser extension that can read html code and get data out of it like text etc... so I'm stuck with the drop down menus. I figured how to read lists using loop method. But drop down is what i can not do. As you see on the scheme i open the drop down menu by a click, and then i proceed to read the elements and data out of it. But here's the problem. The method I'm using can only open the drop down menu and can not close it for some reason. I need help to find a way to open a drop down menu and close it without an user interaction, just using Javascript code.
>>1507927Yeah
>>1507929im not a frontend dev but can't you write a function that executes a mouseclick on a certain element, then call it on the dropdown menu and when the "data gathering" is finished, execute it again on same element? wrap it in a promise and execute once "gather data" has fulfilled.
>>1507951I didn't get wdym. Read infinite times same element in a promise?