[wtr-general] Watir -- May just be a Cucumber item

2015-02-10 Thread Michael Kirkpatrick
I was wondering if the tags are stored in an array somewhere and can be access so that you can do different after hooks say for Jira or other plugins? Thanks, -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.c

[wtr-general] file_field.set not working in watir-classic 4.0.1 on IE 9

2014-08-19 Thread Michael
root page. The HTML is basic, and watir finds the element and can interact in other ways with it. RAutomation seems to be doing the right thing once the file dialog opens... but it doesn't open in some cases. Thanks in advance, Michael -- -- Before posting, please read http://watir.com/

[wtr-general] Re: Jquery+Watir problem with file_field

2013-03-08 Thread Michael Kernaghan
An excellent idea. i tried that but it did not fix it. b.file_field(:id, "messageFile").fire_event("onchange") Debug shows: Watir::FileField.new(Watir::IE.attach(:hwnd, 1839554), :tag_name => Array.new << 'file', :unique_number => 5).click!();" On Wednesday, 6 March 2013 16:24:17 UTC-8, Chuc

Re: [wtr-general] Jquery+Watir problem with file_field

2013-03-08 Thread Michael Kernaghan
2013 01:45:41 UTC-8, Željko Filipin wrote: > On Wed, Mar 6, 2013 at 9:58 PM, Michael Kernaghan > > > wrote: > >> file is cleared from select window and save throws error because no file >> was selected. > > > It would help if you could provide link t

[wtr-general] Re: Jquery+Watir problem with file_field

