Web Selector with dynamic ID

web

#1

Hi, I’m struggling with a web based app where the fields that I need to enter data into seem to have dynamic IDs. During my first few tests, it seemed that only the 3rd digit of the four digit number varied, so I replaced it with a wildcard. As testing continued however, I found the number varied more significantly than I had originally thought. This is what I was using originally:

“webctrl id=‘ember42?9’ tag=‘INPUT’”

But I’ve found out the number varies too much. Using ??? or * does not help as (I think) it is picking up other items on the page and getting confused (technical term!).
Does anyone have any suggestions to get around this?

Many thanks,
John


#2

Try to find out different attribute in the selector using UiExplorer.


#3

I am facing similar problem


#4

Can you share a sample?


#5

Hi Prankurjoshi,

i have recently posted a similar question @

How to handle selectors with dynamically changing web IDs?

please let me know if you cant see it. i will share you a sample here.


#6

You should not be using ID attributes generally, use UiExplorer and try to get some reliable attributes. Try to use some relative elector activties


#7

okay, i will try with that. thank you:)


#8

Hi, when I posted originally, I didn’t really understand the UIExplorer. I’ve gone through the training again since and got much more reliable attributes.


#9