Protractor console log

前端 未结 6 1480
[愿得一人]
[愿得一人] 2020-12-04 16:48

I want to output the text of a div in my protractor test, so far I have:

console.log(ptor.findElement(protractor.By.id(\'view-container\')).getText());
         


        
6条回答
  •  长情又很酷
    2020-12-04 17:15

    you can try this one:

    const textInfo = element(by.id('view-container'));
    console.log('text: ', textInfo.getText());
    

提交回复
热议问题