Im trying to check a confirmation screen that is dynamically generated.
Problem is the way its developed the name and value are recorded together within the ObRep. eg Field is "Source" and entered value is "Primary Source" so when i see if "Primary Source" exists then the ObRep records "Source: Primary Source"
So i think I'll split the ObReps Value to grab the field Value part and then set the objects value to "Primary Source" using SetTOProperty then check that value against what has been entered from the datasheet.
Seems reasonable. But I get
Cannot identify the object "ObjectName" (of class WebElement)
<font size="2" face="Verdana, Arial, Helvetica">In Help it does state that and i quote
SetTOProperty has no effect on the Active Screen or the values saved in the Object Repository for the object
<font size="2" face="Verdana, Arial, Helvetica">Is there a way of writing values to the object repositry?
Hi there, I am not sure why you need to set the properties in OR (I doubt you can do that). If you want to check the runtime value of some property against some data in DT, you can simply call getROProperty("property_name") and compare it with corresponding entry in DT. Do I understand your question right?
MakeSourceString = "Source: " & DataTable("ItemSource",dtLocalSheet)
If ActualSourceValue = MakeSourceString Then
Reporter.ReportEvent micPass, " Add Item > Confirmation", "Field: Source. Checkpoint Passed."
Reporter.ReportEvent micFail, " Add Item > Confirmation", "Field: Source. Checkpoint Failed - Expected Source not found."
End If</pre><hr /></blockquote><font size="2" face="Verdana, Arial, Helvetica">This works sweet. Still be nice to know if you can write to an OR value. Anyone?