2013-03-08 Thread Michael Kernaghan
yes manually works fine. yes i tried various static delays it does not alleviate the problem On Wednesday, 6 March 2013 14:33:13 UTC-8, Alex Shtayer wrote: > > Hmm, strange > > Could you perform mentioned steps manually? Is everything work as it > should? (without any file clearing from select

[wtr-general] Jquery+Watir problem with file_field

2013-03-06 Thread Michael Kernaghan
*Jquery+Watir problem i can't solve is this:* b.file_field(:id, "messageFile").set(@messagePath) everything looks good, correct file selected and in the select window b.button(:value, "Submit").click file is cleared from select window and save throws error because no file was selected. ever see

[wtr-general] Newbie w/ Few Questions

2012-04-19 Thread Michael Goldberg
Hi, I am new to Watir. I have been using AutoIT for a lot of my automation, and find that in some instances I am unable to do what I need due to the complicated scripting of webpages. I looked into other languages and thought Watir would be a nice fit for what I need. I have a few questions, I wa

Re: [wtr-general] Re: Trying to go back to watir 1.6.2, won't install correctly

2012-02-18 Thread Michael
Like with Chuck we have been able to upgrade hundreds of scripts successfully to Watir 2+ so far. So if you have some specific errors a can help you with let us know. The new Watir is so much easier to use and faster. Chuck van der Linden wrote: >The other than might bite you is if you are usi

[wtr-general] Watir 3.0.rc1 breaks select_value of a select list

2012-01-18 Thread Michael
A heads up that I created a bug report about an issue we experienced while testing our code with Watir 3.0.rc1. http://jira.openqa.org/browse/WTR-498 -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.

Re: [wtr-general] Watir with a remote desktop

2012-01-14 Thread Michael
We are on windows and launch our remote tests with psexec.exe. The only catch is that you must have logged in with RDP once and leave the session open. psexec then allows you to specify a session to connect to. On 2012-01-13, at 6:48 AM, chtiloft wrote: > hi all, > i am looking for a tool to m

Re: [wtr-general] Re: Retrieving checkbox values

2011-11-07 Thread Michael
In webdriver singular methods return a singe (the first) element of that type, while plural methods return a list of all elements. .checkbox returns one .checkboxes returns a list/collection On Mon, 7 Nov 2011 08:36:56 -0800 (PST), Joe Fl wrote: > Hi, > > I am still having problems wit

Re: [wtr-general] I need to retrieve multiple span class="discussion-title"

2011-11-07 Thread Michael
That appears to be because your first LI doesn't have a H2 inside of it. When you put one LI after another, the browser will automatically close the first before the second opens. >> >> >> >> Digest Options Fix your HTML syntax and you should be good to go.

Re: [wtr-general] I need to retrieve multiple span class="discussion-title"

2011-11-06 Thread Michael
t the first response, please disregard it. Michael On 2011-Nov-06, at 7:40 PM, Michael wrote: > You probably intended to use uls which will return a list of ul's instead of > ul which only returns the first matching ul. > > Try: >> My Code:section_headers = $browser.div(:clas

Re: [wtr-general] I need to retrieve multiple span class="discussion-title"

2011-11-06 Thread Michael
You probably intended to use uls which will return a list of ul's instead of ul which only returns the first matching ul. Try: > My Code:section_headers = $browser.div(:class,"bd").uls(:class,"items") Michael On 2011-Nov-06, at 7:09 PM, Joe Fleck wrote: > Hi

Re: [wtr-general] Re: Handling a MAC Pro book File Upload window.

2011-10-17 Thread Michael
Where are you running this code from? The path you specified is relative to your current directory as it is missing the slash at the beginning. You also don't need all the backslashes. Backslash is an escape character that escapes the character immediately following it. In your case you're escap

Re: [wtr-general] Re: My Watir Scripts Failed. Please help

2011-10-13 Thread Michael
We run automated watir tests remotely using psexec which allows us to attach to a specific user's session. If the VM/workstation reboots and this user is not logged back on the tests will fail due to not being able to open Internet Explorer. Good luck figuring out what is going on. Scheduling

Re: [wtr-general] Watir script compartmentalization

2011-09-28 Thread Michael
I use MiniTest to drive my tests, so in my case they'd all go in one file as 3 separate tests in there. That way each can fail individually andbe reported in a nice summary. -- Sent from my Android. George wrote: Hello, I was curious to know how granular folks are making their Watir scripts. A

[wtr-general] Re: finding all links on a page

2011-09-13 Thread Michael
# Do the basic watir initialization, then you should be able to get away with something like this. links = browser.links.to_a links.select! {|link| link.href =~ /yp.kd.com/} # Omit all links to different domains puts "Writing #{links.length} links to links.txt" # Write each link to the file File

Re: [wtr-general] Getting Error: `WebDriverError': Element is not currently visible and so may not be interacted with (Selenium::WebDriver::Error::ElementNotDisplayedError)

2011-08-31 Thread Michael
roductive? > > HTML CODE: > > > id="showlink" title="Link"> > > > > > > > > > Thanks, > -Amit > > On Wed, Aug 31, 2011 at 11:51 AM, Michael wrote: > Your HTML and code snippets would help us see what is go

Re: [wtr-general] TableRow#text returns text of the wrong row

2011-08-31 Thread Michael
That bug is captured in: http://jira.openqa.org/browse/WTR-486 And fixed in commit: https://github.com/bret/watir/commit/3846b6f300f5210df6b196eeeb15684b6e25378b You should see it in the next patch release. There is another discussion post about it titled "watir 2.0.1 table rows method broken"

Re: [wtr-general] Getting Error: `WebDriverError': Element is not currently visible and so may not be interacted with (Selenium::WebDriver::Error::ElementNotDisplayedError)

2011-08-30 Thread Michael
Your HTML and code snippets would help us see what is going on. In general you cannot interact with elements that are hidden (not visible). This may be occurring for a few reasons: - element is hidden (or positioned off the screen) by CSS styles or JavaScript - your selector found a different ele

Re: [wtr-general] run watir with ruby 1.9.2

2011-08-30 Thread Michael
I don't know about the latest ruby, but it definitely runs with 1.9.2p180. To keep things simple, uninstall 1.8.7 (especially if you're on windows), and install the desired version of ruby. From there you can install watir the same way you did for previous versions. gem update --system gem inst

Re: [wtr-general] watir 2.0.1 table rows method broken

