Search
 
 

Display results as :
 


Rechercher Advanced Search

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

Vertify text highlight

View previous topic View next topic Go down

Vertify text highlight

Post by bugsyg on Tue Apr 20, 2010 6:08 pm

Hi,

there is a search function which will highlight the word we require. Is there a way we can use selenium to validate that the system highlight the correct word?
For example we have
test b
test b

from search function we search for test and it get highlight on background. Now the requirement is to check whether the search function is highlighted the correct word.

Thanks!!

bugsyg

Posts : 6
Join date : 2010-03-08

Back to top Go down

Re: Vertify text highlight

Post by Adviser on Wed Apr 21, 2010 11:34 am

hi,

yes you can do it very easily, you have to just verify the background color is coming for the highlighted text.

you have to do just 2 verification:
1. to verify the text position.
2. to verify the background color is also coming.


Hope this will help you. Best of luck.

Bye

Adviser
------------------------
------------------------

Posts : 379
Join date : 2009-07-30
Location : India

http://seleniumforum.forumotion.net

Back to top Go down

Re: Vertify text highlight

Post by bugsyg on Thu Apr 22, 2010 1:42 pm

Thanks for the quick response..

The edit box is a iframe. When the search and replace box appear the background get locked until the search and replace box exit. before the search and replace box exit, i need to test whether the right text is selected.

can u post a sample code if possible for the above solution? Thanks!!

bugsyg

Posts : 6
Join date : 2010-03-08

Back to top Go down

Re: Vertify text highlight

Post by Sponsored content Today at 7:28 pm


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