Re: [wtr-general] Trying to test for table data
On Tue, Sep 14, 2010 at 9:58 PM, Watir General sean...@gmail.com wrote: 9if browser.table(:id, dataTableBody).include?(146173) NoMethodError: undefined method `include?' for #Watir::Container::Table:0x1010e1710 You are calling include? method on a table object, and Ruby complains. You should call the method on table text (or html). Example (not tested): browser.table(:id, dataTableBody).text.include?(146173) Željko -- watir.com - community manager watirpodcast.com - host testingpodcast.com - audio podcasts on software testing. all of them -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] Re: Recent Stack Overflow Questions Tagged Watir
http://stackoverflow.com/questions/3710550/issue-retrieving-custom-attribute -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com
[wtr-general] way to perform double click operation for select list box object item
Hi all just want to share this information to all. i was facing the problem for double click operation for select list box object item In My application i have to select the list box item and double click on it so that it will add in another frame this was the code i used for double click first we have to select the list box item after that use fire_event method $ie.form(:id ,mainForm).select_list(:class, playerTagsByName).select(Jeter, Derek) $ie.form(:id ,mainForm).select_list(:class, playerTagsByName).f ire_event(ondblclick) -- RAJIV KUMAR http://rajivkumarnandvani.wordpress.com/ http://learnqtphelp.blogspot.com/ -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com
[wtr-general] Re: Javascript popup on goto()
http://wiki.openqa.org/display/WTR/Pop+Ups http://wiki.openqa.org/display/WTR/JavaScript+Pop+Ups Or use the 'search this group' box at the top of the page and search for 'javascript popup' On Sep 14, 8:16 am, balexis bale...@gmail.com wrote: Hello, I'm running Firewatir 1.6.5 on Ubuntu 10.04. I am experiencing the following problem and can't manage to find a solution at all. I instantiate a browser and use goto() to visit a given site. Upon landing on the site, I am 'greeted' with a Javascript popup, which I would like to dismiss by clicking on the OK button. However, the goto() method blocks until the popup is dismissed, so I can't use the modal_dialog or popup() objects/method. Also, calling startClicker before calling goto() has no effect. I'm guessing I would need some sort of goto_no_wait() so that I can them sleep for a while and check for the presence of a Javascript dialog and dismiss it programmatically. Can anyone think of a solution to this problem? Thanks Alexis -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com
[wtr-general] Re: way to perform double click operation for select list box object item
Makes complete sense. Normal HTML select list controls don't support a 'double-click' function (nothing on the web normally does doubleclicks). Ergo the functionality you are seeing must be implemented with javascript, which is activated when it see's the doubleclick event occur within the context of that element on the page. On Sep 15, 6:06 am, Rajiv Nanduani rajivkumarnandv...@gmail.com wrote: Hi all just want to share this information to all. i was facing the problem for double click operation for select list box object item In My application i have to select the list box item and double click on it so that it will add in another frame this was the code i used for double click first we have to select the list box item after that use fire_event method $ie.form(:id ,mainForm).select_list(:class, playerTagsByName).select(Jeter, Derek) $ie.form(:id ,mainForm).select_list(:class, playerTagsByName).f ire_event(ondblclick) -- RAJIV KUMAR http://rajivkumarnandvani.wordpress.com/ http://learnqtphelp.blogspot.com/ -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com
[wtr-general] Re: Setting text in br tags
Is this some kind of activeX control that appears like a native windows control? If so it makes sense to use AutoIT if it's implemented in a browser, as some kind of normal input field you'd think that it would be easy enough to set the field and then fire whatever event (or use submit button... ) the code is looking for to process the contents of the edit dialog. in that case you should be able to do it with normal water methods. In either case, 'whatever works', works. On Sep 14, 8:17 am, Usman Hussain usmanhhuss...@gmail.com wrote: Hey Keith, I just got it working by doing the following: require 'rubygems' require 'win32ole' require 'watir-webdriver' autoit = WIN32OLE.new('AutoITX3.Control') autoit.WinActivate('Magnolia Edit Dialog') autoit.Send('{TAB}') autoit.Send('{TAB}') autoit.Send('hello world usman is the best') puts 'Text Entered Into Paragraph Box' It is a bit of a cheat but it does the trick... Will give your way a go aswell. will let you know if that worked also. thanks for the reply usman hussain On Sep 14, 4:05 pm, Keith Hughes khughe...@gmail.com wrote: Hi Usman, try browser.element_by_xpath(//b...@_moz_editor_bogus_node='TRUE']/).set(blah ) Keith On Tue, Sep 14, 2010 at 3:00 PM, Usman Hussain usmanhhuss...@gmail.comwrote: Hi Guys, (Me Again...!) Ive come across a problem (again...) For the paragraph field for the CMS system im automating it has br tags instead of being a text_field. the html looks like this: - td class=mgnlDialogBoxInput style=width: 100%; + script src=/.resources/js/codepress/codepress.js type=text/ javascript - iframe frameborder=0 style=height: 39px; width: 100%; border: 1px solid gray; visibility: visible; position: static; display: inline; src=http://author.chimera.trunk- demo.dev.gamesys.corp/.resources/js/codepress/codepress.html? language=genericts=1284470914572 - html + head - body br _moz_editor_bogus_node=TRUE _moz_dirty= /body /html /iframe When i then enter in some text MANUALLY it changes to this: - td class=mgnlDialogBoxInput style=width: 100%; + script src=/.resources/js/codepress/codepress.js type=text/ javascript - iframe frameborder=0 style=height: 39px; width: 100%; border: 1px solid gray; visibility: visible; position: static; display: inline; src=http://author.chimera.trunk- demo.dev.gamesys.corp/.resources/js/codepress/codepress.html? language=genericts=1284470914572 - html + head - body preusman hello/pre /body /html /iframe Is there any way that I can set the text which goes into this field? by using a set(usman hello) type function? kind regards, Usman Hussain -- Before posting, please readhttp://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@goog legroups.com- Hide quoted text - - Show quoted text - -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com
[wtr-general] Re: Trying to test for table data
I appreciate everyone's input! :) however I still get NoMethodErrors... I have a similar version of the script I'm trying to create here for just some random website with table data: require 'rubygems' require 'safariwatir' browser = Watir::Safari.new browser.goto(http://www.hurricaneaquasports.com/santee-100.html;) if browser.table(:id, Table_01).cell(:text, 33 lbs).exists? puts Data Verify passed else puts Data Verify FAILED. Ouch. end When I run that I get this. _ NoMethodError: undefined method ‘cell’ for #Watir::Container::Table: 0x1010ede48 at top levelin Test for Cell Data.rb at line 6 _ any thoughts? On Sep 15, 11:41 am, Chuck van der Linden sqa...@gmail.com wrote: If Z's approach below doesn't work (first thing I would have suggested) you could also try something along these lines (especially the first one if you know that a single cell should contain just that text and nothing more) if browser.table(:id, dataTableBody).cell(:text, 146173).exists? or if browser.table(:id, dataTableBody).row(:text, /146173/).exists? On Sep 15, 1:02 am, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Tue, Sep 14, 2010 at 9:58 PM, Watir General sean...@gmail.com wrote: 9 if browser.table(:id, dataTableBody).include?(146173) NoMethodError: undefined method `include?' for #Watir::Container::Table:0x1010e1710 You are calling include? method on a table object, and Ruby complains. You should call the method on table text (or html). Example (not tested): browser.table(:id, dataTableBody).text.include?(146173) Željko -- watir.com - community manager watirpodcast.com - host testingpodcast.com - audio podcasts on software testing. all of them -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] Re: Trying to test for table data
hi try this as Z suggested require 'rubygems' require 'safariwatir' browser = Watir::Safari.new browser.goto(http://www.hurricaneaquasports.com/santee-100.html;) if browser.table(:id, Table_01).text.include?(33 lbs) puts Data Verify passed else puts Data Verify FAILED. Ouch. end or require 'rubygems' require 'safariwatir' browser = Watir::Safari.new browser.goto(http://www.hurricaneaquasports.com/santee-100.html;) if browser.table(:id, Table_01).html.include?(33 lbs) puts Data Verify passed else puts Data Verify FAILED. Ouch. end On Wed, Sep 15, 2010 at 10:52 PM, Watir General sean...@gmail.com wrote: I appreciate everyone's input! :) however I still get NoMethodErrors... I have a similar version of the script I'm trying to create here for just some random website with table data: require 'rubygems' require 'safariwatir' browser = Watir::Safari.new browser.goto(http://www.hurricaneaquasports.com/santee-100.html;) if browser.table(:id, Table_01).cell(:text, 33 lbs).exists? puts Data Verify passed else puts Data Verify FAILED. Ouch. end When I run that I get this. _ NoMethodError: undefined method ‘cell’ for #Watir::Container::Table: 0x1010ede48 at top levelin Test for Cell Data.rb at line 6 _ any thoughts? On Sep 15, 11:41 am, Chuck van der Linden sqa...@gmail.com wrote: If Z's approach below doesn't work (first thing I would have suggested) you could also try something along these lines (especially the first one if you know that a single cell should contain just that text and nothing more) if browser.table(:id, dataTableBody).cell(:text, 146173).exists? or if browser.table(:id, dataTableBody).row(:text, /146173/).exists? On Sep 15, 1:02 am, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Tue, Sep 14, 2010 at 9:58 PM, Watir General sean...@gmail.com wrote: 9if browser.table(:id, dataTableBody).include?(146173) NoMethodError: undefined method `include?' for #Watir::Container::Table:0x1010e1710 You are calling include? method on a table object, and Ruby complains. You should call the method on table text (or html). Example (not tested): browser.table(:id, dataTableBody).text.include?(146173) Željko -- watir.com - community manager watirpodcast.com - host testingpodcast.com - audio podcasts on software testing. all of them -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com -- RAJIV KUMAR http://rajivkumarnandvani.wordpress.com/ http://learnqtphelp.blogspot.com/ -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com
[wtr-general] Re: Trying to test for table data
For those I get: NoMethodError: undefined method ‘text’ for #Watir::Container::Table: 0x1010edec0 at top levelin Test for Cell Data Kayaks.rb at line 6 NoMethodError: undefined method ‘html’ for #Watir::Container::Table: 0x1010edec0 at top levelin Test for Cell Data Kayaks.rb at line 6 Thank you but still nothing. This is strange :/ On Sep 15, 1:31 pm, Rajiv Nanduani rajivkumarnandv...@gmail.com wrote: hi try this as Z suggested require 'rubygems' require 'safariwatir' browser = Watir::Safari.new browser.goto(http://www.hurricaneaquasports.com/santee-100.html;) if browser.table(:id, Table_01).text.include?(33 lbs) puts Data Verify passed else puts Data Verify FAILED. Ouch. end or require 'rubygems' require 'safariwatir' browser = Watir::Safari.new browser.goto(http://www.hurricaneaquasports.com/santee-100.html;) if browser.table(:id, Table_01).html.include?(33 lbs) puts Data Verify passed else puts Data Verify FAILED. Ouch. end On Wed, Sep 15, 2010 at 10:52 PM, Watir General sean...@gmail.com wrote: I appreciate everyone's input! :) however I still get NoMethodErrors... I have a similar version of the script I'm trying to create here for just some random website with table data: require 'rubygems' require 'safariwatir' browser = Watir::Safari.new browser.goto(http://www.hurricaneaquasports.com/santee-100.html;) if browser.table(:id, Table_01).cell(:text, 33 lbs).exists? puts Data Verify passed else puts Data Verify FAILED. Ouch. end When I run that I get this. _ NoMethodError: undefined method ‘cell’ for #Watir::Container::Table: 0x1010ede48 at top level in Test for Cell Data.rb at line 6 _ any thoughts? On Sep 15, 11:41 am, Chuck van der Linden sqa...@gmail.com wrote: If Z's approach below doesn't work (first thing I would have suggested) you could also try something along these lines (especially the first one if you know that a single cell should contain just that text and nothing more) if browser.table(:id, dataTableBody).cell(:text, 146173).exists? or if browser.table(:id, dataTableBody).row(:text, /146173/).exists? On Sep 15, 1:02 am, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Tue, Sep 14, 2010 at 9:58 PM, Watir General sean...@gmail.com wrote: 9 if browser.table(:id, dataTableBody).include?(146173) NoMethodError: undefined method `include?' for #Watir::Container::Table:0x1010e1710 You are calling include? method on a table object, and Ruby complains. You should call the method on table text (or html). Example (not tested): browser.table(:id, dataTableBody).text.include?(146173) Željko -- watir.com - community manager watirpodcast.com - host testingpodcast.com - audio podcasts on software testing. all of them -- Before posting, please readhttp://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com -- RAJIV KUMAR http://rajivkumarnandvani.wordpress.com/ http://learnqtphelp.blogspot.com/ -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] Re: Trying to test for table data
hi do one thing just check this puts browser.table(:id, Table_01).exists? wt is output ? then check methods puts browser.table(:id, Table_01).methods.sort or check is table with in frame or not? if yes then puts browser.frame(:id,uridvalue).table(:id, Table_01).text On Wed, Sep 15, 2010 at 11:18 PM, Watir General sean...@gmail.com wrote: For those I get: NoMethodError: undefined method ‘text’ for #Watir::Container::Table: 0x1010edec0 at top levelin Test for Cell Data Kayaks.rb at line 6 NoMethodError: undefined method ‘html’ for #Watir::Container::Table: 0x1010edec0 at top levelin Test for Cell Data Kayaks.rb at line 6 Thank you but still nothing. This is strange :/ On Sep 15, 1:31 pm, Rajiv Nanduani rajivkumarnandv...@gmail.com wrote: hi try this as Z suggested require 'rubygems' require 'safariwatir' browser = Watir::Safari.new browser.goto(http://www.hurricaneaquasports.com/santee-100.html;) if browser.table(:id, Table_01).text.include?(33 lbs) puts Data Verify passed else puts Data Verify FAILED. Ouch. end or require 'rubygems' require 'safariwatir' browser = Watir::Safari.new browser.goto(http://www.hurricaneaquasports.com/santee-100.html;) if browser.table(:id, Table_01).html.include?(33 lbs) puts Data Verify passed else puts Data Verify FAILED. Ouch. end On Wed, Sep 15, 2010 at 10:52 PM, Watir General sean...@gmail.com wrote: I appreciate everyone's input! :) however I still get NoMethodErrors... I have a similar version of the script I'm trying to create here for just some random website with table data: require 'rubygems' require 'safariwatir' browser = Watir::Safari.new browser.goto(http://www.hurricaneaquasports.com/santee-100.html;) if browser.table(:id, Table_01).cell(:text, 33 lbs).exists? puts Data Verify passed else puts Data Verify FAILED. Ouch. end When I run that I get this. _ NoMethodError: undefined method ‘cell’ for #Watir::Container::Table: 0x1010ede48 at top levelin Test for Cell Data.rb at line 6 _ any thoughts? On Sep 15, 11:41 am, Chuck van der Linden sqa...@gmail.com wrote: If Z's approach below doesn't work (first thing I would have suggested) you could also try something along these lines (especially the first one if you know that a single cell should contain just that text and nothing more) if browser.table(:id, dataTableBody).cell(:text, 146173).exists? or if browser.table(:id, dataTableBody).row(:text, /146173/).exists? On Sep 15, 1:02 am, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Tue, Sep 14, 2010 at 9:58 PM, Watir General sean...@gmail.com wrote: 9if browser.table(:id, dataTableBody).include?(146173) NoMethodError: undefined method `include?' for #Watir::Container::Table:0x1010e1710 You are calling include? method on a table object, and Ruby complains. You should call the method on table text (or html). Example (not tested): browser.table(:id, dataTableBody).text.include?(146173) Željko -- watir.com - community manager watirpodcast.com - host testingpodcast.com - audio podcasts on software testing. all of them -- Before posting, please readhttp://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com watir-general%2bunsubscr...@googlegroups.comwatir-general%252bunsubscr...@googlegroups.com -- RAJIV KUMAR http://rajivkumarnandvani.wordpress.com/ http://learnqtphelp.blogspot.com/ -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com -- RAJIV KUMAR http://rajivkumarnandvani.wordpress.com/ http://learnqtphelp.blogspot.com/ -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com
[wtr-general] Re: Trying to test for table data
For this: require 'rubygems' require 'safariwatir' browser = Watir::Safari.new browser.goto(http://www.hurricaneaquasports.com/santee-100.html;) puts browser.table(:id, Table_01).methods.sort Output: == === =~ [] __id__ __send__ blank? class clone column_count display dup each enum_for eql? equal? extend freeze frozen? hash how id inspect instance_eval instance_exec instance_of? instance_variable_defined? instance_variable_get instance_variable_set instance_variables is_a? kind_of? method methods nil? object_id private_methods protected_methods public_methods respond_to? row_count send singleton_methods tag taint tainted? tap to_a to_enum to_s type untaint what Everything else I get errors... On Sep 15, 1:56 pm, Rajiv Nanduani rajivkumarnandv...@gmail.com wrote: hi do one thing just check this puts browser.table(:id, Table_01).exists? wt is output ? then check methods puts browser.table(:id, Table_01).methods.sort or check is table with in frame or not? if yes then puts browser.frame(:id,uridvalue).table(:id, Table_01).text On Wed, Sep 15, 2010 at 11:18 PM, Watir General sean...@gmail.com wrote: For those I get: NoMethodError: undefined method ‘text’ for #Watir::Container::Table: 0x1010edec0 at top level in Test for Cell Data Kayaks.rb at line 6 NoMethodError: undefined method ‘html’ for #Watir::Container::Table: 0x1010edec0 at top level in Test for Cell Data Kayaks.rb at line 6 Thank you but still nothing. This is strange :/ On Sep 15, 1:31 pm, Rajiv Nanduani rajivkumarnandv...@gmail.com wrote: hi try this as Z suggested require 'rubygems' require 'safariwatir' browser = Watir::Safari.new browser.goto(http://www.hurricaneaquasports.com/santee-100.html;) if browser.table(:id, Table_01).text.include?(33 lbs) puts Data Verify passed else puts Data Verify FAILED. Ouch. end or require 'rubygems' require 'safariwatir' browser = Watir::Safari.new browser.goto(http://www.hurricaneaquasports.com/santee-100.html;) if browser.table(:id, Table_01).html.include?(33 lbs) puts Data Verify passed else puts Data Verify FAILED. Ouch. end On Wed, Sep 15, 2010 at 10:52 PM, Watir General sean...@gmail.com wrote: I appreciate everyone's input! :) however I still get NoMethodErrors... I have a similar version of the script I'm trying to create here for just some random website with table data: require 'rubygems' require 'safariwatir' browser = Watir::Safari.new browser.goto(http://www.hurricaneaquasports.com/santee-100.html;) if browser.table(:id, Table_01).cell(:text, 33 lbs).exists? puts Data Verify passed else puts Data Verify FAILED. Ouch. end When I run that I get this. _ NoMethodError: undefined method ‘cell’ for #Watir::Container::Table: 0x1010ede48 at top level in Test for Cell Data.rb at line 6 _ any thoughts? On Sep 15, 11:41 am, Chuck van der Linden sqa...@gmail.com wrote: If Z's approach below doesn't work (first thing I would have suggested) you could also try something along these lines (especially the first one if you know that a single cell should contain just that text and nothing more) if browser.table(:id, dataTableBody).cell(:text, 146173).exists? or if browser.table(:id, dataTableBody).row(:text, /146173/).exists? On Sep 15, 1:02 am, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Tue, Sep 14, 2010 at 9:58 PM, Watir General sean...@gmail.com wrote: 9 if browser.table(:id, dataTableBody).include?(146173) NoMethodError: undefined method `include?' for #Watir::Container::Table:0x1010e1710 You are calling include? method on a table object, and Ruby complains. You should call the method on table text (or html). Example (not tested): browser.table(:id, dataTableBody).text.include?(146173) Željko -- watir.com - community manager watirpodcast.com - host testingpodcast.com - audio podcasts on software testing. all of them -- Before posting, please readhttp://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com watir-general%2bunsubscr...@googlegroups.comwatir-general%252bunsubscr...@googlegroups.com -- RAJIV KUMAR http://rajivkumarnandvani.wordpress.com/ http://learnqtphelp.blogspot.com/ -- Before posting, please readhttp://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to
[wtr-general] Re: Trying to test for table data
For this: require 'rubygems' require 'safariwatir' browser = Watir::Safari.new browser.goto(http://www.hurricaneaquasports.com/santee-100.html;) puts browser.table(:id, Table_01).methods.sort Output: == === =~ [] __id__ __send__ blank? class clone column_count display dup each enum_for eql? equal? extend freeze frozen? hash how id inspect instance_eval instance_exec instance_of? instance_variable_defined? instance_variable_get instance_variable_set instance_variables is_a? kind_of? method methods nil? object_id private_methods protected_methods public_methods respond_to? row_count send singleton_methods tag taint tainted? tap to_a to_enum to_s type untaint what Everything else I get errors... On Sep 15, 1:56 pm, Rajiv Nanduani rajivkumarnandv...@gmail.com wrote: hi do one thing just check this puts browser.table(:id, Table_01).exists? wt is output ? then check methods puts browser.table(:id, Table_01).methods.sort or check is table with in frame or not? if yes then puts browser.frame(:id,uridvalue).table(:id, Table_01).text On Wed, Sep 15, 2010 at 11:18 PM, Watir General sean...@gmail.com wrote: For those I get: NoMethodError: undefined method ‘text’ for #Watir::Container::Table: 0x1010edec0 at top level in Test for Cell Data Kayaks.rb at line 6 NoMethodError: undefined method ‘html’ for #Watir::Container::Table: 0x1010edec0 at top level in Test for Cell Data Kayaks.rb at line 6 Thank you but still nothing. This is strange :/ On Sep 15, 1:31 pm, Rajiv Nanduani rajivkumarnandv...@gmail.com wrote: hi try this as Z suggested require 'rubygems' require 'safariwatir' browser = Watir::Safari.new browser.goto(http://www.hurricaneaquasports.com/santee-100.html;) if browser.table(:id, Table_01).text.include?(33 lbs) puts Data Verify passed else puts Data Verify FAILED. Ouch. end or require 'rubygems' require 'safariwatir' browser = Watir::Safari.new browser.goto(http://www.hurricaneaquasports.com/santee-100.html;) if browser.table(:id, Table_01).html.include?(33 lbs) puts Data Verify passed else puts Data Verify FAILED. Ouch. end On Wed, Sep 15, 2010 at 10:52 PM, Watir General sean...@gmail.com wrote: I appreciate everyone's input! :) however I still get NoMethodErrors... I have a similar version of the script I'm trying to create here for just some random website with table data: require 'rubygems' require 'safariwatir' browser = Watir::Safari.new browser.goto(http://www.hurricaneaquasports.com/santee-100.html;) if browser.table(:id, Table_01).cell(:text, 33 lbs).exists? puts Data Verify passed else puts Data Verify FAILED. Ouch. end When I run that I get this. _ NoMethodError: undefined method ‘cell’ for #Watir::Container::Table: 0x1010ede48 at top level in Test for Cell Data.rb at line 6 _ any thoughts? On Sep 15, 11:41 am, Chuck van der Linden sqa...@gmail.com wrote: If Z's approach below doesn't work (first thing I would have suggested) you could also try something along these lines (especially the first one if you know that a single cell should contain just that text and nothing more) if browser.table(:id, dataTableBody).cell(:text, 146173).exists? or if browser.table(:id, dataTableBody).row(:text, /146173/).exists? On Sep 15, 1:02 am, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Tue, Sep 14, 2010 at 9:58 PM, Watir General sean...@gmail.com wrote: 9 if browser.table(:id, dataTableBody).include?(146173) NoMethodError: undefined method `include?' for #Watir::Container::Table:0x1010e1710 You are calling include? method on a table object, and Ruby complains. You should call the method on table text (or html). Example (not tested): browser.table(:id, dataTableBody).text.include?(146173) Željko -- watir.com - community manager watirpodcast.com - host testingpodcast.com - audio podcasts on software testing. all of them -- Before posting, please readhttp://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com watir-general%2bunsubscr...@googlegroups.comwatir-general%252bunsubscr...@googlegroups.com -- RAJIV KUMAR http://rajivkumarnandvani.wordpress.com/ http://learnqtphelp.blogspot.com/ -- Before posting, please readhttp://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to
Re: [wtr-general] Re: Javascript popup on goto()
Keith, your solution works like a charm. I might submit a patch to add a goto_nowait() sometime. Chuck, thanks for trying to help but I did look at these articles and no solution work for what I want to do. Most if not all are Windows and/or Internet Explorer specific anyway. On Wed, Sep 15, 2010 at 11:45 AM, Chuck van der Linden sqa...@gmail.comwrote: http://wiki.openqa.org/display/WTR/Pop+Ups http://wiki.openqa.org/display/WTR/JavaScript+Pop+Ups Or use the 'search this group' box at the top of the page and search for 'javascript popup' On Sep 14, 8:16 am, balexis bale...@gmail.com wrote: Hello, I'm running Firewatir 1.6.5 on Ubuntu 10.04. I am experiencing the following problem and can't manage to find a solution at all. I instantiate a browser and use goto() to visit a given site. Upon landing on the site, I am 'greeted' with a Javascript popup, which I would like to dismiss by clicking on the OK button. However, the goto() method blocks until the popup is dismissed, so I can't use the modal_dialog or popup() objects/method. Also, calling startClicker before calling goto() has no effect. I'm guessing I would need some sort of goto_no_wait() so that I can them sleep for a while and check for the presence of a Javascript dialog and dismiss it programmatically. Can anyone think of a solution to this problem? Thanks Alexis -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com
Re: [Wtr-development] [wtr-general] Re: Check out the Watir Stack Exchange site!
Hey there. I am just catching up on some emails from when I was on vacation and this is one of them. I am sorry that the Watir Stack Exchange site did not work out. I like the idea of encouraging people to use Stack Exchange. However, I don't think that we as a community have to choose between using watir-general or stack exchange. We can use both. Zeljko, if you personally only want to support Stack Exchange then go for it. I think each of the Sheriffs should also make their own decision about what they want to support. Bret On Fri, Aug 13, 2010 at 10:01 AM, Željko Filipin zeljko.fili...@wa-research.ch wrote: I am giving up on Watir Stack Exchange site (http://bit.ly/watirse). Nobody is voting on the questions. Maybe people are on vacation, or nobody cares. I will concentrate on thinking how to move Watir support to http://stackoverflow.com/ One idea I have: - create a page at watir.com with instructions how to post a question at stackoverflow.com - update http://watir.com/support/ page to say stackoverflow.com is the place for Watir support - send warning message at watir-general that it will be read only for a week - in that week post to watir-general only links to Watir questions at stackoverflow.com - see what happens and decide what to do next Is it too radical? :) Željko ___ Wtr-development mailing list wtr-developm...@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-development -- Bret Pettichord Lead Developer, Watir, www.watir.com Blog, www.io.com/~wazmo/blog Twitter, www.twitter.com/bpettichord -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com