How to identify img file which is loaded under network monitor console using selenium

172 Views Asked by At

When we navigate to a page and inspect the page, under Network monitor tab > images, we get a list of file names (Ex. imgge.png) as the page is loaded. How do i idientify the image is present when we navigate to a page using selenium script. I have attached the screenshot for reference what im exactly referring to.

enter image description here

1

There are 1 best solutions below

0
satheesh kumar P On
driver.findElement(By.id("imagefile_id")).isDisplayed();

get the id value of the image and use the above script, it return the Boolean value.