The 4 digits in the xpath are autogenerated per browser session. I need to find that partic...">
Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Cyber Security
  3. Question
Cyber Security

How can I use the regular expression to identify xpath regex?

Asked by Amit Jaisawal Feb 24, 2022 610 views 1 answer
Share

About this question

 I need to access this element:


<input id ="combo-1105-inputWrap">

The 4 digits in the xpath are autogenerated per browser session. I need to find that particular xpath and key in the data.


I have tried to use a regular expression in my xpath but I am not able to make this work. //*[contains(id,'combo-1[0-9]{3}') and ends-with(id,'-inputWrap')] How can I reliably access this element?


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.