Refactored SeleniumContext sitemap manipulation