Re: [wtr-general] Click on link with href Javascript:calllogout()

2011-01-19 Thread Michael Hwee
Did you try $ie.link(:text,'Logout').click Michael From: Aravind aravindredd...@gmail.com To: watir-general@googlegroups.com Sent: Wed, January 19, 2011 4:46:52 AM Subject: Re: [wtr-general] Click on link with href Javascript:calllogout() thanks for the

Re: [wtr-general] Click on link with href Javascript:calllogout()

2011-01-19 Thread Michael Hwee
Also did you try $ie.link(:text,'Logout').fire_event(onclick) From: Aravind aravindredd...@gmail.com To: watir-general@googlegroups.com Sent: Wed, January 19, 2011 6:45:40 AM Subject: Re: [wtr-general] Click on link with href Javascript:calllogout() Hi I

Re: [wtr-general] Re: A stupid question ... how do I apply patches to Watir? :-(

2010-04-13 Thread Michael Hwee
Can you use click! - Original Message From: Rats crapats...@yahoo.com.au To: Watir General watir-general@googlegroups.com Sent: Tue, April 13, 2010 5:13:50 PM Subject: [wtr-general] Re: A stupid question ... how do I apply patches to Watir? :-( On Apr 14, 9:05 am, Rats

Re: [wtr-general] HP acquires the Watir project, announces Wativ

2010-04-01 Thread Michael Hwee
Is that April fool? From: arihan sinha arihan.si...@googlemail.com To: watir-general@googlegroups.com Sent: Thu, April 1, 2010 3:25:53 AM Subject: Re: [wtr-general] HP acquires the Watir project, announces Wativ Can any one please confirm that this is the

[wtr-general] Re: Iterate buttons in the page and call a method

2009-11-05 Thread Michael Hwee
I think he meant there are multiple buttons and he wanted to click on each one. But, it is clicking only first one. He needs to use the indexing to get to next button. From: Ethan notet...@gmail.com To: watir-general@googlegroups.com Sent: Thu, November 5,

[wtr-general] Re: onMouseover

2009-08-25 Thread Michael Hwee
I might give some sleep between mouseover and clicking. - Original Message From: sd qajan2...@gmail.com To: Watir General watir-general@googlegroups.com Sent: Tuesday, August 25, 2009 2:05:56 PM Subject: [wtr-general] onMouseover Hi, I have an item. Once I mouseover that item, I

[wtr-general] Re: :index = 0 with firewatir

2009-08-15 Thread Michael Hwee
I would rather use browser.links.length This is already 1-based. - Original Message From: Jari Bakken jari.bak...@gmail.com To: watir-general@googlegroups.com Sent: Friday, August 14, 2009 11:20:30 AM Subject: [wtr-general] Re: :index = 0 with firewatir On Fri, Aug 14, 2009 at 5:49

[wtr-general] Re: :index = 0 with firewatir

2009-08-14 Thread Michael Hwee
: index= 0 is not the last item. - Original Message From: Alexandre neonoe123...@gmail.com To: WATIR watir-general@googlegroups.com Sent: Friday, August 14, 2009 5:40:55 AM Subject: [wtr-general] :index = 0 with firewatir Hello, using firewatir, ff.link(:text = foo,:index =

[wtr-general] Re: Not able to run automatically a script automatically using rufus-scheduler

2009-08-13 Thread Michael Hwee
I think you need to use system(). system(ruby test1.rb) - Original Message From: Maumita maumita.majum...@gmail.com To: Watir General watir-general@googlegroups.com Sent: Thursday, August 13, 2009 3:26:52 AM Subject: [wtr-general] Not able to run automatically a script automatically

[wtr-general] Re: Watir on Ruby 1.9.1

2009-08-10 Thread Michael Hwee
This is so great, Jari. Thanks for working on this. - Original Message From: Jari Bakken jari.bak...@gmail.com To: watir-general@googlegroups.com Sent: Sunday, August 9, 2009 3:49:59 AM Subject: [wtr-general] Re: Watir on Ruby 1.9.1 On Fri, Aug 7, 2009 at 2:18 AM, Jari

[wtr-general] Re: stop ie from code

2009-08-08 Thread Michael Hwee
don't think there is such method(ie.ie.stop) My ruby version 1.8.6 and watir version is 1.6.2. Is there any other soultion? On Sat, Aug 8, 2009 at 12:28 AM, Michael Hwee michael_h...@yahoo.com wrote: Try ie.ie.stop - Original Message From: Alex.Dev btb8...@gmail.com To: Watir General

[wtr-general] Re: stop ie from code

2009-08-07 Thread Michael Hwee
Try ie.ie.stop - Original Message From: Alex.Dev btb8...@gmail.com To: Watir General watir-general@googlegroups.com Sent: Friday, August 7, 2009 2:01:38 AM Subject: [wtr-general] stop ie from code I tried to open a very slowly website, i want to stop it(like click stop button in

[wtr-general] Re: Watir on Ruby 1.9.1

2009-08-06 Thread Michael Hwee
Good job, Jari. Does it work with Watir 1.6.1 or 1.6.2? From: Jari Bakken jari.bak...@gmail.com To: watir-general@googlegroups.com Sent: Wednesday, August 5, 2009 3:51:55 PM Subject: [wtr-general] Re: Watir on Ruby 1.9.1 I figured out the WIN32OLE issue - all

[wtr-general] Re: attach while browser is still processing

2009-06-18 Thread Michael Hwee
To answer your question, it is 'No'. I have similar experience with this issue, but not exactly situation in Eric's case. The attach() function uses Shell.Application loop to search for the IE window. Unfortunately, this weird IE would not show up at all. It just basically stuck there.

[wtr-general] Re: Setting HTML Properties

2009-06-18 Thread Michael Hwee
I think you could. ie.table(:index,1).attributes['display'].value='block' ie.table(:index,1).link(:index,1).click - Original Message From: Ray rayjh...@gmail.com To: Watir General watir-general@googlegroups.com Sent: Thursday, June 18, 2009 4:13:31 PM Subject: [wtr-general] Setting

[wtr-general] Re: how to set IE screen width height?

2009-06-12 Thread Michael Hwee
Or, single line with javascript. $ie.ie.document.parentWindow.execScript(resizeTo(x,y)) - Original Message From: orde ohil...@gmail.com To: Watir General watir-general@googlegroups.com Sent: Friday, June 12, 2009 9:59:48 AM Subject: [wtr-general] Re: how to set IE screen width

[wtr-general] Re: element search recursive?

2009-06-03 Thread Michael Hwee
Frame object is entirely different entity from $ie. So, it does not navigate into a frame to find frame objects. What you finding is expected behavior. - Original Message From: MatchBook jeffrey.fl...@gmail.com To: Watir General watir-general@googlegroups.com Sent: Wednesday, June 3,

[wtr-general] Re: forms in subframes - elements not found

2009-05-27 Thread Michael Hwee
Have you tried omitting form()? For example, ff.frame(index, 1).select_list(:id,LOV6) - Original Message From: jason jason.franklin.sto...@gmail.com To: Watir General watir-general@googlegroups.com Sent: Wednesday, May 27, 2009 6:02:01 AM Subject: [wtr-general] forms in subframes -

[wtr-general] Re: How can I compare the captured web pages

2009-05-26 Thread Michael Hwee
screen_capture method and then would go for hash comparison. Please let me know on above. Thanks Regards Durgesh. --- On Fri, 8/5/09, Michael Hwee michael_h...@yahoo.com wrote: From: Michael Hwee michael_h...@yahoo.com Subject: [wtr-general] Re: How can I compare the captured web pages

[wtr-general] Re: Weirdness when working with multiple Firefox windows - using Watir::Browser

2009-05-21 Thread Michael Hwee
I think it is more like a problem with 'attach'. There is known issue with attachingĀ to Firefox. From: Alan Ark ar...@compli.com To: watir-general@googlegroups.com watir-general@googlegroups.com Sent: Thursday, May 21, 2009 10:02:50 AM Subject: [wtr-general]

[wtr-general] Re: How to simulate right mouse action

2009-05-19 Thread Michael Hwee
You should search the group first. There is a good info and sample codes for that. - Original Message From: Jungle_hunter junglehuanggangzh...@gmail.com To: Watir General watir-general@googlegroups.com Sent: Tuesday, May 19, 2009 1:43:37 AM Subject: [wtr-general] How to simulate

[wtr-general] Re: Unable to locate element

2009-05-19 Thread Michael Hwee
check to see the object is in a frame. From: Kamesh G kameshg...@gmail.com To: watir-general@googlegroups.com Sent: Tuesday, May 19, 2009 7:45:17 AM Subject: [wtr-general] Re: Unable to locate element Hi , I have tried with all the three options. Still i am

[wtr-general] Re: Count Open Browsers

2009-04-14 Thread Michael Hwee
If you want someone's suggestion, you need to provide your codes where it happens. Not just telling everyone that you have below error. Don't assume everyone knows your problem already. - Original Message From: zeroin23 zeroi...@gmail.com To: Watir General

[wtr-general] Re: First level children only

2009-04-14 Thread Michael Hwee
Can you try xpath? - Original Message From: andrew.d...@lthree.com andrew.d...@lthree.com To: Watir General watir-general@googlegroups.com Sent: Tuesday, April 14, 2009 7:54:53 AM Subject: [wtr-general] First level children only I have a large tree of nested divs, and I want to get

[wtr-general] Re: Yahoo mail, creating a new email message.

2009-04-09 Thread Michael Hwee
Check that it could be in a frame. - Original Message From: cboudreau carlboudreau...@gmail.com To: Watir General watir-general@googlegroups.com Sent: Thursday, April 9, 2009 11:32:56 AM Subject: [wtr-general] Re: Yahoo mail, creating a new email message. I am new to this Watir, and

[wtr-general] Re: Creating Frame objects before a page with a frame exists

2009-04-08 Thread Michael Hwee
Frame object always checked before you can use it. - Original Message From: Tony ynot...@gmail.com To: Watir General watir-general@googlegroups.com Sent: Wednesday, April 8, 2009 2:30:49 AM Subject: [wtr-general] Creating Frame objects before a page with a frame exists Hi, Having

[wtr-general] Re: ff.frame(:index,1).button(:index, 2) does not work?

2009-04-06 Thread Michael Hwee
That is strange. Your email summary said index,2, but you used index,0 Index is based 1. - Original Message From: jason jason.franklin.sto...@gmail.com To: Watir General watir-general@googlegroups.com Sent: Friday, April 3, 2009 10:23:14 AM Subject: [wtr-general]

[wtr-general] Re: Obect not found to Firewatir

2009-03-26 Thread Michael Hwee
Can you provide part of your script and html source where the object found? - Original Message From: KiranD kir...@sikkasoft.com To: watir-general@googlegroups.com Sent: Wednesday, March 25, 2009 9:19:10 PM Subject: [wtr-general] Re: Obect not found to Firewatir Yes, I was there. I

[wtr-general] Re: Multiple Attributes for Input Elements

2009-03-24 Thread Michael Hwee
: Tuesday, March 24, 2009 8:08:11 AM Subject: [wtr-general] Re: Multiple Attributes for Input Elements Actually, no. The order makes no difference. Index is always applied last no matter where it is specified in the arguments. Bret Michael Hwee wrote: There is high important to less important

[wtr-general] Re: Multiple Attributes for Input Elements

2009-03-24 Thread Michael Hwee
Ok, here is your misunderstanding. For example, if you have: text_field(:index, 20) The index number '20' is for all text_field objects on the page. For example, if you have: text_field(:name='q', :index=20) It does not mean the same text_field object above. It means the index '20' of all

[wtr-general] Re: Maximizng the Browser

2009-03-24 Thread Michael Hwee
'ie' and '$ie' are not the same object. If you use 'ie', you have to follow what Charley said to get your browser maximize. Otherwise, no help. - Original Message From: Isabel joybe...@gmail.com To: Watir General watir-general@googlegroups.com Sent: Tuesday, March 24, 2009 1:13:57

[wtr-general] Re: Multiple Attributes for Input Elements

2009-03-23 Thread Michael Hwee
There is high important to less important in multiple attributes search. In your case, you haveie.text_field(:index = 2 , :name = q) To us, it means - find text_field with index=2 - comfirm that it also has name='q' So, no wonder you are getting non_existance error if you have other

[wtr-general] Re: Multiple Attributes and form

2009-03-19 Thread Michael Hwee
I don't get is why are you using :action = /.*/ ? Can you just take it off, so that the execution is much more efficient and work w/o any issue? - Original Message From: alexey s. radiact...@gmail.com To: Watir General watir-general@googlegroups.com Sent: Wednesday, March 18, 2009

[wtr-general] Re: Problems locating basic elements in Watir

2009-03-17 Thread Michael Hwee
This is your problem -- Unable to locate element, using :id, c_ddlCategory Make sure you have this element visible and enable. Your Html code did not show this element, only login which is fine you said. - Original Message From: Mark Lehky mark.le...@aclaro.com To:

[wtr-general] Re: Problems locating basic elements in Watir

2009-03-17 Thread Michael Hwee
So, you might want to try: $ie.frame(:index,1).text.include?(Activating the database) - Original Message From: Mark Lehky mark.le...@aclaro.com To: watir-general@googlegroups.com Sent: Tuesday, March 17, 2009 10:20:03 AM Subject: [wtr-general] Re: Problems locating basic elements in

[wtr-general] Re: Help....

2009-02-19 Thread Michael Hwee
Actually, this is nothing to do with Watir. For your problem, you can solve through Registry. Add these lines to your Registry. [HKEY_CURRENT_USER\Control Panel\Desktop] ForegroundFlashCount=dword:0001 ForegroundLockTimeout=dword: - Original Message From: venky

[wtr-general] Re: Help....

2009-02-19 Thread Michael Hwee
Even bring_to_front() uses AutoIt, it did not give error on WIN32OLE. So, I don't think that is registering issue. But, I could be wrong. From: pink hiii pinkh...@yahoo.com To: watir-general@googlegroups.com Sent: Thursday, February 19, 2009 5:16:29 AM Subject:

[wtr-general] Re: FireWatir and unicode IDs/input, etc... Works with Watir/IE...

2009-02-19 Thread Michael Hwee
Is it for Japanese chars(two bytes) or Western chars? Do you have sample html codes that we can take a look? - Original Message From: John Kolokotronis johnj...@gmail.com To: Watir General watir-general@googlegroups.com Sent: Thursday, February 19, 2009 7:42:46 AM Subject:

[wtr-general] Re: On Error Resume Next - Equal statement in Ruby

2009-02-12 Thread Michael Hwee
This is the same as Exception handling. begin ... rescue ... end - Original Message From: Prince3105 prince3...@gmail.com To: Watir General watir-general@googlegroups.com Sent: Wednesday, February 11, 2009 11:11:36 PM Subject: [wtr-general] On Error Resume Next - Equal statement in

[wtr-general] Re: count the number of div elements (without divs.find_all)

2009-02-10 Thread Michael Hwee
Very cool, Jarmo. If you don't mind, can you explain how to find such powerful neat methods? That helps all of us. Thanks. - Original Message From: Jason freezingki...@gmail.com To: Watir General watir-general@googlegroups.com Sent: Monday, February 9, 2009 4:47:19 PM Subject:

[wtr-general] Re: count the number of div elements (without divs.find_all)

2009-02-10 Thread Michael Hwee
(without divs.find_all) Michael, The scan method is part of the String class. If you look at the rdoc for the classes you can find some very useful methods. The pickaxe book and other ruby tutorials are also helpful. Alex On 10 Feb 2009, at 16:14, Michael Hwee michael_h...@yahoo.com wrote

[wtr-general] Re: Extending the IE class

2009-02-06 Thread Michael Hwee
If you are using IE as sole browser, you can do that follow. require 'watir/ie' Or, use if statement or inside begin/rescue block. - Original Message From: Brian Tomlin tendonstren...@gmail.com To: Watir General watir-general@googlegroups.com Sent: Thursday, February 5, 2009

[wtr-general] Re: Retaining variables between tests in a thread-safe manner

2009-02-05 Thread Michael Hwee
If you use only IE, try replacing following Watir::IE.new with Watir::IE.new_process Michael - Original Message From: Justin Ko justin.t...@gmail.com To: Watir General watir-general@googlegroups.com Sent: Thursday, February 5, 2009 4:11:24 AM Subject: [wtr-general] Retaining

[wtr-general] Re: Unable to work with IFrame

2009-01-30 Thread Michael Hwee
idea, what could be the issue here? Regards Niharika On Thu, Jan 29, 2009 at 11:00 PM, Michael Hwee michael_h...@yahoo.com wrote: frame does not support exists?(). However, you can *monkey-patch* as followed. module Watir class Frame alias_method :_locate, :locate def locate

[wtr-general] Re: QA w/ Watir

2009-01-30 Thread Michael Hwee
Neeraj, Matt said call him From: neeraj girdhar er.neeraj...@gmail.com To: watir-general@googlegroups.com Sent: Thursday, January 29, 2009 11:59:44 PM Subject: [wtr-general] Re: QA w/ Watir Dear Sir, I have experience in WATIR Selenium. I am mailing my

[wtr-general] Re: Unable to work with IFrame

2009-01-29 Thread Michael Hwee
frame does not support exists?(). However, you can *monkey-patch* as followed. module Watir class Frame alias_method :_locate, :locate def locate begin return _locate rescue return nil end end def exists? return @o != nil end end

[wtr-general] Re: Need help with verifying if text exists!

2009-01-28 Thread Michael Hwee
Replace if verify($ie.text.include?(searchedtext))==true with if $ie.text.include?(searchedtext) - Original Message From: Margam nk.mar...@gmail.com To: Watir General watir-general@googlegroups.com Sent: Tuesday, January 27, 2009 11:16:06 AM Subject: [wtr-general] Need help with

[wtr-general] Re: undefined method `flash'

2009-01-27 Thread Michael Hwee
You cannot flash the frame or exists? check. But, you can use as follow. $browser.frame(:name,ctl140_ctl00_ctl03_ctl01).text_field(:value,'FOO').flash - Original Message From: Monkeybuns shaml...@twia.org To: Watir General watir-general@googlegroups.com Sent: Tuesday, January 27,

[wtr-general] Re: ie.contains_text problem

2009-01-26 Thread Michael Hwee
, Michael Hwee michael_h...@yahoo.com wrote: Or, just get ride of 'assert' and 'contains_text'. Just use if ie.text.include?(FOO) puts FOO found else puts FOO not found end Michael - Original Message From: Bret Pettichord b...@pettichord.com To: watir

[wtr-general] Re: Code hangs after a div click

2009-01-16 Thread Michael Hwee
information about your div? When the div is clicked, what will happen? Thanks. Wesley Chen. On Fri, Jan 16, 2009 at 9:14 AM, Michael Hwee michael_h...@yahoo.comwrote: Try click_no_wait() - Original Message From: zeng0...@gmail.com zeng0...@gmail.com To: Watir General

[wtr-general] Re: Code hangs after a div click

2009-01-15 Thread Michael Hwee
Try click_no_wait() - Original Message From: zeng0...@gmail.com zeng0...@gmail.com To: Watir General watir-general@googlegroups.com Sent: Thursday, January 15, 2009 11:20:10 AM Subject: [wtr-general] Code hangs after a div click I have the following code: $browser.link(:text,

[wtr-general] Re: watir click_no_wait hangs my code

2009-01-12 Thread Michael Hwee
I don't think that is true. click_no_wait() does not wait for the popup. Need more info on your issue. From: wesley chen cjq@gmail.com To: watir-general@googlegroups.com Sent: Monday, January 12, 2009 12:12:14 AM Subject: [wtr-general] Re: watir

[wtr-general] Re: Multiple Attributes Issue

2009-01-09 Thread Michael Hwee
-general] Re: Multiple Attributes Issue I have 1.5.6. I thought I upgraded to the most recent, but apparently not. Do I have to uninstall and reinstall version 1.6.2? -Original Message- From: watir-general@googlegroups.com [mailto:watir-gene...@googlegroups.com] On Behalf Of Michael Hwee

[wtr-general] Re: button.Click_No_Wait only highlights the button, does not click

2008-12-18 Thread Michael Hwee
I have tried to set IE to default, but it not work. Now I am trying to reinstall ruby and watir. On Dec 18, 11:34 am, Michael Hwee michael_h...@yahoo.com wrote: First, go to your internet options and reset all your settings to default. On vista with IE7, check off the Protected Mode. Michael

[wtr-general] Re: button.Click_No_Wait only highlights the button, does not click

2008-12-11 Thread Michael Hwee
Ok, I have gone through your codes and actually wrote the script similar to yours. I don't understand when you said 'click_no_wait' is not working. To me, it is working just fine. Here is my codes and dismiss the js popup. require 'watir/ie' require 'watir/contrib/enabled_popup' def

[wtr-general] Re: button.Click_No_Wait only highlights the button, does not click

2008-12-11 Thread Michael Hwee
That is disappointing. I believe that is something like OS and/or configuration issues, rather than watir itself. Michael - Original Message From: larryni...@gmail.com larryni...@gmail.com To: Watir General watir-general@googlegroups.com Sent: Thursday, December 11, 2008 12:00:00

[wtr-general] Re: button.Click_No_Wait only highlights the button, does not click

2008-12-10 Thread Michael Hwee
: Tuesday, December 9, 2008 7:05:33 PM Subject: [wtr-general] Re: button.Click_No_Wait only highlights the button, does not click Michael Hwee wrote: The only different between 'click' and 'click_no_wait' is 'wait' statement is removed. Actually no. This is not the only difference. The big

[wtr-general] Re: button.Click_No_Wait only highlights the button, does not click

2008-12-09 Thread Michael Hwee
What is the statement after the click_no_wait? If you use handle_popup, add some more seconds to wait; especially on slow machine. What I know is, the click_no_wait actually happens. But, when the browser or server is being ready to respond, your next code statement executes. Try putting --

[wtr-general] Re: button.Click_No_Wait only highlights the button, does not click

2008-12-09 Thread Michael Hwee
Are you saying when you use 'click', the button was clicked properly? The only different between 'click' and 'click_no_wait' is 'wait' statement is removed. Can you check to be made sure that is an 'Input', rather than 'a' html tag? - Original Message From: [EMAIL PROTECTED] [EMAIL

[wtr-general] Re: Problem with running test scripts on Firefox/3.0.4

2008-12-05 Thread Michael Hwee
Did you go and check add-ons and see whether jssh is enabled? - Original Message From: [EMAIL PROTECTED] [EMAIL PROTECTED] To: Watir General watir-general@googlegroups.com Sent: Friday, December 5, 2008 9:39:49 AM Subject: [wtr-general] Problem with running test scripts on

[wtr-general] Re: indexes with watir and firewatir

2008-12-01 Thread Michael Hwee
What do you get if you do this in firewatir? row.cell(:index,1) Is this the same as row.cell(:index,0) ? - Original Message From: aidy lewis [EMAIL PROTECTED] To: watir-general@googlegroups.com Sent: Friday, November 28, 2008 4:04:34 AM Subject: [wtr-general] indexes with watir

[wtr-general] Re: Getting error at installing 1.6.1

2008-11-06 Thread Michael Hwee
: require 'watir/ie' Bret Michael Hwee wrote: Not sure what is causing the custom element extension. Any idea? c:\gem list watir *** LOCAL GEMS *** watir (1.6.1) c:\irb irb(main):001:0 require 'watir' = true irb(main):002:0 module Watir irb(main):003:1 class Strong

[wtr-general] Re: Watir 1.6.1 is available for testing

2008-11-05 Thread Michael Hwee
John, It would be better if you replied to original email. Creating a new email/thread is like out-of-sync. Thanks. - Original Message From: JArkelen [EMAIL PROTECTED] To: Watir General watir-general@googlegroups.com Sent: Wednesday, November 5, 2008 1:59:10 AM Subject:

[wtr-general] Re: Using multiple attribute type to locate label tags?

2008-11-04 Thread Michael Hwee
Make sure this works: $ie.label(:text,Reported by).exists? - Original Message From: Moochie [EMAIL PROTECTED] To: Watir General watir-general@googlegroups.com Sent: Monday, November 3, 2008 11:05:27 AM Subject: [wtr-general] Using multiple attribute type to locate label tags? The