Hi,
Try using thissee if it can be of any help
require 'watir'
ie=Watir::IE.new
ie.goto(http://twitter.com;)
id=1
q=ie.images.length
while id=q
fname='D:\image-' + id.to_s + '.gif'
ie.image(:index,id).save(fname)
id=id+1
end
Thanks,
Rohan Ojha
Hi all,
Having a problem calling this method on IE. What am I missing?
# Win Xp, IE7
irb
irb(main):001:0 require 'watir'
= true
irb(main):005:0 b = Watir::IE.new
[snip]
irb(main):006:0 b.execute_script alert('hello');
NoMethodError: undefined method `execute_script' for #Watir::IE:
0x2bca76c
Hi Charley,
thanks for your reply. I tried the following very simple script:
1 require 'watir'
2 include Watir
3
4 module PageCheckers
5 HANDLE_MODAL = lambda {|ie| ie.modal_dialog.button(:id,
'OK').click}
6 end
7
8 ie = Watir::IE.attach(:title, /TARGET_SITE/)
9 ie.add_checker PageCheckers
Hi,
I am really sorry to say but it did not work even with your code. Some one
please help me
Thanks And Regards
Shailesh Kumar Jha
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Watir General group.
To post to
Recently, we updated our Web UI, and now watir is unable to find items
in firefox. These items are also tested vs IE and those tests are
working fine. I can not find a reason why these Items are failing.
At first, I thought that it may be an issue with the depth of where
the fields are in the
Hi,
I am testing a webpage where my aim is to wait for the page to load
all the images and once the page loaded all images i will record the
page load time.
using wait_until and sleep, still images are not loading within the
time period and i don't want to hard code the time limit to load.
Is
Have you read this?
http://wiki.openqa.org/display/WTR/How+to+wait+with+Watir
Željko
--
http://watirpodcast.com/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Watir General group.
To post to this group, send
This might be because the Xls.rb is not accessible to this script. Try
keeping the file in the same directory as your script is residing or
provide the absolute path for the Xls.rb in the require statement.
Thanks Regards,
KK
On Jul 10, 5:24 pm, Durgesh Nadkarni durgeshnadka...@gmail.com
Hello, is there a way to get an image extension (based on the content-
type header) and it's body in Watir?
Here is an example
require 'watir'
zz = Watir::IE.new
zz.goto('http://flickr.com')
image = zz.image(:src = %r/l.yimg.com\/g\/images\//)
puts image
I need to get extension and the
Hi Durgesh,
Try with this change
xlFile = XLS.new(Dir.pwd + '../Data.xls')
Thanks
On Thu, Aug 20, 2009 at 4:05 PM, KK krishna.sara...@gmail.com wrote:
This might be because the Xls.rb is not accessible to this script. Try
keeping the file in the same directory as your script is residing
I have read the topics mentioned by you. I already have used the
wait_until method..but after 60 secs I got the time out error. And my
webpage within the time perioed is not able to display the product
images on UI. The product images to display on UI is taking time.Some
time it takes 5
According to the rdoc for the wait_until method, you can provide your own
timeout value:
http://wtr.rubyforge.org/rdoc/classes/Watir/Waiter.html
So maybe something like this will work for you:
wait_until(360, 1) { BLOCK }
In that example 360 is the total number of seconds to wait, and 1 is the
Hi Robert,
I couldn't get that to work either, but this worked for me:
require 'watir'
b = Watir::IE.new
b.document.parentWindow.execScript(alert('hello');)
I'm not sure if that's an acceptable approach to your problem, but it
is one solution.
-George
On Aug 19, 8:40 pm, robert
I have below WATIR code, which will download series of web pages by
navigating thru page number. Each search will present series of
pages, and the last page in the series does not contain the text
'Next'.
However, below code keeps running and goes on presenting the last page
that does not
Hello All,
All of the web pages that I test use nested frames. I have used
webmetrics quite a bit to identify nested elements.
I've also used the irb / flash method to identify the elements. Our
newer webserver is using ajax and webmetrics
is no longer effective. I've been trying to use Firebug
some of out id's have . in them is this known to cause problems?
On Aug 19, 3:36 pm, Loft_Tester aaronr...@gmail.com wrote:
I appologize if the text wraps on your screan, It did not when the
entry was created
On Aug 19, 2:56 pm, Loft_Tester aaronr...@gmail.com wrote:
Recently, we
16 matches
Mail list logo