Re: [Wtr-general] Iterate through every link on the page

2007-06-29 Thread Ruben
Thanks a lot, that really helped. I think I got it from here on.
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


[Wtr-general] Iterate through every link on the page

2007-06-27 Thread Ruben
Is it possible to make watir click on every link on the page and tell me if the 
click was successfull (as in not 404 error). Also is it possible to make it 
click on only the links with a certain extention?

thanks.
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] handling multiple IE

2007-05-23 Thread Ruben
Multiple IE
http://tredosoft.com/Multiple_IE
http://tredosoft.com/files/multi-ie/multiple-ie-setup.exe
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] How to clear cache from within watir script?

2007-05-23 Thread Ruben
Thanks Bret for letting me know. I pretty much gave up on figuring this out 
plus I do not think it is necessary any longer for us.
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] How to clear cache from within watir script?

2007-05-22 Thread Ruben
Since no one is replying I'll update my status on the current issue. So for 
some reason the cookie/cache watir functions were not working properly for me 
but when I tried the same thing on my other computer with Watir 1.5.1.1166 they 
started to work, somewhat.

For cookies, it works 100%
require 'watir'
require 'thread'
require 'test/unit'
require 'test/unit/ui/console/testrunner'
require 'watir/testUnitAddons'
require 'watir/cookiemanager'
include Watir

print 
Watir::CookieManager::WatirHelper.getSpecialFolderLocation(Watir::CookieManager::WatirHelper::COOKIES)
Gives me the location of the cookie folder
Watir::CookieManager::WatirHelper.deleteSpecialFolderContents(Watir::CookieManager::WatirHelper::COOKIES)
Clears that folder

For Cache
print 
Watir::CookieManager::WatirHelper.getSpecialFolderLocation(Watir::CookieManager::WatirHelper::INTERNET_CACHE)
Gives me the location of the cookie folder
Watir::CookieManager::WatirHelper.deleteSpecialFolderContents(Watir::CookieManager::WatirHelper::INTERNET_CACHE)
This does not actually clear the cache folder! Does anyone have any idea why??

Thanks.
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


[Wtr-general] How to clear cache from within watir script?

2007-05-21 Thread Ruben
Hello All,

I was wondering if anybody here knows how to clear cache from within a watir 
script. I searched on this forum prior to posting this and found a similar post 
but the answer was not really provided. I have looked in the watir API 
reference and I found deleteSpecialFolderContents(specFolderName) this 
function but I wasn't able to get it to work. 

G:/Program Files/Watir/examples/SV/SV Tests/SVTime.rb:16: undefined method 
`deleteSpeci
nts' for #Watir::IE:0x2e1c5c4 (NoMethodError)

I would get this error.
Does anyone have any idea on how to do this? 
Thanks
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] Need help figuring out the element

2007-03-29 Thread Ruben
I have figured it out! Maybe All I needed is a break from this hehe.

ie.button(:src, /btn_submitorder.gif/).click

this worked. I do not know what I was doing wrong yesterday and why the hell it 
wasn't working.

Thanks everyone.
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


[Wtr-general] Need help figuring out the element

2007-03-28 Thread Ruben
Hello,

Thanks for viewing this.
I am new to Watir and I am having this problem clicking on this particular 
element on my company's website. 

Our graphics guy described it to me as not an image but rather submit form with 
and image placed on it.

I have tried different methods of clicking (button, image, link). None work.
I keep getting this error:
Unable to locate object, using alt and Submit Order 
(Watir::Exception::UnknownObjectException)
from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:2009:in `click'
Basically its a submit button, that upon clicking, requests a token from one of 
our servers which in return grant the user access to a particular page.

Right clicking on it and selecting Properties gives me this:
Protocol: HyperText Transfer Protocol with Privacy
Type: HTML Document

I would greatly appreciate any help or any info.
If you need anything else let me know
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general