0

This question already has an answer here:

I am trying to automate a minimal form interface using Selenium to capture an element & later Java code.

But the challenge is the minimal form has only one input container which is constantly changing and the input container generates dynamic id's so finding the element by id name is not possible.

The input container cannot be mapped with xpath because xpath also uses the id eg. //md-select[@id='select_15'].

marked as duplicate by Michael Durrant, Kate Paulk, ECiurleo, JustARandomGuy, Paul Muir Apr 11 '16 at 11:32

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • Please provide HTML code – Sagar007 Apr 2 '16 at 12:55
0

Use this xpath for your selection //md-select[contains(@id,'select')]

  • Contains function use for finding containing values. Refer This

Let me know If any query.

Not the answer you're looking for? Browse other questions tagged or ask your own question.