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
Description
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?