NSelene icon indicating copy to clipboard operation
NSelene copied to clipboard

Add Configuration.BaseUrl

Open yashaka opened this issue 4 years ago • 0 comments

With a simple usage like in selenidejs version:

    async open(relativeOrAbsoluteUrl: string): Promise<Browser> {
        // ...

        const absoluteUrl = isAbsoluteUrl(relativeOrAbsoluteUrl) ?
            relativeOrAbsoluteUrl :
            this.configuration.baseUrl + relativeOrAbsoluteUrl;

        await this.driver.get(absoluteUrl);
        return this;
    }

Cover with at least one test using this option and then opening page with relative url.

yashaka avatar Jul 16 '20 12:07 yashaka