Re: [Wtr-general] xpath question (not Watir related)

2007-05-11 Thread Angrez Singh
Hi, Can you give this a try? e = REXML::Document.new(ie.text).root.elements e[/tokens/ShortUrl[starts-with(@url, resetpassword.aspx?m=7fb83717-9606-4022-bd4e-67b6f6582ada].attributes[url] As you already know value of 'm' in query string you can create a string a give it a try. - Angrez

Re: [Wtr-general] Running test script once for each datarow in excel

2007-05-11 Thread Charley Baker
David Brown posted an interface to Excel on the Watir user contributions area with an example usage case that steps through rows: http://wiki.openqa.org/display/WTR/Excel+interface+class -Charley On 5/11/07, Vipul [EMAIL PROTECTED] wrote: i am testing a site which has login page. i want to

Re: [Wtr-general] Running test script once for each datarow in excel

2007-05-11 Thread Ian Webb
This is very simple with a CSV file: require 'csv' CSV::Reader.parse(File.open(ARGV[0], 'rb')) do |row| #open the filename given as first command line argument userid = row[0] #note that the CSV module index starts at 0 passwd = row[1] loginToSite(userid,passwd) #whatever your login code

Re: [Wtr-general] Solution for FAQ Using key/value pairs not working

2007-05-11 Thread Charley Baker
Looks like user_Name is not defined for your LoginInput class. Check your casing and make sure it exists there. Might be something like user_name, not user_Name. Otherwise we'd have to have more information on your LoginInput class. -Charley On 5/11/07, Vipul [EMAIL PROTECTED] wrote: now i am