typeof returns string but console logs [object Object]

前端 未结 0 825
时光取名叫无心
时光取名叫无心 2020-12-16 05:57

In my Protractor code, I noticed this strange behavior:

let foo = page.getElementText(element(by.xpath("//wha/t/e/v/e/r")))
console.log(typeof foo)          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题