[wtr-general] Strange issue with ie.attach()

2009-04-29 Thread Isabel
Hi All, Yesterday while working on watir, suddenly ie.attach() stopped working for me. It started working again on restarting the system. Has anyone of you come across something like this? If yes, why is this so? Thanks and Regards. --~--~-~--~~~---~--~~ You rece

[wtr-general] Re: How to

2009-04-29 Thread Prince3105
Sorry mates please avoid this mail and refer another mail, in which i have described my issue clearly. @Moderator - please delete this mail. I pressed the send button accidentally. Thanks. On Apr 30, 10:07 am, Prince3105 wrote: > Hi All, > > I use below code for login. > >   def login(user_id,

[wtr-general] How to click a cell in a dynamically changing Table?

2009-04-29 Thread Prince3105
Hi All, I am a newbie to Watir and Ruby. I use below function for login process. As per user's Role Rights the user can navigate to the permitted pages. Initially user has to click the main menu, like admin, master, operation... clicking on the main menu will show allotted pages names dynamical

[wtr-general] How to

2009-04-29 Thread Prince3105
Hi All, I use below code for login. def login(user_id, password, module_table_id, module_name, page_table_id, page_name) @ie = Watir::IE.new @ie.goto $url @ie.maximize @ie.bring_to_front @ie.text_field(:id,"txtUserName").set user_id @ie.text_field(:id,"txtPassword").se

[wtr-general] Re: Does watir::IE.attach() :hwnd support embedded browsers ?

2009-04-29 Thread mwolfe
hey basu, did you ever figure out this issue? I'm trying to do essentially the same thing (work with an embedded IE control). I found the function __IEControlGetObjFromHWND from the IE.au3 Of course, this is not built into the binary for autoit so I can't use that. It looks (kind of) like you trie

[wtr-general] Re: FireWatir 1.6.2 unittests don't run

2009-04-29 Thread amit onkar
Use ruby mozilla_all_tests.rb... On Sun, Apr 5, 2009 at 9:58 AM, Paul wrote: > > Hi there, I recently updated my Watir gem to 1.6.2 on a Windows XP > computer so I could play with FireWatir. I searched for the unittests > and found them on the C: drive at: > > C:\ruby\lib\ruby\gems\1.8\gems\fir

[wtr-general] Re: Error when clicking on Submit button in pupup window.

2009-04-29 Thread Bill Agee
I'm glad you brought this up, I ran into a similar issue a few days ago, using both stick 1.6.2 and the latest gems built from trunk. I wanted to make a post/file a ticket about it, but after I worked around it I haven't had time to write up a bug report or create unit test files for the issue. I

[wtr-general] Re: setting browser through rake

2009-04-29 Thread Bret Pettichord
Try this: ENV['watir_browser'] = 'firefox' Setting Watir::Browser.default in your rake file won't work, because Cucumber is running in a separate process. Bret aidy lewis wrote: > Hi, > > Has anyone managed to set the browser through Rake? > > > > require 'cucumber/rake/task' > require 'wa

[wtr-general] Re: thinking about automation frameworks/harnesses

2009-04-29 Thread Lisa Crispin
Speaking as someone who is definitely OO-challenged and a barely competent Ruby scripter, I like the simplicity of what Chris did, I can understand it right away. If I were someone just starting out on Watir, it would make sense to me. -- Lisa On Wed, Apr 29, 2009 at 9:08 AM, Chris McMahon < chris

[wtr-general] Re: FireWatir 1.6.2 unittests don't run

2009-04-29 Thread ash
I could also use some help with this so if the wiki could be updated that would be great. Went to see where the commonwatir directory should be and discovered that there is already a 'commonwatir-1.6.2' directory here; C:\Ruby\lib \ruby\gems\1.8\gems\commonwatir-1.6.2. Any help would be gratefully

[wtr-general] Error when clicking on Submit button in pupup window.

2009-04-29 Thread alex
Hi all, I have the following scenario: 1. start Firefox and go to the "my_page" 2. click on link => popup window is opened 3. attach to the popup window 4. select checkbox and click on - the popup window is closed. At this point the script exits and I get the following error: c:/ruby/lib/ruby/

[wtr-general] Re: send keystrokes to ie frame - text field

2009-04-29 Thread Charley Baker
You're calling send_keys on the string in .set. Try this instead: $IE0.frame(:index, 11).frame(:index, 7).text_field(:id, 'dataEntryField_40870').set(testtext) $IE0.frame(:index, 11).frame(:index, 7).text_field(:id, 'dataEntryField_40870').send_keys("{ENTER}") Charley Baker blog: http://blog.cha

[wtr-general] send keystrokes to ie frame - text field

2009-04-29 Thread deralex
Hi, i am actually getting into watir and i really like it. But i am missing sending keystrokes to IE text field in a frame. Case: We have quick search function e.g. adding a name to a field "test" then the db is search for all ppl. with "test" in the name. After this i go a list displayed with a

[wtr-general] Re: thinking about automation frameworks/harnesses

2009-04-29 Thread Charley Baker
Bret gave a good summary on his most recent blog post: http://www.io.com/~wazmo/blog/archives/2009_04.html#000293 Charley Baker blog: http://blog.charleybaker.org/ Lead Developer, Watir, http://wtr.rubyforge.org QA Architect, Gap Inc Direct On Wed, Apr 29, 2009 at 9:00 AM, George wrote: > >

[wtr-general] Re: thinking about automation frameworks/harnesses

2009-04-29 Thread Chris McMahon
On Apr 29, 12:47 am, JArkelen wrote: > It wasn't broad criticism, it was just my 2 cents about combining test > data and object data. I don't know what you mean by "object data". Probably a character flaw on my part, but that's why I was hoping for an example of what you meant. And since the

[wtr-general] Re: thinking about automation frameworks/harnesses

2009-04-29 Thread George
Maybe this speaks of my programming ignorance, but what exactly constitutes a "test harness"? I hear this phrase bandied about, but I'm not sure I have a solid grasp of what this actually means. I hope this isn't hijacking the thread, but I would really like a better understanding. I know with

[wtr-general] Re: Excel Data Driven Harness with Database Verifications

2009-04-29 Thread lokesh.agra...@gmail.com
Thanks Tiffany, I will try to write stylesheet using this tutorial. Regards, Lokesh Agrawal On Apr 27, 7:37 pm, Tiffany Fodor wrote: > Hi Lokesh! > > You can use any stylesheet you like to transform the xml to html, it > just has to be referenced in the xml you're transforming.  I haven't >