I am providing additional information that might help with providing a solution:
All of our 40 institutions are required by law to place a logo on 2 of their web pages – distance learning and advising - that we provide to them. We give them the image (logo) and they place it on their pages.
Searching for an HTML element displaying the desired image
We tried various ways do find the image on the pages but because the image name is not the same for each website or the size is different, the location varies, the id is different, etc. , find an image using "Searching for an HTML element displaying the desired image" doesn’t seem to be the way to go.
We used the sample code using python provided in the documentation for Searching for the desired image using picture comparison
We then did picture in a picture to compare the image of the logo but still come up with image not found. We may have something not coded correctly I am thinking this must be the way to go since all of the webpages will be different but the image will be the same except size and coloring may be different. The only thing constant is the text on the image.
I am thinking of another option - OCR recognition to just find the text on the image. Can that been done if we can’t get picture in a picture to work? Could the web page be the object and then do the OCR Checkpoint for just the text on the image? Or will the image object have to be identified on the page?
I don't know much about the image comparison but I was thinking how I might approach this test, so maybe this is an option for you that's easier to implement.
I would get the image names and locations from each site and put them in a file or spreadsheet. Include a flag in the spreadsheet for In Compliance and set that now as well, in case some pages aren't good when you start.
Have your test run through the file and if the flag is false, log an error. If the same image is found in the same place as before, no error and flag is set to true. If the image is not found, log an error and set the flag to false. Chances are the ones in compliance won't change very often so the list shouldn't take much maintenance and you need a list of the out of compliance ones anyway.
Thank you Marsha. Unfortunately, there is only 1 in 40 that are in compliance. That solution would make the script maintenance intense and static. Need to be able to dynamically check each page (80 pages). As it is, the URLs to the pages changes too often and we have a check for valid URL as well. I appreciate all of your help!