React-draft-wysiwyg: Selenium Testing with react-draft-wysiwyg

Created on 5 Jul 2018  路  3Comments  路  Source: jpuri/react-draft-wysiwyg

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?

Most helpful comment

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

All 3 comments

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

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

I inspected the DOM generated.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ananddodia picture ananddodia  路  4Comments

regisBafutwabo picture regisBafutwabo  路  3Comments

Leadrive picture Leadrive  路  3Comments

rajasekar-ideas2it picture rajasekar-ideas2it  路  4Comments

Pixelatex picture Pixelatex  路  3Comments