【发布时间】:2015-06-25 08:04:01
【问题描述】:
我是量角器的新手..我需要你的帮助.. 我的代码是这样的..
describe('Protractor Demo Charts', function () {
var url = 'https://angularjs.org/';
it('should get the value of attribute d', function () {
browser.get(url);
element(by.css('.btn-warning')).click().then(function(text){
expect(browser.getCurrentUrl()).toContain('0BxgtL8yFJbacQmpCc1NMV3d5dnM');
}
);
});
});
我的问题是 browser.getCurrentUrl() 仍然返回基本 URL(我来自 'https://angularjs.org/' 的页面)
我怎样才能获得新的 URL(URL AFTER 点击)?
【问题讨论】:
标签: angularjs protractor