Selenium Forum: Functional And Regression Testing Tool.
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Search
Display results as :
Advanced Search
Latest topics
AEM Training | Free Online DemoWed Apr 21, 2021 5:45 pmazharuddin
c# PageFactory - issue initializing elementsFri Nov 01, 2019 8:40 pmthegoatboy
Selenium making automatic connection to random urlsMon Jul 08, 2019 12:58 pmrepairtechsolutions1
How can we design the custom framework in Selenium RCMon Jun 24, 2019 2:26 pmrandybonnettes
What are the new features in Selenium 3.0Tue Jun 18, 2019 5:37 pmpappyvicky
What are you using Selenium for? Fri Apr 12, 2019 3:52 amzhl
LIMITATIONS OF SELENIUMWed Apr 10, 2019 11:23 amswara
Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

Go down
Advisor
Advisor
------------------------
------------------------
Posts : 387
Join date : 2009-07-30
Location : India
https://seleniumforum.forumotion.net

BMP, JPG, PNG, GIF, ICO - verify image property. Empty BMP, JPG, PNG, GIF, ICO - verify image property.

Tue Aug 11, 2009 11:42 am
Hi,

This is the one of problem faced by selenium user, how to verify the image type. Now I am going to provide a solution for that, which is going to work in RC but partially on IDE. I am explaining the verification of google homepage image and its type.

Steps:

1. First we have to get the value for that image stored in application. for this use this command:
For IDE : storeAttribute | logo@style | VariableName
For RC: String varableName = storeAttribute(logo@style );

2. Now after excecuting this command, The variable contain following value
variableName = background: transparent url(/intl/en_com/images/logo_plain.png) no-repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; height: 110px; width: 276px;

3. Now, we have to write code for find the file type in the string to verify it. This can be done in RC through the help of programming language which Selenium support

4. The logic are as follows:

[list=1]
[*] Find the file type in above string by using some string function which find the word in string. if word find mark status pass otherwise fail.


I hope this will help you little bit. Best of luck.[u] Cool Cool
Back to top
Permissions in this forum:
You cannot reply to topics in this forum