Textbox Properties
Posted: Tue May 09, 2017 5:12 pm
I was wondering if anybody else had experienced the id changing names on a textbox randomly. For example I have a textbox that is changes id's from I_2_4_W3 to I_2_4_W1 randomly. This textbox is an input capable textbox and I am trying to hide the textbox and change the labels to hyperlinks and write a script to put the value into the textbox and hit enter. Which I would normally do with the following script.
changeElementValue("I_2_4_W3","3");
pressKey("ENTER");
However, when I go to save the screen and then test it out, the textbox ID will have changed back to I_2_4_W1. I am not sure that it would be a good idea to put a wildcard at the end somehow so that it will adopt to the id of the textbox changing from W1 to W3 or the other way around.
If anybody has had this issue and resolved it can you please share? Or can I please get some ideas or pointers on what to do to fix this issue?
changeElementValue("I_2_4_W3","3");
pressKey("ENTER");
However, when I go to save the screen and then test it out, the textbox ID will have changed back to I_2_4_W1. I am not sure that it would be a good idea to put a wildcard at the end somehow so that it will adopt to the id of the textbox changing from W1 to W3 or the other way around.
If anybody has had this issue and resolved it can you please share? Or can I please get some ideas or pointers on what to do to fix this issue?