Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Cyber Security
  3. Question
Cyber Security

Can developers add React IDs to an app?

Asked by Ananya Pawar Apr 20, 2022 550 views 1 answer
Share

About this question

 I am writing Selenium automation against a React application. I would like to have unique IDs added to page elements I am testing.


I asked the developers but their response was that this was hard to do because of the dynamic nature of the React application.


I don't know React - is this likely true? Is it likely that they are truly prevented from adding a fixed ID? Could the issue be that QA needs to ask for a different attribute other than ID, perhaps? For example, should it be easy for them to add a data attribute such as data-qa-id?

Your answer

1 Answer

More Cyber Security discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Cyber Security Blogs

Guides, tips and career advice on Cyber Security from JanBask experts.