Highlighted
Absent Member.
Absent Member.
440 views

How to handle Dynamic object properties?

Hello,

 

In my application object description changing frequently.

 

Like some objects having "class "and "html id" are two unique properties only.

but it dynamically changing for each run.

I have already tried regular expressions and those objects not having any other unique native properties too.

 

Could you please suggest me how to handle this situation?

 

 

Thanks,

Manoj

0 Likes
2 Replies
Highlighted
Absent Member.
Absent Member.

Re: How to handle Dynamic object properties?

Hello Manoj, For dynamic object some unique properties, not to go with class and html id. Check for index property. Or you can also check for some label or component around that to identify and then by send keys you can set the focus to required component. Just check it, Same worked for my application. Thank You
0 Likes
Highlighted
Absent Member.
Absent Member.

Re: How to handle Dynamic object properties?

Try using childobjects approach in combination with regular expressions


Accept as solution/Give Kudos to the author if the piece of information answered/helped you to solve your problem.
All the thoughts here are mine not related to my employer nor anyone.
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.