I'm tryna click on an element that opens a window and in the window click on another element. the problem is that when I click that first element it takes some time for the page to process the window so it doesn't click the second element because it's executing the code while it's processing.
anyone has a solution? I tried sleep() but it's useless because it freezes the webbrowser control so it won't let the window open