I use selenium to get reports. I wrote the following code to check if the report was received.
# switch to new tab driver.switch_to.window(driver.window_h