tags:

views:

44

answers:

1

I have to capture Site seal. Which provided by third party for my site has been validated and is secured for online transactions. I couldn't capture its element id. If i right click it shows an alert "This Site Seal is protected". Is any way i can capture this by selenium. you can find site seal below the bottom pan in this URL:https://www.grandstadium.tv/Default.aspx

+1  A: 

The HTML for the Site Seal is:

<a onclick="window.open(&quot;https://seals.networksolutions.com/siteseal_seek/siteseal?v_shortname=NETSP&amp;amp;v_querytype=W&amp;amp;v_search=www.grandstadium.tv&amp;amp;x=5&amp;amp;y=5&amp;quot;,&amp;quot;NETSP&amp;quot;,&amp;quot;width=450,height=500,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,copyhistory=no,resizable=no&amp;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"&gt;
</a>

Unfortunately it does not 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 your check might be:

assertVisible | //img[@src='https://seal.networksolutions.com/images/prorecgreen.gif']
Dave Hunt