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.

getcurrentUrl|() #87

Closed
Closed
@Douwe92

Description

@Douwe92

it('should login to the backoffice', function () {
var url = ptor.getCurrentUrl();
ptor.findElement(protractor.By.input('username')).sendKeys('username');
ptor.findElement(protractor.By.input('password')).sendKeys('lol');
ptor.findElement(protractor.By.id('login')).click();
var url2 = ptor.getCurrentUrl();
expect(url2).toEqual(url + 'site.lol');
});

Expected 'https://link.com//' to equal '[object Object]site.lol'

Somehow it doesn't want to see url in the toEqual?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions