Hi
Can we check the alignments of the page using watir ? Is it possible?
Like if i can get the expected location of the object on the page, can i get
the actual using watir compare their values?
If anyone knows about it please let me know.
Thanks
Pallavi.
I believe there are ways to get the coordinates of elements (for IE at
least), but I have never bothered with that due to concerns about creating
fragile tests. Resizing the browser, the browser window opening
unexpectedly at different coordinates, or running the script on a machine
with a
Looks like it works if you fire the onchange event on the input tag manually
- this code works for me:
(f is the Firefox object)
upload_element = f.element_by_xpath(//inp...@name='field_uploadfile'])
upload_element.set(C:\\foo.txt)
upload_element.fire_event(onchange)
f.span(:text, Upload
Maybe try using AutoIT's WinSetOnTop function directly? Like this:
require 'win32ole'
AutoIt = WIN32OLE.new(AutoItX3.Control)
AutoIt.WinSetOnTop([REGEXPTITLE:#...@ie.get_title}], , 1)
Regards,
John
--~--~-~--~~~---~--~~
You received this message because you are
Hi All,
Is there any option to disable javascript of browser through ruby/watir?
Thanks
Arihan
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Watir General group.
To post to this group, send email to
Hi all,
I tried using the script that has been put up by Ankur.
It worked with a few changes though..
require 'watir'
require 'win32ole'
require 'rubygems'
ai = WIN32OLE.new(AutoItX3.Control)
ie=Watir::IE.new
#Go to AutoIt website
ie.goto(http://www.autoitscript.com/autoit3/downloads.shtml;)
On Tue, Oct 6, 2009 at 4:30 AM, Bret Pettichord bpettich...@gmail.com
wrote:
Not sure if this is clear that Watir 1.6.2 does not work with Ruby
1.9.1.
Made it explicit in Watir/Ruby table.
Željko
--~--~-~--~~~---~--~~
You received this message because you are
Hi,
Thanks for responding back, actually my application is running fine.
Exactly Error shown is the following:
ruby y.rb
C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5.rc1/lib/watir/element.rb:56:in
`assert_exists': Unable to locate element, using :name, jurisdiction
If you really want to do this type of thing, id take a look at
http://xbdiff.com
I met Jeff, the creator of this about a year ago, and was amazed what he was
trying to do.
Paul
On Tue, Oct 6, 2009 at 1:49 AM, Bill Agee billa...@gmail.com wrote:
I believe there are ways to get the coordinates
The exception from Watir indicates the problem is this line:
ie.select_list( :name , jurisdiction).select(Development)
As the error says, there's no select list found with the name
jurisdiction. The HTML for that element should show the way to fix the
problem - if you can't figure it out just
Hi,
I'm pretty new to Watir and I'm having an intermittent problem with
scripts hanging when a web page doesn't fully load.
I'm trying to run:-
Watir::IE.start(http://www.igindex.co.uk;)
This sometimes works but sometimes the the start method doesn't return
and the script simply hangs
There is a button on the site I am testing that sometimes triggers a
javascript pop-up, and sometimes it does not. If the pop up is
triggered, my code works as it should. It handles the pop up, and then
moves on to the next record in my loop. However, if there is NO pop
up, I need my script to
You could wrap that in an exception handler and then continue on.
begin
...wait_until...
rescue Watir::Exception::TimeOutException
...possibly do something
end
Is that what you're looking for?
Charley Baker
blog: http://blog.charleybaker.org/
Lead Developer, Watir, http://wtr.rubyforge.org
QA
When I try to install the watir gem on the mac I am getting the
following:
host73:watir_site_regression employee$ sudo gem install watir --
include-dependencies
INFO: `gem install -y` is now default and will be removed
INFO: use --ignore-dependencies to install only the gems you list
Building
I am using rspec with safariwatir. When I try to have watir click a
link for which I have an id I see the link get highlighted in yellow
but the click action doesn't occur. Here is an example:
@browser.button(:id, ID_name).click
I then tried this:
Watir::Element::click { @browser.button(:id,
Thanks for the quick reply.
I've been trying to do something similar. Maybe I'm just not putting
things in the right places, because when I use begin and end with
rescue, my pop up never gets handled; it remains on the screen until
watir times out again.
Where would I insert the wait_until?
sudo gem install firewatir
sudo gem install safariwatir
On Oct 6, 1:28 pm, QAguy qablogm...@gmail.com wrote:
When I try to install the watir gem on the mac I am getting the
following:
host73:watir_site_regression employee$ sudo gem install watir --
include-dependencies
INFO: `gem install
Thanks for writing. I have those 2 installed already on my MAC:
safariwatir (0.3.3)
firewatir (1.6.2)
but a straight
sudo gem install watir fails. Is that gem not able to be installed on
the MAC?
Thanks
On Oct 6, 3:40 pm, Bret Pettichord bpettich...@gmail.com wrote:
sudo gem install
Getting an error while starting up the program on this code where I am
extending SelectList (file name is watir_or.rb)
require 'rubygems'
require 'watir'
require 'win32ole'
module Watir
class Picker SelectList
# picker specific methods
end
end
The error is
./watir_or.rb:8:
I donot know much of what you have done but for safari we need to have
safariwatir installed
require 'rubygems'
require 'safariwatir'
browser = Watir::Safari.new
browser.goto(http://google.com;)
browser.text_field(:name, q).set(obtiva)
browser.button(:name, btnI).click
puts FAILURE unless
20 matches
Mail list logo