How to verify the SSL logo is presented or not?

SSL logo will be presented in some sites to certify the secure online transaction like the below .

We can't capture this by selenium directly. We can use following method to verify the site seal is presented or not.

HTML Source


<a onclick="window.open(&quot;https://seals.networksolutions.com/siteseal_
seek/siteseal?v_shortname=NETSP&amp;v_querytype=W&amp;v_search=www.sitename.com
&amp;x=5&amp;y=5&quot;,&quot;NETSP&quot;,&quot;width=450,height=500,toolbar=no,
location=no,directories=no,status=no,menubar=no,
scrollbars=no,copyhistory=no,
resizable=no&quot;);return false;" href="#">
<img oncontextmenu="alert('This SiteSeal is protected');return false;" style="border: 
medium none ;" src="https://seal.networksolutions.com/images/prorecgreen.gif">
</a>

It wouldn't have an ID for locating the element, 
however you could use the following XPath to locate it:
//img[@src='https://seal.networksolutions.com/images/prorecgreen.gif']
So Our approach can be like
assertVisible | //img
[@src='https://seal.networksolutions.com/images/prorecgreen.gif']
 
 

10 comments:

  1. Thanks for sharing great information in your blog. Got to learn new things from your Blog . It was very nice blog to learn about Selenium

    ReplyDelete
  2. Looking for best training in SELENIUM, take a glance at http://thecreatingexperts.com/selenium-training-in-chennai/

    ReplyDelete
  3. I was looking for Selenium and Appium training in Chennai and got a link,it was the CREATING EXPERTS.

    If you are looking for one click the link below and contact 8122241286.

    http://thecreatingexperts.com/appium-training-in-chennai/
    http://thecreatingexperts.com/selenium-training-in-chennai/

    ReplyDelete
  4. THE CREATING EXPERTS is one of the leading training provider in SELENIUM they provide hands on training with real time scenario

    http://thecreatingexperts.com/selenium-training-in-chennai/

    contact +91-08122241286

    ReplyDelete
  5. The Creating Experts provides training in SELENIUM

    http://thecreatingexperts.com/selenium-training-in-chennai/

    contact +91-08122241286

    ReplyDelete
  6. Nice blog...

    Selenium training institute which provides Real Time Hands on Training…THE CREATING EXPERTS

    http://thecreatingexperts.com/selenium-training-in-chennai/


    contact-8122241286

    ReplyDelete
  7. SELENIUM training in Chennai

    http://thecreatingexperts.com/selenium-training-in-chennai/

    SELENIUM training in Chennai by THE CREATING EXPERTS ,

    They provide you hands on training with real time scenarios

    contact 8122241286

    ReplyDelete
  8. Hi, all nice blog for a long time i was searching for a real time trainer and landed with my trainer in selenium
    SELENIUM training is provided by THE CREATING EXPERTS in CHENNAI

    http://thecreatingexperts.com/selenium-training-in-chennai/

    Contact 8122241286 for more info

    ReplyDelete
  9. Nice blog...

    Selenium training institute which provides Real Time Hands on Training…THE CREATING EXPERTS

    http://thecreatingexperts.com/selenium-training-in-chennai/


    contact-8122241286

    ReplyDelete
  10. NICE BLOG...Selenium training in CHENNAI provided by THE CREATING EXPERTS

    http://thecreatingexperts.com/selenium-training-in-chennai/

    CONTACT 8122241286.

    ReplyDelete