10-31-2011, 12:40 PM
(This post was last modified: 10-31-2011, 12:45 PM by ravi.gajul.)
Yes there is a problem with the code and we can capture the dynamic values from webpage using DP.
In the above code outer html value has got special characters so we cannot directly give its value in the code .It should be normalised.However there could be other properties to uniquely identify the WebElement.Try using other properties like html id.If you are unable to determine such properties
Please post the obj spy snapshot of the web element so that I can help you determine the same.
Note: It need not be innertext always.Look for the property name thats holding the value you want to fetch and give its name in
.GetRoProperty("<name of the property holding the value required by you>")
In the above code outer html value has got special characters so we cannot directly give its value in the code .It should be normalised.However there could be other properties to uniquely identify the WebElement.Try using other properties like html id.If you are unable to determine such properties
Please post the obj spy snapshot of the web element so that I can help you determine the same.
Note: It need not be innertext always.Look for the property name thats holding the value you want to fetch and give its name in
.GetRoProperty("<name of the property holding the value required by you>")