[wtr-general] Re: Multiple attributes don't supported for FRAME element

2009-07-13 Thread Ivan Kabluchkov

Sorry, but this is not good example. Here is one more which doesn't
work:

ie.frame({:name => 'content', :src='frame.html'})

On 13 июл, 21:54, orde  wrote:
> Check out:http://wiki.openqa.org/display/WTR/Methods+Supported+by+Element
>
> Multiple attributes are supported for the  tag, but the 'class'
> attribute is not supported for the  tag.
>
> Hope that helps...
>
> orde
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Multiple attributes don't supported for FRAME element

2009-07-13 Thread orde

Check out: http://wiki.openqa.org/display/WTR/Methods+Supported+by+Element

Multiple attributes are supported for the  tag, but the 'class'
attribute is not supported for the  tag.

Hope that helps...

orde

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Multiple Attributes for Text Fields

2009-06-01 Thread Prajakta Jadhav
thats really cool!

On Mon, Jun 1, 2009 at 9:12 PM, Chuck van der Linden wrote:

>
> On May 30, 4:50 am, karimnumerouno  wrote:
> > hi could any one share a link our some stuff of multi attribute
> > selection, it there any doc there
> >
>
> be a tool user:  http://www.lmgtfy.com/?q=watir+multiple+attributes
>  >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Multiple Attributes for Text Fields

2009-06-01 Thread Chuck van der Linden

evil grin..  yeah that's the passive-agressive 'clue-by-four' version
of a google link.   I use it in cases where I feel I'm faced with the
infamous (give-fish <> teach-to-fish) situation.

you can just go to www.lmgtfy.com  (Let Me Google That For You) put in
the terms, and it creates a link you can paste into responses.

If the seach terms are less than obvious, I don't generally use it..
but if the 'obvious' search terms return the desired info as the top
item in the results...

Now, back to solving the issue at hand...

On Jun 1, 8:55 am, Charley Baker  wrote:
> That's excellent, I've never seen the automated version.
>
> -c
>
> On Mon, Jun 1, 2009 at 9:42 AM, Chuck van der Linden wrote:
>
>
>
>
>
> > On May 30, 4:50 am, karimnumerouno  wrote:
> > > hi could any one share a link our some stuff of multi attribute
> > > selection, it there any doc there
>
> > be a tool user:  http://www.lmgtfy.com/?q=watir+multiple+attributes- Hide 
> > quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Multiple Attributes for Text Fields

2009-06-01 Thread Chuck van der Linden

On May 28, 11:49 am, marekj  wrote:
> Your issue is using :id
> Per html spec there should not be a second instance of the same id on the 
> page.
> if element with :id is found on the page Watir will not look for
> another instance on the page
> If you are stuck with :id and your developer absolutesly refuses to
> only maintain one instance of id then
>
> ie.text_fields.select {|tf| tf.id == "aaa"}[1].click #will blow up if
> there is no second one.
>

and file a bug that the page(s?) is(are) violating HTML protocol
standards, and is not valid HTML.   I know of few projects and orgs
where developers are 'by design' allowed to create web pages that
don't meet HTML standards.  it's usually defined or implied in the
product spec that the pages have to all be valid HTML.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Multiple Attributes for Text Fields

2009-06-01 Thread Darin Duphorn
That is nice.

 



From: watir-general@googlegroups.com
[mailto:watir-gene...@googlegroups.com] On Behalf Of Charley Baker
Sent: Monday, June 01, 2009 10:56 AM
To: watir-general@googlegroups.com
Subject: [wtr-general] Re: Multiple Attributes for Text Fields

 

That's excellent, I've never seen the automated version. 

-c

On Mon, Jun 1, 2009 at 9:42 AM, Chuck van der Linden 
wrote:


On May 30, 4:50 am, karimnumerouno  wrote:
> hi could any one share a link our some stuff of multi attribute
> selection, it there any doc there
>

be a tool user:  http://www.lmgtfy.com/?q=watir+multiple+attributes

 





--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Multiple Attributes for Text Fields

2009-06-01 Thread Charley Baker
That's excellent, I've never seen the automated version.

-c

On Mon, Jun 1, 2009 at 9:42 AM, Chuck van der Linden wrote:

>
> On May 30, 4:50 am, karimnumerouno  wrote:
> > hi could any one share a link our some stuff of multi attribute
> > selection, it there any doc there
> >
>
> be a tool user:  http://www.lmgtfy.com/?q=watir+multiple+attributes
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Multiple Attributes for Text Fields

2009-06-01 Thread Chuck van der Linden

On May 30, 4:50 am, karimnumerouno  wrote:
> hi could any one share a link our some stuff of multi attribute
> selection, it there any doc there
>

be a tool user:  http://www.lmgtfy.com/?q=watir+multiple+attributes
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Multiple Attributes for Text Fields

2009-05-31 Thread Charley Baker
http://wiki.openqa.org/display/WTR/Multiple+Attributes



Charley Baker
blog: http://blog.charleybaker.org/
Lead Developer, Watir, http://wtr.rubyforge.org
QA Architect, Gap Inc Direct


On Sat, May 30, 2009 at 5:50 AM, karimnumerouno  wrote:

>
> hi could any one share a link our some stuff of multi attribute
> selection, it there any doc there
>
>
>
>
> On May 30, 3:52 am, Al Snow  wrote:
> > Try this:http://wiki.openqa.org/display/WTR/Basic+Authentication
> >
> > Thanks,
> > Al Snow
> > Linkedin:http://www.linkedin.com/in/alsnow
> > Google Talk: jasnow1
> > Twitter: jasnow
> >
> > Date: Thu, 28 May 2009 16:02:16 -0400
> > Subject: [wtr-general] Re: Multiple Attributes for Text Fields
> > From: parvinder.gho...@gmail.com
> > To: watir-general@googlegroups.com
> >
> > i updated to 1.6.2 and all of sudden i'm getting the following error:
> >
> > c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie.rb:113:in
> `initialize': failed to create WIN32OLE object from `AutoItX3.Control'
> (WIN32OLERuntimeError)
> >
> > HRESULT error code:0x8007007e
> >   The specified module could not be found.
> > from
> c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie.rb:113:in `new'
> > from
> c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie.rb:113:in `autoit'
> >
> > from
> c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb:425:in
> `autoit'
> > from
> c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb:413:in
> `bring_to_front'
> > from test.rb:34
> >
> > When i do this:
> > --
> > 1. require 'watir'
> > 2. browser = Watir::IE.new()#(:title, /elements f/i)
> > 3. browser.goto("file:///C:/fit/unittests/html/elements_index.html")
> >
> > 4. browser.bring_to_front
> > 5. browser.text_field(:id=>"txt_description", :index=>3).flash
> > 6. browser.select_list(:id=>"dd_status", :index=>2).flash()
> >
> --
> >
> > Error is occurring at line 4 every single time.  If i comment it out the
> script works fine.
> >
> > Any help is appreciated.
> >
> > Thanks,
> > Parvinder
> >
> > On Thu, May 28, 2009 at 3:32 PM, Parvinder Ghotra <
> parvinder.gho...@gmail.com> wrote:
> >
> > Thanks Charlie.
> > i'm running watir-1.5.6.
> >
> > so i should move to 1.6.2?
> >
> > Parvinder
> >
> > On Thu, May 28, 2009 at 2:07 PM, Charley Baker 
> wrote:
> >
> > Multiple attribute support for input elements is supported in the latest
> version. Which version are you running?
> >
> > -c
> >
> > On Thu, May 28, 2009 at 12:05 PM, Parvinder Ghotra <
> parvinder.gho...@gmail.com> wrote:
> >
> > Did watir ever provide multiple attribute support for Text fields and
> Drop downs.  I was very surprised to find that the following doesn't work:
> >
> > $ie.text_field(:id => "aaa", :index => 2)
> >
> > Is there plan to provide multiple attribute support for things like Text
> fields, drop downs, radio buttons, checkboxes and etc.
> >
> > Thank you!
> >
> > Parvinder Ghotra
> >
> > --
> > Parvinder Ghotra
> >
> > --
> > Parvinder Ghotra
> >
> > _
> > Hotmail® has a new way to see what's up with your friends.
> http://windowslive.com/Tutorial/Hotmail/WhatsNew?ocid=TXT_TAGLM_WL_HM...
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Multiple Attributes for Text Fields

