应该很简单,我正在尝试使用量角器单击图像链接。
<a href="//safeweb.norton.com
/a>
Run Code Online (Sandbox Code Playgroud)
我知道我正在做很长的路要走。
var nortonlink = element(by.css('[href="//safeweb.norton.com/"]'));
nortonlink.click();
expect(browser.getCurrentUrl()).toEqual('https://safeweb.norton.com/');
Run Code Online (Sandbox Code Playgroud)
我的期望一直是说它仍然在当前页面上,因此单击不起作用。