S
S
Sergey Tryapkin2021-05-27 11:57:47
Automation
Sergey Tryapkin, 2021-05-27 11:57:47

Where does it come from and how to bypass displayed:false in a React application when receiving an element through Selenide?

Hello.
I have a react application for which I am writing tests, and I ran into such a problem.
When I try to get an element through Selenide (ex $("elem")), I get back an element with the displayed:false attribute.
When trying to interact with such an element, Selenide swears that the element is invisible.
At the same time, this element does not have such an attribute in the browser, and everything is rendered perfectly.

Returned element example:

<button class="button button_size_m button_width_available" data-test-id="google-play-btn" role="button" type="button" value displayed:false></button>


The fronts could not help.
How can I get around this problem, or where to specify / what to say to the fronts to fix it.
Thanks in advance)

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question