Hi
I have below code . When i get cell value printed it shows [object HTMLTableCellelement]
Secondly i want to get dropdown selected text value not id.
Thanks
Hi
I have below code . When i get cell value printed it shows [object HTMLTableCellelement]
Secondly i want to get dropdown selected text value not id.
Thanks
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Amit MohantyPosted Jun 20, 2023, 5:37 AM
The reason you're seeing
[object HTMLTableCellElement]when you printcellis because you're trying to print the entire object, which is a DOM element representing a table cell. To access the text content of the cell, you need to use thetextContentproperty: