jeudi 20 septembre 2018

How do I use selenium to locate html elements via class with React App

I'm looking for a best way to locate elements with class names with Selenium for a React Application.

React generates a unique hash beside each class name e.g. "wrapper--5kGNf"

I'm considering to append a unique reference to each element in React, which would be solely done for testing purposes.

Aucun commentaire:

Enregistrer un commentaire