OnetapInc / chromy

Chromy is a library for operating headless chrome. 🍺🍺🍺
MIT License
605 stars 41 forks source link

insert() does not work for multiple line text #74

Closed gen6033 closed 6 years ago

gen6033 commented 6 years ago

This code works.

Chromy = require("chromy")
chromy = new Chromy({visible:true})
chromy.chain().goto("https://html.com/tags/textarea/").insert("textarea", "abcdef").end()

I added "\n" between "abc" and "def" to the above.

Chromy = require("chromy")
chromy = new Chromy({visible:true})
chromy.chain().goto("https://html.com/tags/textarea/").insert("textarea", "abc\ndef").end()

This does not work.

dotneet commented 6 years ago

Hi @gen6033! Thank you for reporting! This bug will be resolved in next version. Please wait a while.

dotneet commented 6 years ago

I've published v0.5.5 just now. Please check it!

gen6033 commented 6 years ago

It works! Thank you @dotneet.