diff --git a/services/PlaywrightService.js b/services/PlaywrightService.js index 55f030f..25c17d6 100644 --- a/services/PlaywrightService.js +++ b/services/PlaywrightService.js @@ -12,7 +12,16 @@ class PlaywrightService { // constructor constructor(domain) { this.#domain = domain; - this.#url = `https://${domain}`; + } + + // get sitemap url for the this domain + sitemapUrl() { + return `${this.rootUrl()}/sitemap.xml`; + } + + // get the url of the site to be tested + rootUrl() { + return `https://${domain}`; } /**