Hi,
I am writing scripts for a web page, which has 7 edit boxes. The element id of each box is unique. The element ids are changing dynamically each time you invoke the page. I inspected the properties of the edit boxes using developer tool bar and below are the details:
I cleared the caches of the page and again invoke the same page. Now I inspect the same edit boxes using Developer tool bar. Now the element ids of the pages have been changed. Below are the details:
Can you please suggest , how can I write the script in such a way that even if the element id changes should not affect my script? I have been asked to write the script using element id only.
Regards,
Pinaki
I am writing scripts for a web page, which has 7 edit boxes. The element id of each box is unique. The element ids are changing dynamically each time you invoke the page. I inspected the properties of the edit boxes using developer tool bar and below are the details:
Code:
EditBox1 : <input type="text" title="ETC: 6.40" alt="ETC: 6.40" class="formFieldNoWidth" maxlength="" size="4" value="" id="d91519e189" name="actuals_hours">
EditBox2: <input type="text" title="ETC: 6.40" alt="ETC: 6.40" class="formFieldNoWidth" maxlength="" size="4" value="" id="d91519e198" name="actuals_hours">
EditBox3: <input type="text" title="ETC: 6.40" alt="ETC: 6.40" class="formFieldNoWidth" maxlength="" size="4" value="" id="d91519e206" name="actuals_hours">
Code:
EditBox1 : <input type="text" title="ETC: 6.40" alt="ETC: 6.40" class="formFieldNoWidth" maxlength="" size="4" value="" id="d96132e187" name="actuals_hours">
EditBox2: <input type="text" title="ETC: 6.40" alt="ETC: 6.40" class="formFieldNoWidth" maxlength="" size="4" value="" id="d96132e196" name="actuals_hours">
EditBox3: <input type="text" title="ETC: 6.40" alt="ETC: 6.40" class="formFieldNoWidth" maxlength="" size="4" value="" id="d96132e204" name="actuals_hours">
Regards,
Pinaki