phantombuster / nickjs

Web scraping library made by the Phantombuster team. Modern, simple & works on all websites. (Deprecated)
https://nickjs.org
ISC License
501 stars 48 forks source link

Filling a value in textarea #28

Closed jprrabanal closed 6 years ago

jprrabanal commented 6 years ago

How do you insert a text inside a textarea that is not belongs to a form tag?

jprrabanal commented 6 years ago

nvm, i found out that we should use sendKeys.

paps commented 6 years ago

Glad you figured it out :)

Another way of doing it is injecting jQuery if necessary (tab.inject()), then tab.evaluate() of $('#field').val('your text')

jprrabanal commented 6 years ago

@paps Awesome, Thanks!