Re: [wtr-general] Re: Getting error (JsshSocket::JSReferenceError)

2010-07-27 Thread chethan sarathy
Hi Every one, Pls help me to solve this issue, I am unable to work with firefox browser. Thanks,Chethan --- On Mon, 26/7/10, chethan sarathy chethan2...@yahoo.co.in wrote: From: chethan sarathy chethan2...@yahoo.co.in Subject: Re: [wtr-general] Re: Getting error (JsshSocket::JSReferenceError)

[wtr-general] Re: UTF8 encode in FireWatir under Mac

2010-07-27 Thread gs
Hi, Thanks Ethan... It works like a charm!! :) I need to do more test with Vapir to be sure that all tests work like with FireWatir. Just to be clear. I am wondering about the Vapir updates. Will you support it to have all such functionalities as Watir and FireWatir? Cause if all will go

[wtr-general] Re: UTF8 encode in FireWatir under Mac

2010-07-27 Thread grzegorz.smaj...@gmail.com
Just noticed that Vapir is working very slownly under Mac...any possibilities to speed it up? Also I am using in my test startClicker (in FireWatir) it does not throw an exception so if it will not be found than it proceedes..but in Vapir..it throws an exception that modal was not found. Any

[wtr-general] Re: cant get an element

2010-07-27 Thread ryanthescot
Thanks for the replies. I posted the question on Stack Overflow and figured it out from there. my_span = @@ie.span(:id, dnn_ctr353_Main_ctl00_ctl00_ctl00_ctl07_Field_048b9dfa-bc64-42e4-8bd5- b45385e5f45b_view_value) my_p = my_span.p(:class, wpFieldValue)

Re: [wtr-general] Re: Check out the Watir Stack Exchange site!

2010-07-27 Thread Željko Filipin
I was away for a few weeks snorkeling and brewing, but I see Watir community was busy. :) Our Stack Exchange site [1] just got 60th follower! (Thanks to our old friend MarekJ.) But why did not it move from define to commit phase?! (Like Selenium site [2] did some time ago?) The answer is in

[wtr-general] Re: Recent Stack Overflow Questions Tagged Watir

2010-07-27 Thread Željko Filipin
http://stackoverflow.com/questions/3291956/if-i-start-a-new-should-i-start-with-watir-webdriver http://stackoverflow.com/questions/3277442/watir-can-i-tunnel-through-an-external-http-socks-proxy-over-firefox -- Before posting, please read http://watir.com/support. In short: search before you

[wtr-general] Re: new page has no focus

2010-07-27 Thread KimBrown
The closest thing I've come across is when a page isn't finished loading and IE or Firefox times out.  It doesn't really sound like that's your problem though. You're right, that's not it. It's completely loaded and will just sit there patiently waiting until I click on it with the mouse. Then

Re: [wtr-general] facing issue with clicking buttons

2010-07-27 Thread praveen kumar
Hi Raveendran, Thanks for the reply... I tried with the all the possibilities you provided.None of them are working. Getting error as Unable to locate element. Please let me know if any other options. Thanks, Praveen On Tue, Jul 27, 2010 at 11:09 AM, Raveendran P jazzezr...@gmail.com wrote:

[wtr-general] Re: How can I fill in a form with username and password ?

2010-07-27 Thread Chan Nguyen
Got it solved, just use ie.text_field( :id, username ).set some user name Thanks everyone for reading this thread ;) -- 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

[wtr-general] How to access element in a table ?

2010-07-27 Thread Chan Nguyen
down vote favorite Hi everyone, I'm current writing a test script for our MLS( Multiple Listing System ) systems. The website is mainly written in C# .NET. Here is the screenshot that I got: http://i235.photobucket.com/albums/ee62/rox_rook/Ex-1.gif And this is the HTML source: !DOCTYPE HTML

Re: [wtr-general] How to access element in a table ?

2010-07-27 Thread Basim Baassiri
Hi Chan You can try and use firebug to identify element http://getfirebug.com/downloads http://getfirebug.com/downloadsBasim On Tue, Jul 27, 2010 at 3:17 PM, Chan Nguyen atbl1...@gmail.com wrote: down vote favorite Hi everyone, I'm current writing a test script for our MLS( Multiple

Re: [wtr-general] How to access element in a table ?

2010-07-27 Thread Chan Nguyen
Hi Basim, Thanks a lot for your quick response. I just found out that element is actually a table. I accessed to a particular table like this : my_table = ie.table( :id, uwmMainMenu_MainM ) Next, I need to access the each element of the first row of this table, but I got stuck at this point.

[wtr-general] Re: How to access element in a table ?

