Bug Fix For Watir 1.5.6

2 views
Skip to first unread message

bugs apple

unread,
Oct 7, 2008, 7:44:47 AM10/7/08
to watir-...@googlegroups.com
 
 
Bret, aidy, and watir developers,
 
Another questions about the email title, there are two issues below I am very concern.
 
a, For the bug ticket in jira, http://jira.openqa.org/browse/WTR-193,  on
our tested system, there are lots of duplicate objects, which are equipped with the input tag, it seemed for me now to not identify them using the index attribute, so, i want to know when fix and release it?
 
b, pls see the script below,
ie=Watir::IE.attach(:title, /QTP/)
ie.text_field(:name => "test").set "abb",
it throws the exception when execute it, in the following version, whether the object support the hash data structure for "How" or "What"
attributes or not, even if there is only one element(key-value) in hash?
such as:  h=hash.new, h={:name=>"test"}, ie.text_field(h).set "Just a test",
 
who can give me some tips and I have to solve it for these urgent issues, or provide some similar ideas ?
 
 At last, Thanks aidy for your reference about the object repository, and I feel free to research into it.


 
2008/10/4 bugs apple <appl...@gmail.com>
hi, everyone,
 
At recently days, we decided to make use of watir to implement the regession test, instead of the QTP(Quick Test Profesional, produced in HP company), which is the namest and strong bussiness automated test tool for web. Althrough the QTP bring us more benefits, we always look the future and work along with the agile script. The watir is best one choice. Comparing the Object spy tool and the object repositry and its manage in QTP, it seemed to us develop the watir code is very slowly. Especially, the developer have to spend much more time to spy the objects on page. For example, If the objects is placed in the container, such as the nested frames, the coder need to reseach into the object hierarchy and see more the object tree map via the MS UI develop tool. Obviously, it is bad thing when we meet more container and it takes more time.
 
So, i want to consult with your guys,
 
Have any soluations to improve the developing  efficiency?
 
If I provide the properties for the object like its unique name,  will the watir throw the object hierarchy and generated the script automatically?
 
Someone can share your experiences, or related technology ideas?
thanks in advance
 
-Wiston

aidy lewis

unread,
Oct 7, 2008, 8:00:46 AM10/7/08
to watir-...@googlegroups.com
On 07/10/2008, bugs apple <appl...@gmail.com> wrote:

> ie.text_field(:name => "test").set "abb",

If you are just hooking onto one attribute use
ie.text_field(:name, "test").set "abb"

for > 1
ie.text_field(:name => "test", :id => "aidy").set "abb"

or

ie.text_field(:name => "test", :index=> 1).set "abb"

or something like that

Aidy

Aidy

bugs apple

unread,
Oct 7, 2008, 8:22:11 AM10/7/08
to watir-...@googlegroups.com
hi, aidy
 
For the current version, the watir support the hash data for the multiple attributes,
but, I fail to execute this statement ie.text_field(:name => "test").set "abb" when only specify one attribute.
In fact, I want to the hash varible for parameter transferring after package it as a function and bring more convenience
for the users, do you think?  have a similar way to solve it?
 
 
thanks
-Wiston


 
2008/10/7 aidy lewis <aidy....@googlemail.com>

Michael Hwee

unread,
Oct 7, 2008, 12:12:01 PM10/7/08
to watir-...@googlegroups.com
Hi Wiston,
The text_field element does not support multiple-attributes as of now.
So, that is not unusual to get error with hash parameter.

Michael


From: bugs apple <appl...@gmail.com>
To: watir-...@googlegroups.com
Sent: Tuesday, October 7, 2008 5:22:11 AM
Subject: [wtr-general] Re: Bug Fix For Watir 1.5.6

bugs apple

unread,
Oct 7, 2008, 9:47:55 PM10/7/08
to watir-...@googlegroups.com
Yes, I known this but I want to get it work.
 
Hi, more watir developers,
 
Another questions about the email title, there are two issues below I am very concern.
 
a, For the bug ticket in jira, http://jira.openqa.org/browse/WTR-193,  on
our tested system, there are lots of duplicate objects, which are equipped with the input tag, it seemed for me now to not identify them using the index attribute, so, i want to know when fix and release it?
 
b, pls see the script below,
ie=Watir::IE.attach(:title, /QTP/)
ie.text_field(:name => "test").set "abb",
it throws the exception when execute it, in the following version, whether the object support the hash data structure for "How" or "What"
attributes or not, even if there is only one element(key-value) in hash?
such as:  h=hash.new, h={:name=>"test"}, ie.text_field(h).set "Just a test",
 
who can give me some tips and I have to solve it for these urgent issues, or provide some similar ideas ?


 
2008/10/8 Michael Hwee <michae...@yahoo.com>

juuser

unread,
Oct 10, 2008, 3:15:44 AM10/10/08
to Watir General

bugs apple

unread,
Oct 10, 2008, 5:39:06 AM10/10/08
to watir-...@googlegroups.com
Good, it's important for us to know when the 1.5.7 release?


 
2008/10/10 juuser <Jar...@gmail.com>

Bret Pettichord

unread,
Oct 10, 2008, 12:42:06 PM10/10/08
to watir-...@googlegroups.com
This issue is fixed in the trunk and will be included in the next
release, later this month.

If you can't wait, you can build from trunk.

Bret


bugs apple wrote:
> Good, it's important for us to know when the 1.5.7 release?
>
>
>

> 2008/10/10 juuser <Jar...@gmail.com <mailto:Jar...@gmail.com>>

Reply all
Reply to author
Forward
0 new messages