[wtr-general] Re: Multiple Attributes and form
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
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
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
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
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
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
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
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
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
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 -~--~~~~--~~--~--~---