2011-08-26 Thread Michael
Thanks for the update and workaround Alister. I'll add the 'if Watir do it that way, else do it the compatible way' to my code. I'll look forward to a fix in a future version of Watir. :-) On 2011-08-24, at 7:48 PM, Alister Scott wrote: > Yeah, it looks bust. > You can use: > > browser.table(

Re: [wtr-general] IE 9 execute_script broken

2011-08-26 Thread Michael
What version of Watir should I expect to see that fix in? 2.0.2 when it comes out? On 2011-08-24, at 9:32 PM, parolkar wrote: > Hi Michael, > This was a bug which was fixed in this commit : > https://github.com/bret/watir/commit/f9b351c99352160d6becec4bd1ec1d54f570bc18 > Are you

[wtr-general] watir 2.0.1 table rows method broken

2011-08-24 Thread Michael
I've created this bug report for an issue I am seeing, curious if anyone else has run into the same issue or is it just my environment? I completely removed ruby today to start completely fresh, and it still occurs. http://jira.openqa.org/browse/WTR-486 Summary: The rows/trs method on a table ret

[wtr-general] IE 9 execute_script broken

2011-08-12 Thread Michael
guration/pam/ ReplicatedCheckinCheckoutCleanup.rb:45:in `testDeleteUserClasses' Any suggestions or ideas would be greatly appreciated. Michael -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://

Re: [wtr-general] Need to click a Link In Table

2011-08-10 Thread Michael
I could be wrong, but I seem to remember a browser.element_by_xpath("//a[contains(@onclick,'1002')]").click I've personally never used the generic element method. On 2011-08-09, at 1:40 AM, Mahi wrote: > I Have following Gem list > > builder (3.0.0) > childprocess (0.1.9) > commonwatir (1.9.2

[wtr-general] Re: Iterate over direct successor divs which are not unique identifiable

2011-08-08 Thread Michael
You should be able to do pretty much exactly that. browser.div(:class, "myclass").divs.select { | div | div.divs.length > 0 } On Aug 8, 4:31 am, Alister Scott wrote: > I'd do something like > > browser.div(:class, "myclass").divs.select { | div | div.div.exists? } > > (that should be select not c

[wtr-general] Re: Waitr fails to fire_event for select_list

2011-07-08 Thread Michael
Seems to be a valid bug - created bug report http://jira.openqa.org/browse/WTR-485 -- 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...@googlegrou

[wtr-general] Re: string to boolean?

2011-07-06 Thread Michael
Jarmo - your example just proved that doesn't work because both the string "true" and the string "false" return true when double negated. I think you'll have to handle it in some way, for example: value = ( value == true.to_s ) -- Before posting, please read http://watir.com/support. In short: s

[wtr-general] Re: Waitr fails to fire_event for select_list

2011-07-06 Thread Michael
Hi Abe, thanks for the suggestion. In this case the element is there, it did locate it, it just can't find the fireEvent method for it... JavaScript can find it and fire events no problem, so I'm not sure why Watir is having issues here. I'll create a bug report. -- Before posting, please read

[wtr-general] Re: Watir 1.9.1 upgrade (from 1.9.1rc or 1.9.0) breaks two things

2011-07-04 Thread Michael
Downgrading to rautomation 0.5.1 does fix 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: Watir 1.9.1 upgrade (from 1.9.1rc or 1.9.0) breaks two things

2011-07-04 Thread Michael
Thanks Hugh - I had previously created this watir bug report: http://jira.openqa.org/browse/WTR-483 I'll downgrade for now and listen on rautomation development - thanks again. -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@goog

[wtr-general] Re: Watir 1.9.1 released - IE9 bug fixes

2011-07-04 Thread Michael
We have a few errors we're encountering as a result of this upgrade: http://groups.google.com/group/watir-general/browse_thread/thread/c03b7bee932b265a -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups

[wtr-general] Watir 1.9.1 upgrade (from 1.9.1rc or 1.9.0) breaks two things

2011-07-04 Thread Michael
: 449:in `activate': undefined method `activate' for # (NoMethodError) from C:/michael/projects/fox/release-71/test/watir/core/ Session.rb:89:in `initialize' 2. NameError: uninitialized constant Watir::Container::Divs This is the code that fails. In the case when it fails

Re: [wtr-general] Error when Clicking a link using watir

2011-07-04 Thread Michael Raj
Hi , Still I am not able to solve this issue, the equivalent HTML is below. Kindly help me on this. Thanks and Regards Peter. Željko Filipin wrote: > On Wed, Jun 1, 2011 at 1:24 PM, Michael Raj wrote: > > ie.link(:xpath,"//a[contains(@href='inloggen.do')]/").

[wtr-general] Re: Need help with Rspec and Watir Webdriver

2011-06-30 Thread Michael
Sorry for the extra email - but easier to see properly indented (with the tabs converted to spaces): require 'rubygems' require 'watir-webdriver' describe 'MySite' do before(:all) { @browser = Watir::Browser.new :firefox } it 'contains "Google"' do @browser.goto 'http://google.com/' @b

[wtr-general] Re: Need help with Rspec and Watir Webdriver

2011-06-30 Thread Michael
Fix the indenting of your code and it should become clear: require 'rubygems' require 'watir-webdriver' describe 'MySite' do before(:all) { @browser = Watir::Browser.new :firefox } it 'contains "Google"' do @browser.goto 'http://google.com/' @browser.text.should include 'g

[wtr-general] Re: Need help with Rspec and Watir Webdriver

2011-06-30 Thread Michael
By the sounds of it @browser is nil on line 12 - which may be due to some test isolation. It would hazzard a guess that it is an issue how lines 12-14 are defined. The code in the middle of your description of 'MySite' - lines 12-14 are not inside of a rspec test (ie. it 'contains "Ruby"') and thu

[wtr-general] Waitr fails to fire_event for select_list

2011-06-29 Thread Michael
tir/element.rb:325:in `fire_event' from IE8FireEventBug.rb:21:in `' Let me know what you think. :-) Thanks! 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: IE9 unknown property or method: 'gsub'

2011-06-27 Thread Michael
Hi Hugh, That fixes all the extraneous messages on my end. Thank you! Michael On Jun 25, 10:50 pm, Hugh McGowan wrote: > I made a pre-release candidate 1.9.1.rc1 that you can get with 'gem > install watir --pre'. Let me know if that corrects your problem or if > you run in

[wtr-general] Re: IE9 unknown property or method: 'gsub'

2011-06-24 Thread Michael
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

[wtr-general] IE9 unknown property or method: 'gsub'

2011-06-24 Thread Michael
ing 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.g

[wtr-general] Is Firewatir Dead?

2011-06-22 Thread Michael
>From a bit of web research it doesn't look like there is going to be a version of jssh for Firefox 4... Does that mean Firewatir is dead? -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/

[wtr-general] Error when Clicking a link using watir

2011-06-01 Thread Michael Raj
Hi, I am able to open an application through watir. I am checking the link as if ie.link(:xpath,"//a[contains(@href='inloggen.do')]/") if so i am calling ie.link(:xpath,"//a[contains(@href='inloggen.do')]/").click but i am getting error as C:/Ruby187/lib/ruby/gems/1.8/gems/watir-1.8.1/lib/wat

Re: [wtr-general] Can't find an element in a page with javascript:gotolink

2011-03-01 Thread Michael Sillers
Thanks everyone for your assistance. I managed to get it working with Zeljko's suggestions. It turns out the page eppears to be closing the main frame and opening another as a different name so I had to direct Watir to the new frame. xpath does look very interesting and I'll keep it in mind

Re: [wtr-general] Can't find an element in a page with javascript:gotolink

2011-02-28 Thread Michael Sillers
Quoting Željko Filipin : On Mon, Feb 28, 2011 at 10:29 PM, mss wrote: What I'm looking for is an element with the text " download e.bill " (yes, there is a space before the d and after the l although I've tried it in every permutation) or an href "javascript:gotolink('showDownloadLanding.do".

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 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 have tried using both hr

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 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 reply li>Log

