Dominator chain text method getting value from a dom element, you need first to query it then call method val directely.
const fullname = D$('input[name="fullname"]').val(); console.log(fullname);