Temporarily disable selectors by renaming them

Once you start building more complex sitemaps, you may want to disable certain parts of your sitemap for testing and debugging purposes.

For example, you may want to test some changes to the early (_root) part of your sitemap, but you have other selectors (such as Click Link, Click More, Click Element) further down the graph that need a long time to load and which you do not need to test.

One obvious solution is to just delete the elements you don't want to test. But you would then have to re-create them later and also deal with reordering them within the graph.

To temporarily disable selectors, I just rename them, usually by adding "XXX" in front. WS will "fail gracefully" when it cannot find the selectors and just fill in Null for the data scrapers. Later on, I can just remove the XXX to restore the selector.

2 Likes

If you are looking to do a little more heavy disabling or troubleshooting. Instead of renaming each individual selector, you can also make a dummy selector that sits as a parent (example put the dummy selector's parent as root.

Then you can edit any selectors not being needed and put them under the dummy selector. Which would make them invisible in that pocket selector

1 Like