01-14-2011, 05:36 PM
I am using a script against a web page that creates pension quotations.
I am outputting the various results to the DataTable but I also want to have the values available in my code.
On one page, these values are contained in TextBox controls and so I can get the value in my code with GetROproperty.
I can also get the value from my CheckPoint object with GetTOproperty, which seems odd but it works:
However, on my next page, the values are just in HTML. My Output object (I call it a CheckPoint but not sure it is) says it will "output the text that is displayed between xxx and yyy into <zzz>". This outputs to the datatable but I can't retrieve the value (unless I read it back from the table). I have no web object to interrogate, and I don't seem to be able to add the output region as an object in the OR. And for some reason, the CheckPoint object in my code has no properties I can access this time. The IntelliSense says it has 'getproperty', 'setproperty', 'output' and 'check' but none of these seem to work, nor do RO/TOproperty.
I expect I'm doing something wrong, but I can't see how I can get the value from the text area on the page. Can you help?
Apologies for length
Paul
I am outputting the various results to the DataTable but I also want to have the values available in my code.
On one page, these values are contained in TextBox controls and so I can get the value in my code with GetROproperty.
I can also get the value from my CheckPoint object with GetTOproperty, which seems odd but it works:
Code:
Browser.Page.WebEdit("result1").Output CheckPoint("first")
myresult = WebEdit("result1").GetROproperty("value")
sameresult = CheckPoint("first").GetTOproperty("value")
However, on my next page, the values are just in HTML. My Output object (I call it a CheckPoint but not sure it is) says it will "output the text that is displayed between xxx and yyy into <zzz>". This outputs to the datatable but I can't retrieve the value (unless I read it back from the table). I have no web object to interrogate, and I don't seem to be able to add the output region as an object in the OR. And for some reason, the CheckPoint object in my code has no properties I can access this time. The IntelliSense says it has 'getproperty', 'setproperty', 'output' and 'check' but none of these seem to work, nor do RO/TOproperty.
Code:
Browser.Page.Output objCheckPoint 'This works
myresult = objCheckPoint.GetTOproperty("value") 'this doesn't
I expect I'm doing something wrong, but I can't see how I can get the value from the text area on the page. Can you help?
Apologies for length
Paul