Google search goggle logo keeps on change so how to verify that log changed or not?

Answered

Google search goggle logo keeps on change so how to verify that log changed or not?

Train Asked on September 7, 2014 in Selenium WebDriver.
Add Comment
  • 1 Answer(s)
    Best answer

    Hi Kishore,

    There are two ways to solve this problem.
    1. Do a bit by bit image comparison of the logo image with your base line. If it fails it is a different image.
    2. You can check the name of the image as shown below.
    The logo part of the HTML on google.com is
    <div title=”Google” align=”left” id=”hplogo” style=’background: url(“/images/srpr/logo11w.png”) no-repeat 0% 0% / 269px 95px; width: 269px; height: 95px;’ onload=”window.lol&amp;&amp;lol()”><div nowrap=”” style=”left: 218px; top: 70px; color: rgb(119, 119, 119); font-size: 16px; font-weight: bold; position: relative;”>India</div></div>

    you can see that the style property has [ style=’background: url(“/images/srpr/logo11w.png”) ] has the path of a .png file. Just extract the url of the image and compare it with your baseline URL.

    Thanks
    Virender

    Professor Answered on September 8, 2014.
    Add Comment
  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.