cancel
Showing results for 
Search instead for 
Did you mean: 

Overwrite Namemapping Configuration in Runtime

SOLVED
Frequent Contributor

Overwrite Namemapping Configuration in Runtime

Is it possible to overwrite a mapped objects className within a script during runtime?

 

NameMapping.bla.element.this.className ="newClassName"

 

Sadly this doesnt work, it only overwrites the classname in the HTML document.

 

Is it possible to overwrite the className within the mapped objects NameMapping tree? 

 

I know there is a workaround with a project variable, which you can set during runtime and use it as namemapping, but I am curious if its possible to overwrite the configuration during runtime

1 ACCEPTED SOLUTION

Accepted Solutions
Community Hero

Re: Overwrite Namemapping Configuration in Runtime

No, you cannot do that.  As you noted, you can use a project variable, but there is no way to alter the values of the properties used for object identification otherwise.

 


Robert Martin
[Community Expert Group]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Extensions available

View solution in original post

1 REPLY 1
Community Hero

Re: Overwrite Namemapping Configuration in Runtime

No, you cannot do that.  As you noted, you can use a project variable, but there is no way to alter the values of the properties used for object identification otherwise.

 


Robert Martin
[Community Expert Group]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Extensions available

View solution in original post

New Here?
Join us and watch the welcome video:
Top Kudoed Authors