Wednesday, April 29, 2020

Post#131.How to find broken or invalid images on a web-page using WebDriver? Part 1


How to find broken or invalid images on a webpage using WebDriver? Part 1

There are several ways to accomplish this. Let's discuss one of the easiest available ways. I will keep update the other solutions regard to the same in my next posts..

Solution Statement:

To check if an image is broken, you can simply check if the naturalWidth of the element is 0. You would loop through the images on the page and do this check for each. As for doing this across an entire site, you would have to build a crawler or ideally find an existing one and that's out of scope for a question on SO.

Saturday, April 25, 2020

Post#130.How to handle 'Time out receiving message from the renderer' in chrome driver?


How to handle 'Time out receiving message from the renderer' in chrome driver?


Problem Statement: While executing selenium test cases you may encountered with below repetitive error message .

[1587832910.221][SEVERE]: Timed out receiving message from renderer: 0.100