Nightwatch: .getText fails on <span> element

Created on 4 Nov 2016  路  5Comments  路  Source: nightwatchjs/nightwatch

it seems that it is impossible to get a text of <span class="test">some text here</span> element. It works fine on <p> element for example.

Does anyone else has the same issue? Am I missing something?

Most helpful comment

This still is present in the latest release. I have the same issue.

All 5 comments

Please review the contributing guidelines for submitting an issue,.

Closing as not able to replicate the issue anymore. Might be a glitch of some sort, not sure.

This issue is happening to me now. I'm unable to get the text inside span elements.
result.value returns as an empty string.

This still is present in the latest release. I have the same issue.

Am facing the same issue. Couldn't retrieve text inside span tag. Below code returns nothing. Can someone help?

client.getText('#SelectAllOUbutton + span', function(result){
console.log(result.value)
})

Was this page helpful?
0 / 5 - 0 ratings

Related issues

danielbentov picture danielbentov  路  4Comments

MateuszJeziorski picture MateuszJeziorski  路  3Comments

Pieras2 picture Pieras2  路  3Comments

bushev picture bushev  路  4Comments

dakebl picture dakebl  路  4Comments