Good day to all! In the process of writing code for scraping, I decided to work on its speed. Usually I wrote something like time.sleep(5) to make sure that even with a slow internet connection JS managed to load. So, is there any way to find out how? Thought to do something like

 wait_element = wait.until( EC.presence_of_element_located(( By.XPATH, Xpath))) element = driver.find_element_by_xpath(Xpath) ...other instructions... 

But what if during the execution of JS no visible changes are added, but to rummage through the entire html code of the site (the one through F12, forgive my vocabulary if you messed up), especially if it is rather complicated ... Yes, and as you can understand, html code that JS worked, I do not understand.

    1 answer 1

    Well, like for example.

     console.log(element)