How to clear a field with Puppeteer?

Hello guys
I want to know how to clear a field that contains a text value in Puppeteer like we used to do in OB 1 using the Clear function in Selenium elements

Example from OB 1: https://i.imgur.com/u9elUiJ.png

Guys I need help with that please?

Use the set attribute value block, point it to the input element, the attribute you want to clear will be called value and its value will be an empty string.

immagine

1 Like

It worked perfectly, much appreciated Ruri

Also could you please post some guides for such situation?

Honestly people can just use the search function of the forum :sweat_smile: it’s there for this exact reason

1 Like

Yeah, but sometimes we can’t find what we’re looking for that’s why, BTW thank you again :blush:

Well in that case just make a new thread and I will link an existing one or reply if it’s never been asked before

1 Like

Sure, I’d appreciate that

Can you please tell me why I’m getting BAN here though the keyword exists!

image

Because the “Get DOM” block does not write the DOM to the SOURCE variable like in OB1, it writes the output to a custom variable that you define. Please check that block and see the name of the output variable and write that one instead of data.SOURCE

2 Likes

It worked, thanks Ruri