Re: [wtr-general] Handling of Jquery objects by Watir

2010-12-01 Thread Michael
We too have a lot of JavaScript, and the trick to get it all to work was to use watir-webdriver which fires the events properly for MooTools and Jquery to work. Watir was very unsuccessful on this front, and Firewatir was so-so. On Wed, 1 Dec 2010 05:23:54 -0800 (PST), the_zonker wrote: > Hi

Re: [wtr-general] "variablize" ff.link(identifier,keyword).exists?

2010-11-30 Thread Michael
You can assign symbol to a variable though: sname = :name The same is true with regular expressions: skeyword = /google/ ff.link(sname, skeyword).exists? I'm not sure if you've modified your code for the example, because links don't typically have name attributes - href would be more common.

Re: [wtr-general] Re: watir-webdriver fire_event('onmouseover') failing in IE

2010-11-25 Thread Michael
Looks like the backport to trunk is now complete http://code.google.com/p/selenium/source/detail?r=10401 [10] Quoted from http://code.google.com/p/selenium/issues/detail?id=849 [11] On Mon, 22 Nov 2010 19:53:04 +0100, Jari Bakken wrote: > On Mon, Nov 22, 2010 at 7:05 PM, Michael wr

[wtr-general] Re: watir-webdriver fire_event('onmouseover') failing in IE

