Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» Geting issues in identifying the elsements in webdriver
Fri Feb 17, 2017 4:41 pm by janbaskt

» WebDriver - why not to use a singlton for it?
Fri Feb 17, 2017 4:40 pm by janbaskt

» WebDriver session when using testng annotation to invoke driver instance
Fri Feb 17, 2017 4:39 pm by janbaskt

» Selenium fails to launch Chrome
Fri Feb 17, 2017 4:39 pm by janbaskt

» why do i get this error
Fri Feb 17, 2017 4:38 pm by janbaskt

» Selenium Tutorial
Thu Feb 16, 2017 5:21 pm by Rahul

» When to use Selenium IDE, RC and WebDriver
Mon Feb 13, 2017 2:35 pm by azharuddin

» How to integrate selenium with ZAPI-Zephyr
Sat Feb 11, 2017 2:25 am by gseera002c

» Selenium Webdriver
Sat Feb 04, 2017 6:47 pm by soumyamishrav@gmail.com

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


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