我复制了 URL 文本并使用量角器粘贴到浏览器新窗口中,但它正在加载显示对象对象而不是实际 URL



我的实际网址是 https://wallboard.ef.com/dashboard/1

//open in a new tab
var text=browser.actions().sendKeys(protractor.Key.CONTROL, 'v');
browser.executeScript("window.open('"+text+"')"); 

浏览器中过去的结果 URL 是 https://wallboard.ef.com/[对象%20对象] 如何在浏览器新选项卡中获取上面提到的实际URL

我已经更改了现在我使用的代码从剪贴板读取。

browser.executeScript("navigator.clipboard.readText((.then(text => {window.open(text(}(;"(;

最新更新