Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

browser.getCurrentUrl() returning an object instead of URL #2324

@jkurikeshu

Description

@jkurikeshu

I am running a protractor test to test if the proper URL is being displayed. When logging the method getCurrentUrl() within browser, I receive an object. Is there something I am missing?

describe('angularjs homepage todo list', function() {
    it('should add a todo', function() {
        browser.get('https://angularjs.org');

        console.log(browser.getCurrentUrl());
    });
});

Here is the output with the object logged instead of URL.

issue-url

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions