Hey! I’ve been in the same boat trying to automate favicon through selenium. What worked for me was using `driver.find_element` with the `rel` attribute to grab the favicon URL.
For missing favicons, I added a try-except block to handle cases where it’s not present. It’s not overkill—it’s actually pretty common in automation scripts.
To verify the image, you can use libraries like `Pillow` to compare the favicon image with a reference image. Hope that helps!
For missing favicons, I added a try-except block to handle cases where it’s not present. It’s not overkill—it’s actually pretty common in automation scripts.
To verify the image, you can use libraries like `Pillow` to compare the favicon image with a reference image. Hope that helps!
