Monday, 20 May 2013

How to edit a field having dynamically generated ID using WebDriver

How to edit a field having dynamically generated ID using WebDriver

Below is the HTML code for the edit field.
<input class="inputField" id="CG.28443436.1.10.C.28443608.4.ATTATLD.28447933.DPSE.28447934.1.PSE.4974685.1.ATT.3115546.4.ATTRIBUTE" onmouseout="HideTextBoxValueinAltText()" onmousemove="DisplayTextBoxValueasAltText(this);" onfocus="closePopup(this.id);" onblur="enforceNumericEntry('','','',this.value,'Forward SCR/MCR', this, this.id,false);" type="text" size="30"/>
The ID is dynamically generated. Is there a way of identifying this object?
This is the text "Forward SCR/MCR" next to the edit field.

No comments:

Post a Comment