2009-05-30 Thread karimnumerouno

hi could any one share a link our some stuff of multi attribute
selection, it there any doc there




On May 30, 3:52 am, Al Snow  wrote:
> Try this:http://wiki.openqa.org/display/WTR/Basic+Authentication
>
> Thanks,
> Al Snow
> Linkedin:http://www.linkedin.com/in/alsnow
> Google Talk: jasnow1
> Twitter: jasnow
>
> Date: Thu, 28 May 2009 16:02:16 -0400
> Subject: [wtr-general] Re: Multiple Attributes for Text Fields
> From: parvinder.gho...@gmail.com
> To: watir-general@googlegroups.com
>
> i updated to 1.6.2 and all of sudden i'm getting the following error:
>
> c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie.rb:113:in 
> `initialize': failed to create WIN32OLE object from `AutoItX3.Control' 
> (WIN32OLERuntimeError)
>
> HRESULT error code:0x8007007e
>   The specified module could not be found.
> from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie.rb:113:in 
> `new'
> from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie.rb:113:in 
> `autoit'
>
> from 
> c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb:425:in 
> `autoit'
> from 
> c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb:413:in 
> `bring_to_front'
> from test.rb:34
>
> When i do this:
> --
> 1. require 'watir'
> 2. browser = Watir::IE.new()#(:title, /elements f/i)
> 3. browser.goto("file:///C:/fit/unittests/html/elements_index.html")
>
> 4. browser.bring_to_front
> 5. browser.text_field(:id=>"txt_description", :index=>3).flash
> 6. browser.select_list(:id=>"dd_status", :index=>2).flash()
> --
>
> Error is occurring at line 4 every single time.  If i comment it out the 
> script works fine.
>
> Any help is appreciated.
>
> Thanks,
> Parvinder
>
> On Thu, May 28, 2009 at 3:32 PM, Parvinder Ghotra 
>  wrote:
>
> Thanks Charlie.
> i'm running watir-1.5.6.
>
> so i should move to 1.6.2?
>
> Parvinder
>
> On Thu, May 28, 2009 at 2:07 PM, Charley Baker  
> wrote:
>
> Multiple attribute support for input elements is supported in the latest 
> version. Which version are you running?
>
> -c
>
> On Thu, May 28, 2009 at 12:05 PM, Parvinder Ghotra 
>  wrote:
>
> Did watir ever provide multiple attribute support for Text fields and Drop 
> downs.  I was very surprised to find that the following doesn't work:
>
> $ie.text_field(:id => "aaa", :index => 2)
>
> Is there plan to provide multiple attribute support for things like Text 
> fields, drop downs, radio buttons, checkboxes and etc.
>
> Thank you!
>
> Parvinder Ghotra
>
> --
> Parvinder Ghotra
>
> --
> Parvinder Ghotra
>
> _
> Hotmail® has a new way to see what's up with your 
> friends.http://windowslive.com/Tutorial/Hotmail/WhatsNew?ocid=TXT_TAGLM_WL_HM...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Multiple Attributes for Text Fields

2009-05-29 Thread Al Snow

Try this: http://wiki.openqa.org/display/WTR/Basic+Authentication

Thanks,
Al Snow
Linkedin: http://www.linkedin.com/in/alsnow
Google Talk: jasnow1
Twitter: jasnow

Date: Thu, 28 May 2009 16:02:16 -0400
Subject: [wtr-general] Re: Multiple Attributes for Text Fields
From: parvinder.gho...@gmail.com
To: watir-general@googlegroups.com

i updated to 1.6.2 and all of sudden i'm getting the following error:

c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie.rb:113:in `initialize': 
failed to create WIN32OLE object from `AutoItX3.Control' (WIN32OLERuntimeError)

HRESULT error code:0x8007007e
  The specified module could not be found.
from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie.rb:113:in `new'
from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie.rb:113:in 
`autoit'

from 
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb:425:in `autoit'
from 
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb:413:in 
`bring_to_front'
from test.rb:34


When i do this:
--
1. require 'watir'
2. browser = Watir::IE.new()#(:title, /elements f/i)
3. browser.goto("file:///C:/fit/unittests/html/elements_index.html")

4. browser.bring_to_front
5. browser.text_field(:id=>"txt_description", :index=>3).flash
6. browser.select_list(:id=>"dd_status", :index=>2).flash()
--


Error is occurring at line 4 every single time.  If i comment it out the script 
works fine.

Any help is appreciated.

Thanks,
Parvinder

On Thu, May 28, 2009 at 3:32 PM, Parvinder Ghotra  
wrote:

Thanks Charlie.
i'm running watir-1.5.6.

so i should move to 1.6.2?

Parvinder


On Thu, May 28, 2009 at 2:07 PM, Charley Baker  wrote:


Multiple attribute support for input elements is supported in the latest 
version. Which version are you running? 



-c

On Thu, May 28, 2009 at 12:05 PM, Parvinder Ghotra  
wrote:



Did watir ever provide multiple attribute support for Text fields and Drop 
downs.  I was very surprised to find that the following doesn't work:




$ie.text_field(:id => "aaa", :index => 2)

Is there plan to provide multiple attribute support for things like Text 
fields, drop downs, radio buttons, checkboxes and etc.


Thank you!
 
Parvinder Ghotra












-- 
Parvinder Ghotra



-- 
Parvinder Ghotra






_
Hotmail® has a new way to see what's up with your friends.
http://windowslive.com/Tutorial/Hotmail/WhatsNew?ocid=TXT_TAGLM_WL_HM_Tutorial_WhatsNew1_052009
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Multiple Attributes for Text Fields

2009-05-28 Thread Parvinder Ghotra
This was resolved by doing

regsvr32
"C:\ruby\lib\ruby\gems\1.8\gems\watir-1.6.2\lib\watir\AutoitX3.Control"

On Thu, May 28, 2009 at 4:02 PM, Parvinder Ghotra <
parvinder.gho...@gmail.com> wrote:

> i updated to 1.6.2 and all of sudden i'm getting the following error:
>
> c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie.rb:113:in
> `initialize': failed to create WIN32OLE object from `AutoItX3.Control'
> (WIN32OLERuntimeError)
> HRESULT error code:0x8007007e
>   The specified module could not be found.
> from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie.rb:113:in
> `new'
> from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie.rb:113:in
> `autoit'
> from
> c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb:425:in
> `autoit'
> from
> c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb:413:in
> `bring_to_front'
> from test.rb:34
>
> When i do this:
> --
> 1. require 'watir'
> 2. browser = Watir::IE.new()#(:title, /elements f/i)
> 3. browser.goto("file:///C:/fit/unittests/html/elements_index.html")
> 4. browser.bring_to_front
> 5. browser.text_field(:id=>"txt_description", :index=>3).flash
> 6. browser.select_list(:id=>"dd_status", :index=>2).flash()
>
> --
>
> Error is occurring at line 4 every single time.  If i comment it out the
> script works fine.
>
> Any help is appreciated.
>
> Thanks,
> Parvinder
>
>
> On Thu, May 28, 2009 at 3:32 PM, Parvinder Ghotra <
> parvinder.gho...@gmail.com> wrote:
>
>> Thanks Charlie.
>> i'm running watir-1.5.6.
>>
>> so i should move to 1.6.2?
>>
>> Parvinder
>>
>>
>> On Thu, May 28, 2009 at 2:07 PM, Charley Baker 
>> wrote:
>>
>>> Multiple attribute support for input elements is supported in the latest
>>> version. Which version are you running?
>>>
>>> -c
>>>
>>>
>>> On Thu, May 28, 2009 at 12:05 PM, Parvinder Ghotra <
>>> parvinder.gho...@gmail.com> wrote:
>>>
 Did watir ever provide multiple attribute support for Text fields and
 Drop downs.  I was very surprised to find that the following doesn't work:

 $ie.text_field(:id => "aaa", :index => 2)

 Is there plan to provide multiple attribute support for things like Text
 fields, drop downs, radio buttons, checkboxes and etc.

 Thank you!

 Parvinder Ghotra



