Showing results for 
Search instead for 
Did you mean: 
Helper I
Helper I

Dynamic selector change

This is the selector I use to select data from a drop down each time when page get reloaded the 856 value alone gets changed with some random value. I tried replacing 856 as * and tried but still error no element found. Please do help  me solution.

div[Id="18:856;a"] > div > div > a[Class="select"]


Regular Visitor

After opening the selector with "Visual Editor", you can try to change the "Operator" of certain "attribute"

This is a screenshot of selectors for "Windows Calculator". You can see that I changed "Equal to" to "Start with" and this still works







If this "ID" is very unstable, I'd suggest you tick it off and use another attribute.


Hello @soumiya, In addition to what @HellitonWoo mentioned, you can also directly customize the selector to any of the following:

  •  div[Id^="18:"] > div > div > a[Class="select"] - this will target the div element which has the Id attribute starting with "18:".
  • div[Id*="18:"] > div > div > a[Class="select"] - this will target the div element which has Id attribute containing "18:"
  • div[Id@="18:.*?;a"] > div > div > a[Class="select"] - this will target the div element which has id attribute matching "18:*a", here regular expression is applied.

Thanks for your reply....

Still its not working throwing same error element not found 

Thanks for your reply....

Still its not working throwing same error element not found

Hello @soumiya, could you please let us know the webpage URL where the element exists? It will help us identify patterns in specific attributes of the target element which do not change dynamically. 

We are trying to automate salesforce Lead process


The above URL is used for automating

 I have attached the screenshot of where I need to automate so in this i need to fill the most of the field. In selector only a part of Id changes for all field i had identified and tried to change it as dynamic but nothing works.



div[Id="18:846;a"] > div > div > a[Class="select"]

this is the selector for first dropdown field here 846 will alone be changing for each entry so i tried with start with option, contains option and lot more but still nothing helped to achieve my task.

Please do help with solutions that would be possible for this selector   


Thanks and Regards


Hi @soumiya 


You could also try using the "has" selector:


You could try several approaches, the following one may be helpful:

div:has( > div > div > a[Class="select"]


Kudo Collector
Kudo Collector


Helpful resources

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Super User 2 - 2022 Congratulations 768x460.png

Welcome Super Users

The Super User program for 2022- Season 2 has kicked off!

Top Solution Authors
Top Kudoed Authors
Users online (3,998)