mercredi 29 avril 2015

Protractor: get url of not angular page

Case I try to test: On Angular app page press button, that redirects you to some other site (not an Angular app).

it('should go to 3d party  service when i click "auth" button' , function() {

    browser.driver.sleep(3000);
    element(by.id('files-services-icon')).click();
    element(by.id('box-vendor-menu-item')).click();
    browser.driver.sleep(2000);

    expect( browser.driver.getLocationAbsUrl()).toContain('http://ift.tt/1h2qJ45');
});

but I get:

UnknownError: unknown error: angular is not defined

How that can be achived? Thanks!

Aucun commentaire:

Enregistrer un commentaire