>>>
>>> >>>
>>>
>>
>>
>> --
>> Parvinder Ghotra
>>
>
>
>
> --
> Parvinder Ghotra
>



-- 
Parvinder Ghotra

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Multiple Attributes for Text Fields

2009-05-28 Thread Parvinder Ghotra
i updated to 1.6.2 and all of sudden i'm getting the following error:

c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie.rb:113:in
`initialize': failed to create WIN32OLE object from `AutoItX3.Control'
(WIN32OLERuntimeError)
HRESULT error code:0x8007007e
  The specified module could not be found.
from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie.rb:113:in
`new'
from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie.rb:113:in
`autoit'
from
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb:425:in
`autoit'
from
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb:413:in
`bring_to_front'
from test.rb:34

When i do this:
--
1. require 'watir'
2. browser = Watir::IE.new()#(:title, /elements f/i)
3. browser.goto("file:///C:/fit/unittests/html/elements_index.html")
4. browser.bring_to_front
5. browser.text_field(:id=>"txt_description", :index=>3).flash
6. browser.select_list(:id=>"dd_status", :index=>2).flash()
--

Error is occurring at line 4 every single time.  If i comment it out the
script works fine.

Any help is appreciated.

Thanks,
Parvinder

On Thu, May 28, 2009 at 3:32 PM, Parvinder Ghotra <
parvinder.gho...@gmail.com> wrote:

> Thanks Charlie.
> i'm running watir-1.5.6.
>
> so i should move to 1.6.2?
>
> Parvinder
>
>
> On Thu, May 28, 2009 at 2:07 PM, Charley Baker wrote:
>
>> Multiple attribute support for input elements is supported in the latest
>> version. Which version are you running?
>>
>> -c
>>
>>
>> On Thu, May 28, 2009 at 12:05 PM, Parvinder Ghotra <
>> parvinder.gho...@gmail.com> wrote:
>>
>>> Did watir ever provide multiple attribute support for Text fields and
>>> Drop downs.  I was very surprised to find that the following doesn't work:
>>>
>>> $ie.text_field(:id => "aaa", :index => 2)
>>>
>>> Is there plan to provide multiple attribute support for things like Text
>>> fields, drop downs, radio buttons, checkboxes and etc.
>>>
>>> Thank you!
>>>
>>> Parvinder Ghotra
>>>
>>>
>>>
>>
>> >>
>>
>
>
> --
> Parvinder Ghotra
>



-- 
Parvinder Ghotra

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Multiple Attributes for Text Fields

2009-05-28 Thread Parvinder Ghotra
Thanks Charlie.
i'm running watir-1.5.6.

so i should move to 1.6.2?

Parvinder

On Thu, May 28, 2009 at 2:07 PM, Charley Baker wrote:

> Multiple attribute support for input elements is supported in the latest
> version. Which version are you running?
>
> -c
>
>
> On Thu, May 28, 2009 at 12:05 PM, Parvinder Ghotra <
> parvinder.gho...@gmail.com> wrote:
>
>> Did watir ever provide multiple attribute support for Text fields and Drop
>> downs.  I was very surprised to find that the following doesn't work:
>>
>> $ie.text_field(:id => "aaa", :index => 2)
>>
>> Is there plan to provide multiple attribute support for things like Text
>> fields, drop downs, radio buttons, checkboxes and etc.
>>
>> Thank you!
>>
>> Parvinder Ghotra
>>
>>
>>
>
> >
>


-- 
Parvinder Ghotra

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Multiple Attributes for Text Fields

2009-05-28 Thread marekj

Your issue is using :id
Per html spec there should not be a second instance of the same id on the page.
if element with :id is found on the page Watir will not look for
another instance on the page
If you are stuck with :id and your developer absolutesly refuses to
only maintain one instance of id then

ie.text_fields.select {|tf| tf.id == "aaa"}[1].click #will blow up if
there is no second one.


marekj

Watirloo: Semantic Page Objects in UseCases
http://github.com/marekj/watirloo/




On Thu, May 28, 2009 at 1:05 PM, Parvinder Ghotra
 wrote:
> Did watir ever provide multiple attribute support for Text fields and Drop
> downs.  I was very surprised to find that the following doesn't work:
>
> $ie.text_field(:id => "aaa", :index => 2)
>
> Is there plan to provide multiple attribute support for things like Text
> fields, drop downs, radio buttons, checkboxes and etc.
>
> Thank you!
>
> Parvinder Ghotra
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Multiple Attributes for Text Fields

2009-05-28 Thread Michael Hwee
Actually, it is supported in a couple of latest versions.





From: Charley Baker 
To: watir-general@googlegroups.com
Sent: Thursday, May 28, 2009 11:07:22 AM
Subject: [wtr-general] Re: Multiple Attributes for Text Fields

Multiple attribute support for input elements is supported in the latest 
version. Which version are you running? 

-c


On Thu, May 28, 2009 at 12:05 PM, Parvinder Ghotra  
wrote:

Did watir ever provide multiple attribute support for Text fields and Drop 
downs.  I was very surprised to find that the following doesn't work:
>
>$ie.text_field(:id => "aaa", :index => 2)
>
>Is there plan to provide multiple attribute support for things like Text 
>fields, drop downs, radio buttons, checkboxes and etc.
>
>Thank you!
> 
>Parvinder Ghotra
>
>
>


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Multiple Attributes for Text Fields

2009-05-28 Thread Charley Baker
Multiple attribute support for input elements is supported in the latest
version. Which version are you running?

-c

On Thu, May 28, 2009 at 12:05 PM, Parvinder Ghotra <
parvinder.gho...@gmail.com> wrote:

> Did watir ever provide multiple attribute support for Text fields and Drop
> downs.  I was very surprised to find that the following doesn't work:
>
> $ie.text_field(:id => "aaa", :index => 2)
>
> Is there plan to provide multiple attribute support for things like Text
> fields, drop downs, radio buttons, checkboxes and etc.
>
> Thank you!
>
> Parvinder Ghotra
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Multiple Attributes

2009-04-23 Thread Isabel

thnx...

