- bugsyg
- Posts : 6
Join date : 2010-03-08
Vertify text highlight
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!!
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!!
Re: Vertify text highlight
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
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
- bugsyg
- Posts : 6
Join date : 2010-03-08
Re: Vertify text highlight
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!!
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!!
Permissions in this forum:
You cannot reply to topics in this forum
|
|