jpuri / react-draft-wysiwyg

A Wysiwyg editor build on top of ReactJS and DraftJS. https://jpuri.github.io/react-draft-wysiwyg
MIT License
6.42k stars 1.16k forks source link

Selenium Testing with react-draft-wysiwyg #689

Open trongbang86 opened 6 years ago

trongbang86 commented 6 years ago

I'm trying to write selenium test for this.

find('div.public-DraftStyleDefault-block public-DraftStyleDefault-ltr', visible: false).set('some value')

However it doesn't work. How can I test this with selenium?

trongbang86 commented 6 years ago

found the answer: find('div.public-DraftEditor-content', visible: false).send_keys 'desc'

PEZO19 commented 6 years ago

@trongbang86 Thank you very much! I was looking for that for a while! Could you please tell me how did you find it?

trongbang86 commented 6 years ago

I inspected the DOM generated.