[wtr-general] Re: How do I select the second identical table?

2011-08-19 Thread Jarmo Pertman
It seems to me that this case isn't covered. At least not in the table_spec or tables_spec. Jarmo On Aug 18, 3:25 pm, Željko Filipin wrote: > On Thu, Aug 18, 2011 at 12:40 PM, Jarmo Pertman wrote: > > No need to add ticket, i'm pretty sure that this case is handled in > > watirspec. I hope :) >

Re: [wtr-general] Re: should exist in a case statement

2011-08-19 Thread Rahul Sharma
Any suggestion on this folks? On 18 August 2011 15:29, Rahul Sharma wrote: > ok. I also tried moving require 'rspec' to the environment file from > the other file which I load after env.rb but that didn't help either. > > On Aug 18, 2:31 pm, Rahul Sharma wrote: > > Hi Guys, > > > > Just wonderi

[wtr-general] Re: problem with acces test data using openoffice org calc

2011-08-19 Thread Dave McNulla
It looks like your issue is not related to the test data at all, but finding the text_field. If you comment out that line and use this instead, do you still get that error? ie.text_field(:id,'username').value="Not Test Data User" I would try that. Also, if you post the web page source here, othe

[wtr-general] Access to element by CSS with web-driver

2011-08-19 Thread Vitaliy
Hello. Could you help me? I've heard that CSS works faster then Xpath. E.g. from here http://saucelabs.com/blog/index.php/2011/05/why-css-locators-are-the-way-to-go-vs-xpath/ I'm trying to use CSS instead XPATH, to access element. I'm working with watir-webdriver (for Chrome). I've tried smth. simp

[wtr-general] Re: problem with acces test data using openoffice org calc

2011-08-19 Thread joedio
I strongly suggest you install the roo gem. It suppports: OpenOffice, Excel and GoogleDOcs workbooks. See: http://roo.rubyforge.org/ To install on Windows: gem install roo To install on OSX: sudo gem install roo I use it on Linux, OSX, and WInXP, Vista, Win7 and it saves a lot of work!

[wtr-general] Re: Can't locate a text field inside a table

2011-08-19 Thread joedio
Try specifying the Frame by their index. You've already found: browser.show_frames: there are 2 frames frame index: 1 name: frame index: 2 name: So try locating them using the frame's index depending on which iFRame your element resides within: browser.frame(:index => 1).text

[wtr-general] problem with acces test data using openoffice org calc

2011-08-19 Thread jp
Hi, Iam using openoffice org calc in my office i can't access the testdata from that sheet1. can anyone guide me.. This is my code: folder_path='D:\\watir-v1_4\ghrms.rb' require 'watir' require 'win32ole' require "test/unit" include Watir ie = Watir::IE.new ie.goto("http://ghrms.csscorp.com";