2010-11-22 Thread Michael
v 6, 2010 at 1:41 AM, Michael wrote: > > Selenium::WebDriver::Error::UnexpectedJavascriptError: Cannot execute > > script (17) > > You're probably running into this known bug in the IE driver: > > http://code.google.com/p/selenium/issues/detail?id=849 > > (comment 5 h

Re: [wtr-general] watir-webdriver fire_event('onmouseover') failing in IE

2010-11-08 Thread Michael
I know, but there was a patch attached to the ticket. No worries. On Mon, 8 Nov 2010 21:46:04 +0100, Jari Bakken wrote: > On Mon, Nov 8, 2010 at 6:35 PM, Michael wrote: >> Yes, it does look related to that. Is there an updated build of the dll anywhere for download instead of re

Re: [wtr-general] watir-webdriver fire_event('onmouseover') failing in IE

2010-11-08 Thread Michael
Yes, it does look related to that. Is there an updated build of the dll anywhere for download instead of recompiling myself with that fix in there. It still hasn't made it into a release. On Sat, 6 Nov 2010 02:08:18 +0100, Jari Bakken wrote: > On Sat, Nov 6, 2010 at 1:41 AM, Micha

[wtr-general] watir-webdriver fire_event('onmouseover') failing in IE

2010-11-05 Thread Michael
Has anyone else run into this issue? icon.fire_event('onmouseover') In my example it is an image that I am trying to mouse over. It works fine in FF, but gives the following exception in IE. Selenium::WebDriver::Error::UnexpectedJavascriptError: Cannot execute script (17) C:/Ruby/187/lib/ru

[wtr-general] Watir with MooTools

2010-11-01 Thread Michael
does? MooTools overwrites the native fireEvent method, but it should still be called assuming OLE calls the JS method. I'm looking for any insight on this incompatibility. Thanks, Michael Watir sample: trigger1 = @browser.select_list(:name, 'trigger1') trigger1.set('

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 To: Watir General 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 wrote: > As per my previous posts I am having problems with clic

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

2010-04-01 Thread Michael Hwee
Is that April fool? From: arihan sinha 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 correct news. On Thu, Apr 1, 2

Re: [wtr-general] Re: Question about execute the scripts in background

2010-02-23 Thread Michael Hwee
Are you using new_process()? That will explain. From: Moises Siles To: watir-general@googlegroups.com Sent: Mon, February 22, 2010 2:45:57 PM Subject: Re: [wtr-general] Re: Question about execute the scripts in background Tiffany, I ran the script using the

Re: [wtr-general] Cannot install watir-webdriver on Mac(10.6 Snow Leopard).

2010-02-01 Thread Michael Hwee
Good catch, Bill From: Bill Agee To: watir-general@googlegroups.com Sent: Mon, February 1, 2010 7:57:57 AM Subject: Re: [wtr-general] Cannot install watir-webdriver on Mac(10.6 Snow Leopard). Hi, In the command you pasted, the gem name is missing the "b" in

