Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» Selenium WebDriver Integration
Tue Nov 21, 2017 1:06 pm by azharuddin

» 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

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
avatar
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