Learn to make UI testing a page with selenium.
On the page there are a lot of ajax requests that are executed at boot, the problem is that I can't programmatically keep track of when their execution is complete.
Use the following structure:
from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions as EC
timeout = 5
wait = WebDriverWait(driver, timeout)
my_tag_present = EC.visibility_of_element_located((By.TAG_NAME, "my_tag"))
this approach works, but not always, and I have to specify a specific tag (tag_id, class, xpath).
I want to apply a more integrated and universal approach, without specifying the right tags.
As, for example, work services for testing sites. He (the service) because it is unknown which items should be on the page, however, the total time of download and a screenshot of the loaded page in the report we see.