0

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'].

  • 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.

|improve this answer|||||

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