I have a web page with 25 webedits. I want to verify each webedit- but do not want to create a checkpoint for each individual field. Is that the only way? In windows I could select the window and which fields/objects I wanted to perform checkpoints on. Can I do that for web?
You might need to explain what you want to verify, but if it's checking the text in each of them, then you might have a couple ways of doing that.
If you want it as a checkpoint, you can try using a text one, by inserting it when Recording, and trying to capture all the text on the page, with the information you are checking for already entered into the fields. This way, you are actually comparing the text. The downside is it may be difficult to configure, but mainly it won't let you parametrize it well without including huge strings of text in your table.
If you're talking about having a checkpoint for the existence of '25' WebEdits to identify the page, then that reminds me of a standard checkpoint for a Page object with the links and images attributes, but sadly I don't believe you can't can add rows to this to detect other tags.
Now you can achieve probably any solution here through some structured scripting and/or function library, it just won't take the form of a checkpoint. To achieve this last part, you could add some report output to the script.
Public function verifyWebEditValue(obj, strText)
If obj.getROProperty("value")=strText Then
Reporter.ReportEvent micPass, "WebEdit Text Check point", "Expected value:= " & strText & " Actual Value:= " & obj.getROProperty("value")
Reporter.ReportEvent micFail, "WebEdit Text Check point", "Expected value:= " & strText & " Actual Value:= " & obj.getROProperty("value")
'here you can check all your webedit test objects
set obj1= Browser("b").Page("p").WebEdit("weditname")
Thx fenec- that gives me a great start! But what if I want to get ALL of the webedits and put them in a collection? THat why I can great a loop and pass the values thru as well. Is that possible> So far I have only been ablre to create a collection of links from the Page object- not webedits.