First, you have to prepare a xls file, in the file, in the file, the data is your expected data, the format is as below: s.pageName "Home Page" s.channel "AAAA" s.prop3 "xxxxx" Please write a method, get all the data from xls out into an array/hash A;
Second, you have to capture all the sc value out from the page source, suppose the value is actual_sc_values. *actual_sc_values = ie.html.scan(/s\..*/)* The comment can capture all the s.**** out into an array, you can make it an array or a hash B. Then, you just need compare A to B. Do you think so? Wesley. For life, the easier, the better. On Fri, Jun 11, 2010 at 2:58 PM, Marlon <[email protected]> wrote: > Ah ok, sorry I over looked this one, yes it is implemented using > javascript > > Example: > > <script type="text/javascript" language="JavaScript"> > s.pageName = "Home Page"; > s.channel = "Home Page"; > s.prop3 = "Home Page"; > s.prop34 = "No"; > s.eVar18 = "No"; > </script> > > Can you show me a sample script for checking this? > > -- > Before posting, please read http://watir.com/support. In short: search > before you ask, be nice. > > You received this message because you are subscribed to > http://groups.google.com/group/watir-general > To post: [email protected] > To unsubscribe: > [email protected]<watir-general%[email protected]> > -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: [email protected] To unsubscribe: [email protected]
