Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» how to connect DB in selenium webriver
Fri Oct 06, 2017 4:09 pm by anbarasi

» How find any text in browser screen and click on it?
Thu Oct 05, 2017 2:02 pm by sandeepkommineni

» Selenium Webdriver
Tue Oct 03, 2017 1:35 pm by PiyushBiswas

» GRID setup tutorial.
Wed Sep 27, 2017 4:29 pm by johnyapp

» Drag & Drop Between Windows Using Selenium Driver
Wed Sep 27, 2017 2:10 pm by 26rondel

» Check if window is closed / verify input
Sat Sep 23, 2017 10:21 pm by brainstir

» How to work on pages with AJAX in selenium?
Mon Sep 18, 2017 6:08 pm by azharuddin

» pause test until user press a key like F2
Wed Aug 09, 2017 11:10 pm by djnforce

» Selecting the input for auto populating element
Sat Jul 29, 2017 7:53 pm by kdabbara

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

How to compare images selenium, using java

View previous topic View next topic Go down

How to compare images selenium, using java

Post by girips29 on Thu Sep 02, 2010 12:26 pm


Hi All,
Can anyone please explain me how to compare 2 jpeg images in selenium, using java.

girips29

Posts : 5
Join date : 2010-09-01

Back to top Go down

Re: How to compare images selenium, using java

Post by anatar02 on Sun Sep 05, 2010 3:17 pm

Selenium RC does not have any specific commands to validate the two image, but you can validate them using css selector

anatar02
Active particpant
Active particpant

Posts : 12
Join date : 2010-09-05

Back to top Go down

Re: How to compare images selenium, using java

Post by girips29 on Mon Sep 06, 2010 12:00 pm

Can you please give me an example of using css selector for comparing images.

girips29

Posts : 5
Join date : 2010-09-01

Back to top Go down

Re: How to compare images selenium, using java

Post by anatar02 on Mon Sep 06, 2010 3:59 pm

you can compare two images with their Properties something like color of image and width and height... So can you tell me that what kind of images you wanted to compare. I can help you If you can elaborate your question

anatar02
Active particpant
Active particpant

Posts : 12
Join date : 2010-09-05

Back to top Go down

Re: How to compare images selenium, using java

Post by girips29 on Mon Sep 06, 2010 4:06 pm

I have 2 jpeg images , i need to check whether those two images are same or not in the runtime. This is the scenario

girips29

Posts : 5
Join date : 2010-09-01

Back to top Go down

Re: How to compare images selenium, using java

Post by anatar02 on Mon Sep 06, 2010 4:46 pm

Okey, We can't check them as like bit map check point but you can check their properties... something like...
css=img[backgrouundcolor="Block"][height="300"]...

anatar02
Active particpant
Active particpant

Posts : 12
Join date : 2010-09-05

Back to top Go down

Re: How to compare images selenium, using java

Post by girips29 on Mon Sep 06, 2010 5:28 pm

Hi, Iam following this blog to compare images http://binodjava.blogspot.com/2009/05/how-to-use-runtimegetruntimeexec-how-to.html..but couldn't run dos commands

girips29

Posts : 5
Join date : 2010-09-01

Back to top Go down

Re: How to compare images selenium, using java

Post by anatar02 on Mon Sep 06, 2010 6:41 pm

given url is not accessible by me. it giving "Page not found "

anatar02
Active particpant
Active particpant

Posts : 12
Join date : 2010-09-05

Back to top Go down

Re: How to compare images selenium, using java

Post by girips29 on Mon Sep 06, 2010 6:48 pm


girips29

Posts : 5
Join date : 2010-09-01

Back to top Go down

Re: How to compare images selenium, using java

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum