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
avatar
girips29
Posts : 5
Join date : 2010-09-01

How to compare images selenium, using java Empty How to compare images selenium, using java

Thu Sep 02, 2010 12:26 pm

Hi All,
Can anyone please explain me how to compare 2 jpeg images in selenium, using java.
avatar
anatar02
Active particpant
Active particpant
Posts : 12
Join date : 2010-09-05

How to compare images selenium, using java Empty Re: How to compare images selenium, using java

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
avatar
girips29
Posts : 5
Join date : 2010-09-01

How to compare images selenium, using java Empty Re: How to compare images selenium, using java

Mon Sep 06, 2010 12:00 pm
Can you please give me an example of using css selector for comparing images.
avatar
anatar02
Active particpant
Active particpant
Posts : 12
Join date : 2010-09-05

How to compare images selenium, using java Empty Re: How to compare images selenium, using java

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
avatar
girips29
Posts : 5
Join date : 2010-09-01

How to compare images selenium, using java Empty Re: How to compare images selenium, using java

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
avatar
anatar02
Active particpant
Active particpant
Posts : 12
Join date : 2010-09-05

How to compare images selenium, using java Empty Re: How to compare images selenium, using java

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"]...
avatar
girips29
Posts : 5
Join date : 2010-09-01

How to compare images selenium, using java Empty Re: How to compare images selenium, using java

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
avatar
anatar02
Active particpant
Active particpant
Posts : 12
Join date : 2010-09-05

How to compare images selenium, using java Empty Re: How to compare images selenium, using java

Mon Sep 06, 2010 6:41 pm
given url is not accessible by me. it giving "Page not found "
avatar
girips29
Posts : 5
Join date : 2010-09-01

How to compare images selenium, using java Empty Re: How to compare images selenium, using java

Mon Sep 06, 2010 6:48 pm
Please find the below.

http://binodjava.blogspot.com/2009/05/how-to-use-runtimegetruntimeexec-how-to.html
Sponsored content

How to compare images selenium, using java Empty Re: How to compare images selenium, using java

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