您好,我是 JavaScript、TypeScript 和 Serenity JS 的新手。我正在尝试从网站的 HTML 中获取 URL。谷歌这个例子。
我的演员和剧本如下:''' describe( TodoMVC app
, () => {
const links = Target.the('URL links').located(by.tagName('a'))
it(`helps us learn Serenity/JS`, () =>
actorCalled('Jasmine')
.whoCan(
BrowseTheWeb.using(protractor.browser),
Navigate.reloadPage(),
)
.attemptsTo(
Navigate.to('https://www.google.com/'),
Log.the(Website.url()),
Log.the(Website.title()),
Log.the(links[0])
));
}); ''' 我正在尝试从 Serenity JS github 页面修改示例演示代码。Log.the(links[0]) 返回 undefined 而不是 URL。我该如何解决这个问题?提前致谢。