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!!
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 КБ Просмотры: 348
Последнее редактирование: