How to save input fields value on server ? i want to save form value after i submit the values disappears when i reopen the form .
await page.$$eval("input[data-bind='value: SyringeOut']",el=>{
for(i=0; i<el.length; i++){
el[i].value=3;
}
});
page.$$evaldoes the following,querySelectorAllinside the page.Consider rewriting your example like below,
So you should not do a for loop inside the
el => {}block. Since it's a single element.