#Why does Puppeteer not save new textarea value?
1 messages · Page 1 of 1 (latest)
@soft breach just advanced to level 5! Thanks for your contributions! 🎉
Solved.
This works...
-
I had not
.clicked inside the<textarea>.
Whilst I had.clicked the<input>field prior to.typeing into it, I had not done this with the<textarea>- because I wasn't using.typethere; I was having to set the `.values. -
In addition to that, for good measure, I
.clickBack in to the<input>field. -
Also, I `.types an arbitrary value.
I think it was the clicks. Without having clicked the <textarea>, only the apparent .value was getting set.
await page.click('label[data-test-name=long-description-textarea] textarea')
await setSelectVal('label[data-test-name=long-description-textarea] textarea', bodytext)
await page.click('label[data-test-name=long-description-textarea] textarea')
await page.type('label[data-test-name=long-description-textarea] textarea',' ')
await page.click('label[data-test-name=video-name-input] input')