2010-07-27 Thread Tiffany Fodor
Hi! The Watir Cheat Sheet (http://wiki.openqa.org/display/WTR/Cheat+Sheet) has an example of working with table elements: td = browser.table(:name, 'recent_records')[2][1] td is now the cell at row 2, column 1 of your table. There's more information on the Table class in the Watir API

Re: [wtr-general] Re: How to access element in a table ?

2010-07-27 Thread Chan Nguyen
Hello Tiffany, Thanks for your help. I actually did go through that example, but in that cell there are a list of options that I have to pick one: - Quick Search - Saved Search - Standard Search ...etc and there is no click option for a cell. I really struggle with this :( ! Can you give me some

Re: [wtr-general] Re: How to access element in a table ?

2010-07-27 Thread Basim Baassiri
Hi Chan You might need to use the fire_event method to trigger the javascript in the hover menu. browser.table(:id, uwmMainMenu_MainM).fire_event onmouseover td = browser.table(:id, uwmMainMenu_MainM')[2][1] td.fire_event onfocus # or td.fire_event onclick Basim On Tue, Jul 27, 2010 at 4:22 PM,

[wtr-general] Re: How to access element in a table ?

2010-07-27 Thread Tiffany Fodor
I think you should be able to access the link as an element in the table cell: ie.table(:id, uwmMainMenu_MainM )[2][1].link(:text, 'Quick Search').click or, if you assign your element to a variable: my_cell = ie.table(:id, uwmMainMenu_MainM )[2][1] my_cell.link(:text, 'Quick Search').click

Re: [wtr-general] Re: How to access element in a table ?

2010-07-27 Thread Chan Nguyen
Hi Tiffany, I tried your method, but it gave me errors. I use NetBean IDE Beginning of test: Sedona Verde Valley Step 1: go to the test site: http://svvarmls.rapmlsqa.com/ Step 2: enter username : rapstaff in the Agent ID field Step 3: enter password : Succ3ss! in the Agent ID field` Step 4:

[wtr-general] Understanding Modules and Classes a little better

2010-07-27 Thread Jason
Hey team, I might post a few discussions here over the coming days trying to better improve my framework, and to start I want to make sense of Modules and Classes. Previously I've just written a whole lot of methods, loaded every script and called each method as required, with little or no

[wtr-general] Having a Devil of a time accessing this button...

2010-07-27 Thread Eric Mathiesen
Hello All, I'm having a devil of a time executing this javascript button event, I tried using ie.button(:id, generate::0).fire_event('onmousedown'), ie.button(:id, generate::0).fire_event('onclick') and a couple other ways to click this button, all to no avail. Here's the code snippit of the

Re: [wtr-general] Re: How to access element in a table ?

2010-07-27 Thread Chan Nguyen
Hi Basim, Thanks a lot for your help. Your solution makes a lot of sense to me. To be honest, I'm a newbie to Ruby, HTML, and web environment. I'm working as an intern. My strongest skill is C++, but this company is all about C#, .NET, ASP.NET, Java... I have to learn 3 languages for about a month

Re: [wtr-general] Re: How to access element in a table ?

2010-07-27 Thread Basim Baassiri
Hi Chan What code did you try to choose Quick Search? Basim On Tue, Jul 27, 2010 at 4:55 PM, Chan Nguyen atbl1...@gmail.com wrote: Hi Basim, Thanks a lot for your help. Your solution makes a lot of sense to me. To be honest, I'm a newbie to Ruby, HTML, and web environment. I'm working as an

Re: [wtr-general] Understanding Modules and Classes a little better

2010-07-27 Thread Felipe Knorr Kuhn
Hello, Jason. The Programming Ruby 1.9 book, found at pragprog.com is great and has a quite extensive chapter on classes and modules. I highly recommend you to buy it (I can send you a 40% discount code if you want :) I won't reproduce the entire chapter here, but the main difference is that

[wtr-general] Re: Having a Devil of a time accessing this button...

2010-07-27 Thread Chuck van der Linden
Try matching the case on the event name with the ones in the source, instead of all lower case e.g. browser.button(:id, generate::0).fire_event('onClick') In terms of 'not working' it helps if we get a bit more detail in terms of things like 'does anything happen? do you get an error? (if so,

Re: [wtr-general] Re: Having a Devil of a time accessing this button...

2010-07-27 Thread Eric Mathiesen
I have audio on my automation test machine, and I have it setup for an audible click when it simulates a mouse click. Watir is driving the mouseclick on the element under test, however Internet Explorer just stays idle on the page and WATIR reports; Loaded suite Started Finished in 0.0 seconds.

[wtr-general] Re: facing issue with clicking buttons

2010-07-27 Thread Chuck van der Linden
Frankly I'd find some other thing to try and automate. GMAIL intentionally makes their UI difficult to automate. ID's are uniquely regenerated each time you instantiate the compose mail page (and different each time) Classes look fairly randomized and I'd place no bets on Gmail not updating

[wtr-general] Re: Having a Devil of a time accessing this button...

2010-07-27 Thread Chuck van der Linden
did you try onMouseOver first, then the click? that would sort of be the natural sequence On Jul 27, 3:44 pm, Eric Mathiesen mathiese...@gmail.com wrote: I have audio on my automation test machine, and I have it setup for an audible click when it simulates a mouse click.  Watir is driving the

RE: [wtr-general] Re: facing issue with clicking buttons

2010-07-27 Thread Jason Trebilcock
Or, someone might take the lazy way out and use the ruby-gmail gem. But that's just me. Automating email handling through some sort of client (web, Outlook, etc.) is just plain dumb. I sometimes use something similar in Perl if/when I need to generate/send email. When all you have is a hammer,