Is there a way to Search the text on the page and highlight/screenshot

amul

Client
Регистрация
02.07.2011
Сообщения
145
Благодарностей
10
Баллы
18
I'm trying to figure out how to emulate the FIND command in firefox.

When you do a CNTRL+F in firefox you can type in a string and then enter and IF the text-string is found the page scrolls to that particular string and highlights it.

Take a look at the attached image to get the idea.

I would like to be able to do this with an array of text-strings.. when it finds 1 match zenno takes a screenshot and moves on to the next URL to look for the string and screenshot.

I've got the screenshot thing working but can't figure out how to the highlight/search thing.

On a side note there do appear to be Jquery snippets/libraries
ie: http://www.jquery.info/spip.php?article50 -- out there that might pull this off I suppose I would need to inject jquery and run the script before screenshot-ing via body:monkey.dll

Any help would be MOST appreciated!

- Amul
PS:Thanks for making the most KILLER GUI-Based web-automation tool on the planet!!
 

Вложения

  • 682,8 КБ Просмотры: 328
Последнее редактирование:

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 707
Баллы
113

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)