[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 To: watir-general@googlegroups.com Sent: Thu, November 5, 2009 2:10:18 PM Subjec

[wtr-general] Re: onMouseover

2009-08-25 Thread Michael Hwee
I might give some sleep between mouseover and clicking. - Original Message From: sd To: Watir General Sent: Tuesday, August 25, 2009 2:05:56 PM Subject: [wtr-general] onMouseover Hi, I have an item. Once I mouseover that item, I get an image which I need to click on. I used fire_

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

2009-08-14 Thread Michael Hwee
I would rather use browser.links.length This is already 1-based. - Original Message From: Jari Bakken 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 PM, Michael H

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

2009-08-14 Thread Michael Hwee
: index=> 0 is not the last item. - Original Message From: Alexandre To: WATIR Sent: Friday, August 14, 2009 5:40:55 AM Subject: [wtr-general] :index => 0 with firewatir Hello, using firewatir, ff.link(:text => "foo",:index => 2).click works fine but I would like to click on the

[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 To: Watir General Sent: Thursday, August 13, 2009 3:26:52 AM Subject: [wtr-general] Not able to run automatically a script automatically using rufus-scheduler I'm trying to use rufus-schedu

[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 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 Bakken wrote: > At the moment you n

[wtr-general] Re: stop ie from code

2009-08-08 Thread Michael Hwee
k 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 wrote: >>Try ie.ie.stop > > > > >>- Original Message >>From: Alex.Dev >>To: Watir Gene

[wtr-general] Re: stop ie from code

2009-08-07 Thread Michael Hwee
Try ie.ie.stop - Original Message From: Alex.Dev To: Watir General 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 toolbar, but i need to do this from code) when it's

[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 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 the tests are now pass

[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 To: Watir General Sent: Thursday, June 18, 2009 4:13:31 PM Subject: [wtr-general] Setting HTML Properties Is there a way to set a propert

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

2009-06-18 Thread Michael Hwee
ust basically stuck there. Michael - Original Message From: brettsykes To: Watir General Sent: Thursday, June 18, 2009 2:41:15 PM Subject: [wtr-general] Re: attach while browser is still processing The next time this happens open up irb and try to call Watir::IE.attach to the hanging browse

[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 To: Watir General Sent: Friday, June 12, 2009 9:59:48 AM Subject: [wtr-general] Re: how to set IE screen width & height? There are minimize and maximize methods

[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 To: Watir General Sent: Wednesday, June 3, 2009 11:44:52 AM Subject: [wtr-general] element searc

[wtr-general] Re: Multiple Attributes for Text Fields

2009-05-28 Thread Michael Hwee
Actually, it is supported in a couple of latest versions. From: Charley Baker To: watir-general@googlegroups.com Sent: Thursday, May 28, 2009 11:07:22 AM Subject: [wtr-general] Re: Multiple Attributes for Text Fields Multiple attribute support for input elemen

[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 To: Watir General Sent: Wednesday, May 27, 2009 6:02:01 AM Subject: [wtr-general] forms in subframes - elements not found Hi - here is the issue, to get some el

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

2009-05-26 Thread Michael Hwee
if first == second   puts "same" else   puts "not the same" end From: Durgesh Nadkarni To: watir-general@googlegroups.com Sent: Monday, May 25, 2009 3:12:39 AM Subject: [wtr-general] Re: How can I compare the captured web pages Hi Michael

[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 To: "watir-general@googlegroups.com" Sent: Thursday, May 21, 2009 10:02:50 AM Subject: [wtr-general] Weirdness when working with multiple Firefox wi

[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 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 getting same error me

[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 To: Watir General Sent: Tuesday, May 19, 2009 1:43:37 AM Subject: [wtr-general] How to simulate right mouse action hello       everyone     Now I use Watir to

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

2009-05-08 Thread Michael Hwee
Instead of comparing the image to image, you can use MD5 key comparision. Here is an example. require 'digest/md5' first = Digest::MD5.hexdigest(File.read("keywords.jpg")) second = Digest::MD5.hexdigest(File.read("NewImage.jpg")) Compa

[wtr-general] Re: First level children only

2009-04-14 Thread Michael Hwee
Can you try xpath? - Original Message From: "andrew.d...@lthree.com" To: Watir General 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 an array of just the direct children of any particu

[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 To: Watir General Sent: Tuesday, April 14, 2009 5:08:24 AM Su

[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 To: Watir General 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 having some difficulty figuring this out. I thought I

[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 To: Watir General Sent: Wednesday, April 8, 2009 2:30:49 AM Subject: [wtr-general] Creating Frame objects before a page with a frame exists Hi, Having trouble creating a frame object before a partic

[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 To: Watir General Sent: Friday, April 3, 2009 10:23:14 AM Subject: [wtr-general] ff.frame(:index,1).button(:index, 2) does not work? has anyone an idea abo

[wtr-general] Re: current script path

2009-04-03 Thread Michael Hwee
Did you try $0 - Original Message From: Vikas Tulashyam To: Watir General Sent: Friday, April 3, 2009 2:33:43 AM Subject: [wtr-general] Re: current script path Hey sorry ..If it looks like rude ... I didn't mean anything like that .. I was just requesting.. Thanks Vikas On Apr 3,

[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 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 also used sleep comma

[wtr-general] Re: Get script name within the script

2009-03-24 Thread Michael Hwee
Try $0 - Original Message From: "vladimir...@hotmail.com" To: Watir General Sent: Tuesday, March 24, 2009 12:16:56 PM Subject: [wtr-general] Get script name within the script ARGV allows us to get script's input parameters. Is there a way to extract the script name from the followi

[wtr-general] Re: Maximizng the Browser

2009-03-24 Thread Michael Hwee
You need to register the autoitx3. You can search the previous posts. - Original Message From: IDIEININIIS To: Watir General Sent: Tuesday, March 24, 2009 10:19:04 AM Subject: [wtr-general] Re: Maximizng the Browser I am having the exact same error as Shweta. I haven't used any

[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 To: Watir General Sent: Tuesday, March 24, 2009 1:13:57 AM Subject: [wtr-general] Re: Maximizng the Brows

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

2009-03-24 Thread Michael Hwee
eans the index '20' of all text_field with 'name=p'. If you have 'name=p' less than 20, you get 'non-existance' error. Hope that helps. Michael - Original Message From: Isabel To: Watir General Sent: Tuesday, March 24, 2009 1:55:07 AM Subject: [wt

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

2009-03-24 Thread Michael Hwee
Hmm, actually think of that, you are right. It should be no matter. But for being good scripter, the index should be always at the end. That is the way I do anyway. Thanks. Michael - Original Message From: Bret Pettichord To: watir-general@googlegroups.com Sent: Tuesday, March 24

[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 tex

[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. To: Watir General Sent: Wednesday, March 18, 2009 10:16:04 PM Subject: [wtr-general] Multiple Attr

[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 To: watir-general@googlegroups.com Sent: Tuesday, March 17, 2009 10:20:03 AM Subject: [wtr-general] Re: Problems locating basic elements in Watir The puts ie

[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 To: watir-general@googlegroups.com Sent:

[wtr-general] Re: Supporting :test in more methods, e. g., .link, .div, .hx, etc.

2009-02-20 Thread Michael Hwee
Eloqua, The link is old. Most elements are now supported. Just try using 'irb' on a page with your elements. Michael - Original Message From: Bill Mosteller To: Watir General Sent: Friday, February 20, 2009 5:25:31 AM Subject: [wtr-general] Supporting :test in more met

[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 To: Watir General Sent: Thursday, February 19, 2009 7:42:46 AM Subject: [wtr-general] Re: FireWatir and unicode IDs/input, etc..

[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 To: watir-general@googlegroups.com Sent: Thursday, February 19, 2009 5:16:29 AM Subject: [wtr-general] Re:

  1   2   >