Re: [Wtr-general] Did the implementation for contains_text change?

2006-06-28 Thread Zeljko Filipin
You can get that warning if you use --verbose parameter: ruby --verbose test.rb On 6/27/06, Bret Pettichord [EMAIL PROTECTED] wrote: The example you provide should not give that warning. (It doesn't for me.) ___ Wtr-general mailing list

Re: [Wtr-general] Interesting link problem

2006-06-28 Thread Zeljko Filipin
ie.link(:index, 1).clickOn 6/28/06, David Solis [EMAIL PROTECTED] wrote:Does anybody have any idea how I can click on the first link? ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

[Wtr-general] to_a method on a table and accessing elements

2006-06-28 Thread Adrian Rutter
If I use the to_a method on an HTML table, e.g. $ie.table(:id, /TerritoryEmployee/).to_a How do I access each individual element? Thanks Aidy --- This message and any attachment

Re: [Wtr-general] to_a method on a table and accessing elements

2006-06-28 Thread Zeljko Filipin
Try this (but I have not tried it, so I do not know if it works):table = $ie.table(:id, /TerritoryEmployee/).to_atable.each do |element| puts elementendor$ie.table(:id, /TerritoryEmployee/).to_a.each do |element| puts element endOn 6/28/06, Adrian Rutter [EMAIL PROTECTED] wrote: If I use the

Re: [Wtr-general] to_a method on a table and accessing elements

2006-06-28 Thread Bret Pettichord
This method returns an array of strings, not an array of elements.BretOn 6/28/06, Adrian Rutter [EMAIL PROTECTED] wrote:If I use the to_a method on an HTML table,e.g. $ie.table(:id, /TerritoryEmployee/).to_a How do I access each individual

Re: [Wtr-general] Need help populating a field array using variables

2006-06-28 Thread Rand Thacker
ie.text_field(:name,"grade_result_list[#{x}].beanCount").set("800")should do the trick. Hope that helps On 6/28/06, Legarreta, Frank [EMAIL PROTECTED] wrote: When I hardcode an array to a set value it works: ie. "grade_result_list[1].beanCount" (where 1 is the array

Re: [Wtr-general] Need help populating a field array using variables

2006-06-28 Thread Bret Pettichord
I misunderstood the question. I like Rand's answer.On 6/28/06, Rand Thacker [EMAIL PROTECTED] wrote: ie.text_field(:name,grade_result_list[#{x}].beanCount).set(800)should do the trick. Hope that helps On 6/28/06, Legarreta, Frank [EMAIL PROTECTED] wrote: When I hardcode

[Wtr-general] checkbox list created by javascript

2006-06-28 Thread Andy Case
Hi, I need to set a checkbox within a _javascript_, that creates a list of people with Id's. I need to be able to set the checkbox associated with an ID. Anyone help? HTML extract tabletbody/tbody/table /div/divp/p script type="text/_javascript_" language="_javascript_" function