Search Knowledgebase:![]() |
Monitor data in drop down boxes
User question:
> I monitor a page that has important information in drop down boxes.
> I know there is a plugin to only monitor the OPTION tags, but I also
> need the information that is displayed in the page. Any way to do
> this?
One way would be to duplicate the bookmark and check one copy with the plugin "Monitor OPTION tags", but this is definitely not the most elegant solution.
What I would recommend is to use a private plugin that eliminates the drop down boxes and inserts the entries of the drop down boxes as data into the web page. Then you have both, the page content and the drop down box entries. Here's a plugin code that you can use as starting point.
1. | Open the bookmark properties |
2. | Select the Advanced tab |
3. | Select "Plugin" on the left side |
4. | Click the button "Create Private Plugin" |
5. | Enter the following plugin code: |
Sub Wsw_PreProcessPage(Handle, ByRef sMemWeb, ByRef sStatusMessage, ByRef iStatusCode)
sMemWeb = ReplaceWildcard(sMemWeb, "<option*>", "(")
sMemWeb = ReplaceWildcard(sMemWeb, "</option*>", ") ")
sMemWeb = DeleteAllWildcardMatches(sMemWeb, "<select*>")
sMemWeb = DeleteAllWildcardMatches(sMemWeb, "</select*>")
End Sub