This repository was archived by the owner on Jun 3, 2024. It is now read-only.
This repository was archived by the owner on Jun 3, 2024. It is now read-only.
[Dev] - Replace self.wait_for_element_by_css_selector
with selenium's methods #288
Open
Description
I wrote some testing utils on top of selenium to do things like "wait for an element to appear". they're kind of hacky and sometimes they seem unreliable. So, sometimes we end up putting time.sleep
in our tests instead of some proper wait for statement.
Turns out that selenium has its own "wait for" methods. We should replace our utils with these new methods and start using these methods in our new tests.
Here is an example of the official selenium "wait" API:
https://github.com/plotly/dash-component-boilerplate/blob/1d2ee1d9fc1b6fa834fda3dc38064297f8154085/tests/test_render.py#L4-L23
cc @plotly/dash
Metadata
Metadata
Assignees
Labels
No labels