[wtr-general] Re: IE9 unknown property or method: 'gsub'
I'll take a look and see if I can reproduce. Thanks for the code and the details Hugh -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
[wtr-general] Re: IE9 unknown property or method: 'gsub'
Hi Charley, I hadn't debugged it at the time of my first message and was curious if anyone else had come across it before I spent time trying to find a minimum set of code that reproduced the issue. I have done some tracing now and have a code example that reproduces the issue. It seems to be an issue with the xpath selectors. Environment: Windows 7 64-bit with Service Pack 1 Internet Explorer 32-bit 9.0.8112.16421 Ruby 1.9.2p180 Gem 1.5.2 Watir 1.9.0 Sample code: require 'watir' browser = Watir::Browser.new browser.goto 'http://google.ca' field = browser.text_field(:xpath, "input[@name='q']") field.exists? When I run the above code I get the follow three lines printed 70 times in a row: unknown property or method: `gsub' HRESULT error code:0x80020006 Unknown name. -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] IE9 unknown property or method: 'gsub'
Not sure where you're getting the error, code would be good and will help people troubleshoot where and why. Also post ruby version and watir version at the least. This may have been fixed in the most recent version of Watir. -c On Fri, Jun 24, 2011 at 3:32 PM, Michael wrote: > We are starting to run our tests on IE9 on Windows 7 x64 (but 32bit > version of IE), and am receiving thousands of the same error. It > appears to be occurring for every element search and action (like > click). > > Has anyone else run into this? There's no stack trace or anything, so > I'm guessing its an issue with communicating with IE. > > unknown property or method: `gsub' >HRESULT error code:0x80020006 > Unknown name. > > Michael > > -- > Before posting, please read http://watir.com/support. In short: search > before you ask, be nice. > > watir-general@googlegroups.com > http://groups.google.com/group/watir-general > watir-general+unsubscr...@googlegroups.com > -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
[wtr-general] IE9 unknown property or method: 'gsub'
We are starting to run our tests on IE9 on Windows 7 x64 (but 32bit version of IE), and am receiving thousands of the same error. It appears to be occurring for every element search and action (like click). Has anyone else run into this? There's no stack trace or anything, so I'm guessing its an issue with communicating with IE. unknown property or method: `gsub' HRESULT error code:0x80020006 Unknown name. Michael -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
[wtr-general] Re: Support More HTML Tags -- Watir Gem Add-on?
Yes that is what I meant. For I extended the table class with some new methods by adding this to the source file. class Watir::Table def row_count return self.rows.length end def column_count return self.row.cells.length end end -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
[wtr-general] format my rake file
I'm using taza as my framework, and was wondering if there was anyway to add information/format the html report that's generated by the rake task. I'm kind of at a loss, and haven't really been able to find anything. Based on what i read in the wiki, i assume that I have to edit the rake file. But i don't know how to do that to get the information I want added to the report. The information I'd like to add is: the browser tested, the url tested, and possibly change the header of the report. I'd also like to make some cosmetic changes to certain colors on the report. This is the rake file: Taza::Rake::Tasks.new do |t| file_hole = “artifacts/#{Time.now.to_i}” t.spec_opts = [“—format html:#{file_hole}/index.html”, “—format p”, “—format failing_examples:#{file_hole}/ failing_examples.txt”] end -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
[wtr-general] Re: Support More HTML Tags -- Watir Gem Add-on?
Are you talking about putting the code (that adds the tag) inside of the ruby script that actually needs to use the tag? ie, the script I wrote that uses watir? I played around with this idea some, but couldn't get it to work. Do you know how to do it? -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
[wtr-general] Re: Support More HTML Tags -- Watir Gem Add-on?
Instead of changing the actual gems files, you could extend the relevant class in your own sources? -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
[wtr-general] Support More HTML Tags -- Watir Gem Add-on?
Recently I had to add the tag to my installation of Watir. It works great, but the problem is I need to distribute this addition to Watir to a group of people. I know they could simply copy and paste the code I added into the proper files, but I was wondering if there was a better/nicer way to do this. For example, make the additional tag be a whole seperate file? Or ever be it's own gem, as a sort of add-on that will add the file/code to Watir? (I know nothing about making gems, so I don't even know if that would be possible). Thank you all for your time. -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com