Capture span on React element

0

I'm trying to automate the registration of a text in a system made in React. The flow is quite simple, through a menu I come to a form with this text editor field.

This component (react-draft-wysiwyg) generates a hierarchy of DIVs and through a span receives the typed text. It does not have ID because it does not render, by xpath and CssSelector I could not capture it. So I thought about capturing the span, but the span is only created when the text is typed.

Before typing it is a br within a span and after typing it flips a span inside another span that is inside a chain of DIVs

In addition to that every time the form is accessed and the span created xPath changes.

Has anyone ever worked with this React component?

    
asked by anonymous 03.10.2018 / 22:35

0 answers