On Apr 14, 3:07 pm, Татьяна Запольская  wrote:
> Hi, Isabel!
>
> For me Multiple Attributes works. I'm also using watir 1.6.2.
>
> I have tried this code when 'Portal application (IBM)' link is already
> clicked (class => "active"):
>
> ie=Watir::IE.attach(:title, /Help/)
> temp = ie.frame(:name, "HelpFrame").frame(:name, "NavFrame").frame(:name,
> "ViewsFrame").frame(:id, "toc").frame(:name,"tocViewFrame")
> temp.link(:text => "Portal application (IBM)", :class => "active",
> :href=> /publib.boulder.ibm.com/
> ).click
>
> and the link was clicked.
>
> I have tried this code when 'Portal application (IBM)' is not clicked (class
> => ""):
>
>  ie=Watir::IE.attach(:title, /Help/)
> temp = ie.frame(:name, "HelpFrame").frame(:name, "NavFrame").frame(:name,
> "ViewsFrame").frame(:id, "toc").frame(:name,"tocViewFrame")
> temp.link(:text => "Portal application (IBM)", :class => "", :href =>
> /publib.boulder.ibm.com/
>  ).click
>
> the link was clicked.
>
> Please reply if you still have problems.
>
> Best Regards,
> Tanya Zapolskaya
>
> 2009/4/14 Isabel 
>
>
>
> > Hi,
> > I tried to click on a link 'Portal application (IBM)' on
>
> >http://publib.boulder.ibm.com/infocenter/systems/index.jsp?topic=/rza...
> > using the script below:-
>
> > require 'watir'
> > ie=Watir::IE.attach(:title, //)
> > ie.frame(:name , 'HelpFrame').frame(:name , 'NavFrame').frame(:name ,
> > 'ViewsFrame').frame(:id , 'toc').frame(:name , 'tocViewFrame').link
> > (:text => 'Portal application (IBM)',:class => 'active',:href =>
> > 'http://publib.boulder.ibm.com/infocenter/syst').click
>
> > But it gave an error c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/
> > watir/element.rb:52:in `assert_exists': Unable to locate element,
> > using {:href=>"http://publib.boulder.ibm.com/infocenter/systems/topic/
> > rzamm/rzammconceptsportalapplication.htm?tocNode=toc:front/front.cmb/
> > 0/1/3/1/0/7/1/", :class=>"active", :text=>"Portal application (IBM)"}
> > (Watir::Exception::UnknownObjectException)
>
> > But if I use each of the attribute (text,class and href) individually,
> > this works. I want to know why Multiple Attributes are not being
> > supported as mentioned on
> >http://wiki.openqa.org/display/WTR/Methods+Supported+by+Element
>
> > Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Multiple Attributes

2009-04-14 Thread Татьяна Запольская
Hi, Isabel!

For me Multiple Attributes works. I'm also using watir 1.6.2.

I have tried this code when 'Portal application (IBM)' link is already
clicked (class => "active"):

ie=Watir::IE.attach(:title, /Help/)
temp = ie.frame(:name, "HelpFrame").frame(:name, "NavFrame").frame(:name,
"ViewsFrame").frame(:id, "toc").frame(:name,"tocViewFrame")
temp.link(:text => "Portal application (IBM)", :class => "active",
:href=> /publib.boulder.ibm.com/
).click

and the link was clicked.

I have tried this code when 'Portal application (IBM)' is not clicked (class
=> ""):

 ie=Watir::IE.attach(:title, /Help/)
temp = ie.frame(:name, "HelpFrame").frame(:name, "NavFrame").frame(:name,
"ViewsFrame").frame(:id, "toc").frame(:name,"tocViewFrame")
temp.link(:text => "Portal application (IBM)", :class => "", :href =>
/publib.boulder.ibm.com/
 
).click

the link was clicked.

Please reply if you still have problems.

Best Regards,
Tanya Zapolskaya

2009/4/14 Isabel 

>
> Hi,
> I tried to click on a link 'Portal application (IBM)' on
>
> http://publib.boulder.ibm.com/infocenter/systems/index.jsp?topic=/rzamm/rzammportletsRefIFrame.htm
> using the script below:-
>
> require 'watir'
> ie=Watir::IE.attach(:title, //)
> ie.frame(:name , 'HelpFrame').frame(:name , 'NavFrame').frame(:name ,
> 'ViewsFrame').frame(:id , 'toc').frame(:name , 'tocViewFrame').link
> (:text => 'Portal application (IBM)',:class => 'active',:href =>
> 'http://publib.boulder.ibm.com/infocenter/syst').click
>
>
> But it gave an error c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/
> watir/element.rb:52:in `assert_exists': Unable to locate element,
> using {:href=>"http://publib.boulder.ibm.com/infocenter/systems/topic/
> rzamm/rzammconceptsportalapplication.htm?tocNode=toc:front/front.cmb/
> 0/1/3/1/0/7/1/", :class=>"active", :text=>"Portal application (IBM)"}
> (Watir::Exception::UnknownObjectException)
>
> But if I use each of the attribute (text,class and href) individually,
> this works. I want to know why Multiple Attributes are not being
> supported as mentioned on
> http://wiki.openqa.org/display/WTR/Methods+Supported+by+Element
>
> Thanks
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Multiple Attributes for Input Elements

2009-03-24 Thread Michael Hwee


Ok, here is your misunderstanding.

For example, if you have: text_field(:index, 20)
The index number '20' is for all text_field objects on the page.

For example, if you have: text_field(:name=>'q', :index=>20)
It does not mean the same text_field object above.
It means the index '20' of all text_field with 'name=p'.

If you have 'name=p' less than 20, you get 'non-existance' error.

Hope that helps.
Michael


- Original Message 
From: Isabel 
To: Watir General 
Sent: Tuesday, March 24, 2009 1:55:07 AM
Subject: [wtr-general] Re: Multiple Attributes for Input Elements


actually i am trying to create a framework around watir so by default
i get the indices for all the elements and then pass the multiple
attributes, so i need to work this out with both the attributes...

On Mar 24, 1:38 pm, Željko Filipin 
wrote:
> On Tue, Mar 24, 2009 at 09:33, Isabel  wrote:
> > ie.text_field(:name => "q" ,:index => 2).set("xyz")
> > Still I am getting an error.
>
> Because it can not find the second text field with name "q".
>
> > ie.text_field(:name => "q" ,:index => 1).set("xyz")
> > and
> > ie.text_field(:index => 2).set("xyz")
> > both work fine...
>
> I just do not understand the problem. You got it working. What do you want
> to do?
>
> Željko

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Multiple Attributes for Input Elements

2009-03-24 Thread Michael Hwee


Hmm, actually think of that, you are right.
It should be no matter.
But for being good scripter, the index should be always at the end.
That is the way I do anyway.

Thanks.
Michael


- Original Message 
From: Bret Pettichord 
To: watir-general@googlegroups.com
Sent: Tuesday, March 24, 2009 8:08:11 AM
Subject: [wtr-general] Re: Multiple Attributes for Input Elements


Actually, no. The order makes no difference. Index is always applied 
"last" no matter where it is specified in the arguments.

Bret

Michael Hwee wrote:
> There is high important to less important in multiple attributes search.
>
> In your case, you haveie.text_field(:index => 2 , :name => "q")
> To us, it means
> - find text_field with index=2
> - comfirm that it also has name='q'
>
> So, no wonder you are getting non_existance error if you have other 
> text_fields with no 'q' as name.
>
> Correct way is: ie.text_field(:name => "q", :index => 2)
>
>
>
>
> - Original Message 
> From: Isabel 
> To: Watir General 
> Cc: charley.ba...@gmail.com
> Sent: Sunday, March 22, 2009 10:20:19 PM
> Subject: [wtr-general] Multiple Attributes for Input Elements
>
>
> Hi,
> I tried to use the code below to set a value in the text box of the
> google search page.
>
> require 'watir'
> ie=Watir::IE.new
> ie.goto "http://google.com/";
> ie.text_field(:index => 2 , :name => "q").set("xyz")
>
> But I receive an error which is:
>
>  
>> ruby testmultiAttri.rb
>>
> c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:52:in
> `assert_exists': Unable to locate element, using
> {:index=>2, :name=>"q"} (Watir::Exception::UnknownObjectException)
> from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:
> 284:in `enabled?'
> from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:
> 56:in `assert_enabled'
> from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
> input_elements.rb:323:in `set'
> from testmultiAttri.rb:4
>  
>> Exit code: 1
>>
>
> Please do let me know where I am going wrong.
> The text box gets identified correctly if I use any one of the two
> attributes.
>
> Thanks and Regards.
>
>
>
> On Feb 7, 9:51 pm, Charley Baker  wrote:
>  
>> Multiple attributes for input elements are now supported in the latest
>> version of Watir - 1.6.2. The wiki has also been updated.
>>
>> Charley Baker
>> blog:http://charleybakersblog.blogspot.com/
>> Lead Developer, Watir,http://wtr.rubyforge.org
>> QA Architect, Gap Inc Direct
>>
>> On Fri, Feb 6, 2009 at 11:20 PM, Vens wrote:
>>
>>
>>
>>
>>
>>
>>
>>
>>> Hi:
>>>  
>>> I just started using Watir for automating few web UIs. During this I
>>> came across a situation where I had to put in data to a text field but
>>> incidently there are 2 text boxes having the same name. Please look at
>>> the snippet below:
>>>  
>>> 
>>>  Authorize NG IDs 
>>>  
>>>   
>>>   
>>>  
>>>
>>> You can enter comma
>>> separated multiple ngids 
>>>
>>>
>>>   MID 
>>>   
>>>   
>>>
>>>   NG IDs 
>>>   >> maxlength="200"
>>> name="ngids"/>
>>>   
>>> 
>>> 
>>> 
>>> 
>>>  
>>> 
>>>  Authorize NG IDs 
>>>  
>>>   
>>>   
>>>  
>>>
>>> You can enter comma
>>> separated multiple ngids 
>>>
>>>
>>>   MID 
>>>   
>>>
>>>
>>>   NG IDs 
>>>   >> maxlength="200"
>>> name="ngids"/>
>>>   
>>> 
>>> 
>>> 
>>> 
>>>  
>>> When I looked into
>>> http://wiki.openqa.org/display/WTR/Multiple+Attributesit
>>> said it is not implemented for input elements.  Can you help me solve
>>> this.
>>>  
>>> Regards
>>> Venu
>>>  
>
> >
>  


-- 
Bret Pettichord
CTO, WatirCraft LLC, www.watircraft.com
Lead Developer, Watir, www.watir.com
Blog, www.io.com/~wazmo/blog
Twitter, www.twitter.com/bpettichord

Watir Training: Austin March 25-26, Portland/Beaverton April 16-17
www.watircraft.com/training



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Multiple Attributes for Input Elements

2009-03-24 Thread Bret Pettichord

Actually, no. The order makes no difference. Index is always applied 
"last" no matter where it is specified in the arguments.

Bret

Michael Hwee wrote:
> There is high important to less important in multiple attributes search.
>
> In your case, you haveie.text_field(:index => 2 , :name => "q")
> To us, it means
> - find text_field with index=2
> - comfirm that it also has name='q'
>
> So, no wonder you are getting non_existance error if you have other 
> text_fields with no 'q' as name.
>
> Correct way is: ie.text_field(:name => "q", :index => 2)
>
>
>
>
> - Original Message 
> From: Isabel 
> To: Watir General 
> Cc: charley.ba...@gmail.com
> Sent: Sunday, March 22, 2009 10:20:19 PM
> Subject: [wtr-general] Multiple Attributes for Input Elements
>
>
> Hi,
> I tried to use the code below to set a value in the text box of the
> google search page.
>
> require 'watir'
> ie=Watir::IE.new
> ie.goto "http://google.com/";
> ie.text_field(:index => 2 , :name => "q").set("xyz")
>
> But I receive an error which is:
>
>   
>> ruby testmultiAttri.rb
>> 
> c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:52:in
> `assert_exists': Unable to locate element, using
> {:index=>2, :name=>"q"} (Watir::Exception::UnknownObjectException)
> from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:
> 284:in `enabled?'
> from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:
> 56:in `assert_enabled'
> from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
> input_elements.rb:323:in `set'
> from testmultiAttri.rb:4
>   
>> Exit code: 1
>> 
>
> Please do let me know where I am going wrong.
> The text box gets identified correctly if I use any one of the two
> attributes.
>
> Thanks and Regards.
>
>
>
> On Feb 7, 9:51 pm, Charley Baker  wrote:
>   
>> Multiple attributes for input elements are now supported in the latest
>> version of Watir - 1.6.2. The wiki has also been updated.
>>
>> Charley Baker
>> blog:http://charleybakersblog.blogspot.com/
>> Lead Developer, Watir,http://wtr.rubyforge.org
>> QA Architect, Gap Inc Direct
>>
>> On Fri, Feb 6, 2009 at 11:20 PM, Vens wrote:
>>
>>
>>
>>
>>
>>
>>
>> 
>>> Hi:
>>>   
>>> I just started using Watir for automating few web UIs. During this I
>>> came across a situation where I had to put in data to a text field but
>>> incidently there are 2 text boxes having the same name. Please look at
>>> the snippet below:
>>>   
>>> 
>>>  Authorize NG IDs 
>>>  
>>>   
>>>   
>>>  
>>>
>>> You can enter comma
>>> separated multiple ngids 
>>>
>>>
>>>   MID 
>>>   
>>>   
>>>
>>>   NG IDs 
>>>   >> maxlength="200"
>>> name="ngids"/>
>>>   
>>> 
>>> 
>>> 
>>> 
>>>   
>>> 
>>>  Authorize NG IDs 
>>>  
>>>   
>>>   
>>>  
>>>
>>> You can enter comma
>>> separated multiple ngids 
>>>
>>>
>>>   MID 
>>>   
>>>
>>>
>>>   NG IDs 
>>>   >> maxlength="200"
>>> name="ngids"/>
>>>   
>>> 
>>> 
>>> 
>>> 
>>>   
>>> When I looked into
>>> http://wiki.openqa.org/display/WTR/Multiple+Attributesit
>>> said it is not implemented for input elements.  Can you help me solve
>>> this.
>>>   
>>> Regards
>>> Venu
>>>   
>
> >
>   


-- 
Bret Pettichord
CTO, WatirCraft LLC, www.watircraft.com
Lead Developer, Watir, www.watir.com
Blog, www.io.com/~wazmo/blog
Twitter, www.twitter.com/bpettichord

Watir Training: Austin March 25-26, Portland/Beaverton April 16-17
www.watircraft.com/training


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Multiple Attributes for Input Elements

2009-03-24 Thread Željko Filipin
On Tue, Mar 24, 2009 at 09:55, Isabel  wrote:
> so i need to work this out with both the attributes...

And why is this no good for you?

ie.text_field(:name => "q" ,:index => 1).set("xyz")

Željko

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Multiple Attributes for Input Elements

2009-03-24 Thread Isabel

actually i am trying to create a framework around watir so by default
i get the indices for all the elements and then pass the multiple
attributes, so i need to work this out with both the attributes...

On Mar 24, 1:38 pm, Željko Filipin 
wrote:
> On Tue, Mar 24, 2009 at 09:33, Isabel  wrote:
> > ie.text_field(:name => "q" ,:index => 2).set("xyz")
> > Still I am getting an error.
>
> Because it can not find the second text field with name "q".
>
> > ie.text_field(:name => "q" ,:index => 1).set("xyz")
> > and
> > ie.text_field(:index => 2).set("xyz")
> > both work fine...
>
> I just do not understand the problem. You got it working. What do you want
> to do?
>
> Željko
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Multiple Attributes for Input Elements

2009-03-24 Thread Željko Filipin
On Tue, Mar 24, 2009 at 09:33, Isabel  wrote:
> ie.text_field(:name => "q" ,:index => 2).set("xyz")
> Still I am getting an error.

Because it can not find the second text field with name "q".

> ie.text_field(:name => "q" ,:index => 1).set("xyz")
> and
> ie.text_field(:index => 2).set("xyz")
> both work fine...

I just do not understand the problem. You got it working. What do you want
to do?

Željko

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Multiple Attributes for Input Elements

2009-03-24 Thread Isabel

Hi Michael,
I tried this too
require 'watir'
ie=Watir::IE.new
ie.goto "www.google.com"
ie.text_field(:name => "q" ,:index => 2).set("xyz")

Still I am getting an error.

ie.text_field(:name => "q" ,:index => 1).set("xyz")
and
ie.text_field(:index => 2).set("xyz")
both work fine...





On Mar 23, 7:30 am, Michael Hwee  wrote:
> There is high important to less important in multiple attributes search.
>
> In your case, you have    ie.text_field(:index => 2 , :name => "q")
> To us, it means
> - find text_field with index=2
> - comfirm that it also has name='q'
>
> So, no wonder you are getting non_existance error if you have other 
> text_fields with no 'q' as name.
>
> Correct way is: ie.text_field(:name => "q", :index => 2)
>
> - Original Message 
> From:Isabel
> To: Watir General 
>
> Cc: charley.ba...@gmail.com
> Sent: Sunday, March 22, 2009 10:20:19 PM
> Subject: [wtr-general] Multiple Attributes for Input Elements
>
> Hi,
> I tried to use the code below to set a value in the text box of the
> google search page.
>
> require 'watir'
> ie=Watir::IE.new
> ie.goto "http://google.com/";
> ie.text_field(:index => 2 , :name => "q").set("xyz")
>
> But I receive an error which is:
>
> >ruby testmultiAttri.rb
> c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:52:in
> `assert_exists': Unable to locate element, using
> {:index=>2, :name=>"q"} (Watir::Exception::UnknownObjectException)
>     from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:
> 284:in `enabled?'
>     from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:
> 56:in `assert_enabled'
>     from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
> input_elements.rb:323:in `set'
>     from testmultiAttri.rb:4
> >Exit code: 1
>
> Please do let me know where I am going wrong.
> The text box gets identified correctly if I use any one of the two
> attributes.
>
> Thanks and Regards.
>
> On Feb 7, 9:51 pm, Charley Baker  wrote:
> > Multiple attributes for input elements are now supported in the latest
> > version of Watir - 1.6.2. The wiki has also been updated.
>
> > Charley Baker
> > blog:http://charleybakersblog.blogspot.com/
> > Lead Developer, Watir,http://wtr.rubyforge.org
> > QA Architect, Gap Inc Direct
>
> > On Fri, Feb 6, 2009 at 11:20 PM, Vens 
> > wrote:
>
> > > Hi:
>
> > > I just started using Watir for automating few web UIs. During this I
> > > came across a situation where I had to put in data to a text field but
> > > incidently there are 2 text boxes having the same name. Please look at
> > > the snippet below:
>
> > > 
> > >  Authorize NG IDs 
> > >  
> > >   
> > >   
> > >  
> > >        
> > >         You can enter comma
> > > separated multiple ngids 
> > >        
> > >        
> > >               MID 
> > >               
> > >       
> > >        
> > >               NG IDs 
> > >                > > maxlength="200"
> > > name="ngids"/>
> > >       
> > > 
> > > 
> > > 
> > > 
>
> > > 
> > >  Authorize NG IDs 
> > >  
> > >   
> > >   
> > >  
> > >        
> > >         You can enter comma
> > > separated multiple ngids 
> > >        
> > >        
> > >               MID 
> > >               
> > >        
> > >        
> > >               NG IDs 
> > >                > > maxlength="200"
> > > name="ngids"/>
> > >       
> > > 
> > > 
> > > 
> > > 
>
> > > When I looked into
> > >http://wiki.openqa.org/display/WTR/Multiple+Attributesit
> > > said it is not implemented for input elements.  Can you help me solve
> > > this.
>
> > > Regards
> > > Venu
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Multiple Attributes for Input Elements

2009-03-23 Thread Michael Hwee


There is high important to less important in multiple attributes search.

In your case, you haveie.text_field(:index => 2 , :name => "q")
To us, it means
- find text_field with index=2
- comfirm that it also has name='q'

So, no wonder you are getting non_existance error if you have other text_fields 
with no 'q' as name.

Correct way is: ie.text_field(:name => "q", :index => 2)




- Original Message 
From: Isabel 
To: Watir General 
Cc: charley.ba...@gmail.com
Sent: Sunday, March 22, 2009 10:20:19 PM
Subject: [wtr-general] Multiple Attributes for Input Elements


Hi,
I tried to use the code below to set a value in the text box of the
google search page.

require 'watir'
ie=Watir::IE.new
ie.goto "http://google.com/";
ie.text_field(:index => 2 , :name => "q").set("xyz")

But I receive an error which is:

>ruby testmultiAttri.rb
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:52:in
`assert_exists': Unable to locate element, using
{:index=>2, :name=>"q"} (Watir::Exception::UnknownObjectException)
from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:
284:in `enabled?'
from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:
56:in `assert_enabled'
from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
input_elements.rb:323:in `set'
from testmultiAttri.rb:4
>Exit code: 1

Please do let me know where I am going wrong.
The text box gets identified correctly if I use any one of the two
attributes.

Thanks and Regards.



On Feb 7, 9:51 pm, Charley Baker  wrote:
> Multiple attributes for input elements are now supported in the latest
> version of Watir - 1.6.2. The wiki has also been updated.
>
> Charley Baker
> blog:http://charleybakersblog.blogspot.com/
> Lead Developer, Watir,http://wtr.rubyforge.org
> QA Architect, Gap Inc Direct
>
> On Fri, Feb 6, 2009 at 11:20 PM, Vens wrote:
>
>
>
>
>
>
>
> > Hi:
>
> > I just started using Watir for automating few web UIs. During this I
> > came across a situation where I had to put in data to a text field but
> > incidently there are 2 text boxes having the same name. Please look at
> > the snippet below:
>
> > 
> >  Authorize NG IDs 
> >  
> >   
> >   
> >  
> >
> > You can enter comma
> > separated multiple ngids 
> >
> >
> >   MID 
> >   
> >   
> >
> >   NG IDs 
> >> maxlength="200"
> > name="ngids"/>
> >   
> > 
> > 
> > 
> > 
>
> > 
> >  Authorize NG IDs 
> >  
> >   
> >   
> >  
> >
> > You can enter comma
> > separated multiple ngids 
> >
> >
> >   MID 
> >   
> >
> >
> >   NG IDs 
> >> maxlength="200"
> > name="ngids"/>
> >   
> > 
> > 
> > 
> > 
>
> > When I looked into
> >http://wiki.openqa.org/display/WTR/Multiple+Attributesit
> > said it is not implemented for input elements.  Can you help me solve
> > this.
>
> > Regards
> > Venu

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Multiple Attributes for Input Elements

2009-03-23 Thread Željko Filipin
On Mon, Mar 23, 2009 at 06:20, Isabel  wrote:
> ie.text_field(:index => 2 , :name => "q").set("xyz")

You are trying to set the second text field that has name "q", but Watir can
not find it. Maybe because there is only one. If you use just :index => 2
or just :name => "q" it should work fine.

Željko

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Multiple Attributes for Input Elements

2009-03-23 Thread Wesley Chen
How many text fields are on the www.google.com page?
I think :index =>2 should be after :name =>"q"
Thanks.
Wesley Chen.


On Mon, Mar 23, 2009 at 1:20 PM, Isabel  wrote:

>
> Hi,
> I tried to use the code below to set a value in the text box of the
> google search page.
>
> require 'watir'
> ie=Watir::IE.new
> ie.goto "http://google.com/";
> ie.text_field(:index => 2 , :name => "q").set("xyz")
>
> But I receive an error which is:
>
> >ruby testmultiAttri.rb
> c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:52:in
> `assert_exists': Unable to locate element, using
> {:index=>2, :name=>"q"} (Watir::Exception::UnknownObjectException)
>from
> c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:
> 284:in `enabled?'
>from
> c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:
> 56:in `assert_enabled'
>from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
> input_elements.rb:323:in `set'
>from testmultiAttri.rb:4
> >Exit code: 1
>
> Please do let me know where I am going wrong.
> The text box gets identified correctly if I use any one of the two
> attributes.
>
> Thanks and Regards.
>
>
>
> On Feb 7, 9:51 pm, Charley Baker  wrote:
> > Multiple attributes for input elements are now supported in the latest
> > version of Watir - 1.6.2. The wiki has also been updated.
> >
> > Charley Baker
> > blog:http://charleybakersblog.blogspot.com/
> > Lead Developer, Watir,http://wtr.rubyforge.org
> > QA Architect, Gap Inc Direct
> >
> > On Fri, Feb 6, 2009 at 11:20 PM, Vens  >wrote:
> >
> >
> >
> >
> >
> >
> >
> > > Hi:
> >
> > > I just started using Watir for automating few web UIs. During this I
> > > came across a situation where I had to put in data to a text field but
> > > incidently there are 2 text boxes having the same name. Please look at
> > > the snippet below:
> >
> > > 
> > >  Authorize NG IDs 
> > >  
> > >   
> > >   
> > >  
> > >
> > > You can enter comma
> > > separated multiple ngids 
> > >
> > >
> > >   MID 
> > >   
> > >   
> > >
> > >   NG IDs 
> > >> > maxlength="200"
> > > name="ngids"/>
> > >   
> > > 
> > > 
> > > 
> > > 
> >
> > > 
> > >  Authorize NG IDs 
> > >  
> > >   
> > >   
> > >  
> > >
> > > You can enter comma
> > > separated multiple ngids 
> > >
> > >
> > >   MID 
> > >   
> > >
> > >
> > >   NG IDs 
> > >> > maxlength="200"
> > > name="ngids"/>
> > >   
> > > 
> > > 
> > > 
> > > 
> >
> > > When I looked into
> > >http://wiki.openqa.org/display/WTR/Multiple+Attributesit
> > > said it is not implemented for input elements.  Can you help me solve
> > > this.
> >
> > > Regards
> > > Venu
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Multiple Attributes and form

2009-03-19 Thread Bret Pettichord

Good question.

Michael Hwee wrote:
> I don't get is why are you using ":action => /.*/" ?
> Can you just take it off, so that the execution is much more efficient and 
> work w/o any issue?
>
>
>
>
> - Original Message 
> From: alexey s. 
> To: Watir General 
> Sent: Wednesday, March 18, 2009 10:16:04 PM
> Subject: [wtr-general] Multiple Attributes and form
>
>
> There is problem with "Multiple Attributes" and form.
>
> I use FireWatir on Ubuntu Linux with FireFox.
> when I run next code:
>
> a = ff.form(:action => /.*/, :index => 1)
> p a
>
> gets:
> /var/lib/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/
> MozillaBaseElement.rb:967:in `assert_exists': Unable to locate
> element, using :name, {:action=>/.*/, :index=>1}
> (Watir::Exception::UnknownObjectException)
> from /var/lib/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/
> MozillaBaseElement.rb:748:in `inspect'
> from test.rb:84:in `p'
>
> But
> a = ff.link(:text => /.*/, :index => 2)
> work successfully
>
> firewatir - 1.6.2
> Mozilla Firefox 3.0.7
> ruby 1.8.7 (2008-08-11 patchlevel 72)
> Ubuntu 8.10
>
> Can you help me ?
>
>
> >
>   


-- 
Bret Pettichord
CTO, WatirCraft LLC, www.watircraft.com
Lead Developer, Watir, www.watir.com
Blog, www.io.com/~wazmo/blog
Twitter, www.twitter.com/bpettichord

Watir Training: Austin March 25-26, Portland/Beaverton April 16-17
www.watircraft.com/training


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Multiple Attributes and form

2009-03-19 Thread Michael Hwee


I don't get is why are you using ":action => /.*/" ?
Can you just take it off, so that the execution is much more efficient and work 
w/o any issue?




- Original Message 
From: alexey s. 
To: Watir General 
Sent: Wednesday, March 18, 2009 10:16:04 PM
Subject: [wtr-general] Multiple Attributes and form


There is problem with "Multiple Attributes" and form.

I use FireWatir on Ubuntu Linux with FireFox.
when I run next code:

a = ff.form(:action => /.*/, :index => 1)
p a

gets:
/var/lib/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/
MozillaBaseElement.rb:967:in `assert_exists': Unable to locate
element, using :name, {:action=>/.*/, :index=>1}
(Watir::Exception::UnknownObjectException)
from /var/lib/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/
MozillaBaseElement.rb:748:in `inspect'
from test.rb:84:in `p'

But
a = ff.link(:text => /.*/, :index => 2)
work successfully

firewatir - 1.6.2
Mozilla Firefox 3.0.7
ruby 1.8.7 (2008-08-11 patchlevel 72)
Ubuntu 8.10

Can you help me ?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Multiple Attributes and form

2009-03-19 Thread Bret Pettichord

I suspect that forms still don't support multiple attributes in Watir 
(IEWatir or FireWatir).

Feel free to log this problem in Jira.

Bret

alexey s. wrote:
> There is problem with "Multiple Attributes" and form.
>
> I use FireWatir on Ubuntu Linux with FireFox.
> when I run next code:
>
> a = ff.form(:action => /.*/, :index => 1)
> p a
>
> gets:
> /var/lib/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/
> MozillaBaseElement.rb:967:in `assert_exists': Unable to locate
> element, using :name, {:action=>/.*/, :index=>1}
> (Watir::Exception::UnknownObjectException)
> from /var/lib/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/
> MozillaBaseElement.rb:748:in `inspect'
> from test.rb:84:in `p'
>
> But
> a = ff.link(:text => /.*/, :index => 2)
> work successfully
>
> firewatir - 1.6.2
> Mozilla Firefox 3.0.7
> ruby 1.8.7 (2008-08-11 patchlevel 72)
> Ubuntu 8.10
>
> Can you help me ?
>
> >
>   


-- 
Bret Pettichord
CTO, WatirCraft LLC, www.watircraft.com
Lead Developer, Watir, www.watir.com
Blog, www.io.com/~wazmo/blog
Twitter, www.twitter.com/bpettichord

Watir Training: Austin March 25-26, Portland/Beaverton April 16-17
www.watircraft.com/training


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Multiple Attributes and form

2009-03-19 Thread wesley chen
For this form, where is the name "f"? And the id "delete_access41599" is
rand?

Thanks.
Wesley Chen.


2009/3/19 alexey s. 

>
> where is the id "delete_access34074"?
>
> It's other page and form:
>
> 
>   
> 
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Multiple Attributes and form

2009-03-19 Thread alexey s.

where is the id "delete_access34074"?

It's other page and form:


   


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Multiple Attributes and form

2009-03-18 Thread alexey s.

for test, in irb:

irb(main):018:0> ff.goto("http://google.com";)
=> #, @window_title="Google",
@error_checkers=[]>

irb(main):019:0> ff.show_forms
There are 1 forms
Form name: f
   id:
   method:
   action: /search
index:
=> 0..0

irb(main):020:0> ff.form(:name => /f/, :action => /search/)
Watir::Exception::UnknownObjectException: Unable to locate element,
using :name, {:action=>/search/, :name=>/f/}


On Mar 19, 9:40 am, wesley chen  wrote:
> May be It is not a form.
>
> Thanks.
> Wesley Chen.
>
>
>
> On Thu, Mar 19, 2009 at 2:35 PM, alexey s.  wrote:
>
> > next code:
>
> > p ff.form(:id, /delete_access34074/).exist?
> > html = ff.html
> > p html.scan(/id=\"delete_access34074\"/)
>
> > And I execute this:
>
> > $ ruby test.rb
> > false
> > ["id=\"delete_access34074\""]
>
> > Why ?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Multiple Attributes and form

2009-03-18 Thread wesley chen
So, where is the id "delete_access34074"?

Thanks.
Wesley Chen.


On Thu, Mar 19, 2009 at 2:49 PM, alexey s.  wrote:

>
>
>
> On Mar 19, 9:40 am, wesley chen  wrote:
> > May be It is not a form.
> >
> > Thanks.
> > Wesley Chen.
>
> 
>
>
> It's form )
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Multiple Attributes and form

2009-03-18 Thread alexey s.



On Mar 19, 9:40 am, wesley chen  wrote:
> May be It is not a form.
>
> Thanks.
> Wesley Chen.


   

It's form )

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Multiple Attributes and form

2009-03-18 Thread wesley chen
May be It is not a form.

Thanks.
Wesley Chen.


On Thu, Mar 19, 2009 at 2:35 PM, alexey s.  wrote:

>
> next code:
>
> p ff.form(:id, /delete_access34074/).exist?
> html = ff.html
> p html.scan(/id=\"delete_access34074\"/)
>
> And I execute this:
>
> $ ruby test.rb
> false
> ["id=\"delete_access34074\""]
>
> Why ?
>
>
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Multiple Attributes and form

2009-03-18 Thread alexey s.

next code:

p ff.form(:id, /delete_access34074/).exist?
html = ff.html
p html.scan(/id=\"delete_access34074\"/)

And I execute this:

$ ruby test.rb
false
["id=\"delete_access34074\""]

Why ?



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Multiple Attributes Issue

2009-01-09 Thread Michael Hwee


If you go to download v 1.6.2, you will see instructions how to install it.
The best is uninstall your existing version.




- Original Message 
From: Darin Duphorn 
To: watir-general@googlegroups.com
Sent: Friday, January 9, 2009 9:28:55 AM
Subject: [wtr-general] Re: Multiple Attributes Issue


I have 1.5.6.

I thought I upgraded to the most recent, but apparently not.

Do I have to uninstall and reinstall version 1.6.2?


-Original Message-
From: watir-general@googlegroups.com
[mailto:watir-gene...@googlegroups.com] On Behalf Of Michael Hwee
Sent: Friday, January 09, 2009 11:26 AM
To: watir-general@googlegroups.com
Subject: [wtr-general] Re: Multiple Attributes Issue



In what version of Watir, you have.

I tried on v.1.6.2 and works fine for me.



- Original Message 
From: Moochie 
To: Watir General 
Sent: Thursday, January 8, 2009 11:32:44 AM
Subject: [wtr-general] Multiple Attributes Issue



$ie.text_field(:id=>'diagnosis_date',:index=>index)

Creates a error

send:{index=2, :id+>diagnosis_date"} is not a symbol.

I looked and there is a defect, but I"m not sure if it's been fixed


http://wiki.openqa.org/display/WTR/Multiple+Attributes








--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Multiple Attributes Issue

2009-01-09 Thread Darin Duphorn

I have 1.5.6.

I thought I upgraded to the most recent, but apparently not.

Do I have to uninstall and reinstall version 1.6.2?


-Original Message-
From: watir-general@googlegroups.com
[mailto:watir-gene...@googlegroups.com] On Behalf Of Michael Hwee
Sent: Friday, January 09, 2009 11:26 AM
To: watir-general@googlegroups.com
Subject: [wtr-general] Re: Multiple Attributes Issue



In what version of Watir, you have.

I tried on v.1.6.2 and works fine for me.



- Original Message 
From: Moochie 
To: Watir General 
Sent: Thursday, January 8, 2009 11:32:44 AM
Subject: [wtr-general] Multiple Attributes Issue



$ie.text_field(:id=>'diagnosis_date',:index=>index)

Creates a error

send:{index=2, :id+>diagnosis_date"} is not a symbol.

I looked and there is a defect, but I"m not sure if it's been fixed


http://wiki.openqa.org/display/WTR/Multiple+Attributes







--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Multiple Attributes Issue

2009-01-09 Thread Michael Hwee


In what version of Watir, you have.

I tried on v.1.6.2 and works fine for me.



- Original Message 
From: Moochie 
To: Watir General 
Sent: Thursday, January 8, 2009 11:32:44 AM
Subject: [wtr-general] Multiple Attributes Issue



$ie.text_field(:id=>'diagnosis_date',:index=>index)

Creates a error

send:{index=2, :id+>diagnosis_date"} is not a symbol.

I looked and there is a defect, but I"m not sure if it's been fixed


http://wiki.openqa.org/display/WTR/Multiple+Attributes




--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Multiple Attributes Issue

2009-01-09 Thread Darin Duphorn

Looks like I need to upgrade.

I'm working with 1.5.6

Does this require a full uninstall and reinstall?

Or is this something that can be fixed with:

gem update system


-Original Message-
From: watir-general@googlegroups.com
[mailto:watir-gene...@googlegroups.com] On Behalf Of Bret Pettichord
Sent: Thursday, January 08, 2009 7:44 PM
To: watir-general@googlegroups.com
Subject: [wtr-general] Re: Multiple Attributes Issue


Actually it is. Or so i thought. The jira ticket linked below is marked 
as fixed.

Please provide more details about the original problem, Moochie. Are you

using 1.6.2?

Bret

wesley chen wrote:
> I think text_field doesn't support multiple attributes in this
release.
> Thanks.
> Wesley Chen.
>
>
> On Fri, Jan 9, 2009 at 3:32 AM, Moochie  <mailto:dduph...@redbrickhealth.com>> wrote:
>
>
>
> $ie.text_field(:id=>'diagnosis_date',:index=>index)
>
> Creates a error
>
> send:{index=2, :id+>diagnosis_date"} is not a symbol.
>
> I looked and there is a defect, but I"m not sure if it's been
fixed
>
>
> http://wiki.openqa.org/display/WTR/Multiple+Attributes
>
>
>
>
>
>
> >





--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Multiple Attributes Issue

2009-01-08 Thread Bret Pettichord

Actually it is. Or so i thought. The jira ticket linked below is marked 
as fixed.

Please provide more details about the original problem, Moochie. Are you 
using 1.6.2?

Bret

wesley chen wrote:
> I think text_field doesn't support multiple attributes in this release.
> Thanks.
> Wesley Chen.
>
>
> On Fri, Jan 9, 2009 at 3:32 AM, Moochie  > wrote:
>
>
>
> $ie.text_field(:id=>'diagnosis_date',:index=>index)
>
> Creates a error
>
> send:{index=2, :id+>diagnosis_date"} is not a symbol.
>
> I looked and there is a defect, but I"m not sure if it's been fixed
>
>
> http://wiki.openqa.org/display/WTR/Multiple+Attributes
>
>
>
>
>
>
> >


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Multiple Attributes Issue

2009-01-08 Thread wesley chen
I think text_field doesn't support multiple attributes in this release.
Thanks.
Wesley Chen.


On Fri, Jan 9, 2009 at 3:32 AM, Moochie  wrote:

>
>
> $ie.text_field(:id=>'diagnosis_date',:index=>index)
>
> Creates a error
>
> send:{index=2, :id+>diagnosis_date"} is not a symbol.
>
> I looked and there is a defect, but I"m not sure if it's been fixed
>
>
> http://wiki.openqa.org/display/WTR/Multiple+Attributes
>
>
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---