I am trying to restructure my automation code to emulate what I
consider to be a great framework setup demonstrated by Alister Scott,
as described here...
http://watirmelon.com/2009/09/08/creating-a-watir-framework-using-test-unit-and-roo/
The one major difference is I won't be using a
I just started using watir-webdriver, and was able to make it work
well with Firefox. I am running into some problems on Chrome though
(all on Mac OSX). Here is what I am observing.
I type the following into irb, and all is good so far...
irb(main):001:0 require 'rubygems'
= true
irb(main):002:0
Hi, I have the following javascript (for a site that has mootools
embedded in it) that I am trying to execute...
$$('.monthly-calendar')[0].fireEvent('click', { target: $$
('.available')[0] })
The above works when I execute it from the command line console in
Firebug. Is there a way to get the
Yeah, I tried that, but all that does is flash the element.
Basically, it's a calendar with each date of the month as an object
(table cell). Clicking on it will cause the object to change.
On Jan 11, 5:24 pm, Željko Filipin zeljko.fili...@wa-research.ch
wrote:
Did you try just clicking the
Yep I tried that too actually. That's the way I used to do it (except
with the mousedown event). However, there was some redesign on the
calendar and any of the fire_events don't work anymore.
On Jan 11, 5:47 pm, Željko Filipin zeljko.fili...@wa-research.ch
wrote:
Did you try to fire the event?
, 2011 at 12:27 AM, xguarder shams...@gmail.com wrote:
However, there was some redesign on the
calendar and any of the fire_events don't work anymore.
Did you take a look at the link I have posted? Did you check which events
get fired?
Željko
--
Before posting, please read http://watir.com
Hello, as of late, anything I run the $browser.url method, I keep
getting an empty string returned. I know for sure this used to work.
Any ideas as to why this method is no longer returning the proper
value?
Thanks in advance!
--
Before posting, please read http://watir.com/support. In short:
hearing of an issue like this with firewatir - are you
using watir (ie) or firewatir?
On Fri, Oct 22, 2010 at 12:08, xguarder shams...@gmail.com wrote:
Hello, as of late, anything I run the $browser.url method, I keep
getting an empty string returned. I know for sure this used to work.
Any
://vapir.org/
-Ethan
On Fri, Oct 22, 2010 at 14:17, xguarder shams...@gmail.com wrote:
Sorry, forgot to specify, it's firewatir.
Even using irb...something simple as Firefox.new or Firefox.attach,
followed by a .url method won't return anything. Pretty much any other
method I use
Awesome, thanks!
On Oct 22, 3:02 pm, Ethan notet...@gmail.com wrote:
you can check this with `gem which firewatir`
On Fri, Oct 22, 2010 at 14:54, xguarder shams...@gmail.com wrote:
Thanks!
Oh, I also read somewhere that you can edit an entry in the FireWatir
library. Any idea where
Oh, btw, this is how I solved the browser.url problem...
On Mac OS X, go to /usr/local/lib/ruby/gems/1.8/gems/firewatir-1.6.5/
lib/firewatir/firefox.rb
Change #{document_var}.location to #{document_var}.URL#
On Oct 22, 3:18 pm, xguarder shams...@gmail.com wrote:
Awesome, thanks!
On Oct 22, 3
Thanks so much. After some experimenting, it looks like
fire_event(mousedown) does the trick
Much appreciated!
On Mar 2, 6:52 am, Željko Filipin zeljko.fili...@wa-research.ch
wrote:
On Tue, Mar 2, 2010 at 12:42 PM, xguarder shams...@gmail.com wrote:
Doing the .click
method does not properly
Question about an array. Say I have the following array...
textlist = [Apple, Orange, Lemon, Grape, Orange, Melon,
Orange, Banana]
if I did textlist.index(Orage), I would get 1 returned.
Can anyone tell me how I could retrieve the index number of the 2nd
instance of Orange?
Thanks in advance!
of the expected
behavior? Also, if you're able to share the site that you're testing,
that might help.
Thanks,
Adam
On Jan 19, 4:07 am, xguarder shams...@gmail.com wrote:
I tried to handle an authentication popup using the first method
listed at this
link...http://wiki.openqa.org/display/WTR
the :beforeText problem - were you able to make
mywww.Google.comexample work?
-Tiffany
On Jan 13, 3:31 pm, xguarder shams...@gmail.com wrote:
Thanks for the tips.
I tried the index method using the array as you suggested. When I ran
it, I get an undefined method 'index'.e
Also, when using
I was wondering if someone could inform me on how to do the following:
1. Retrieve link index number of a link. For instance, I know I can
find the link using ie.link(:text, LinkText), and I can also find
out the index number via irb. However, I want to be able to assign the
index number of that
!
-Tiffany
On Jan 13, 2:20 pm, xguarder shams...@gmail.com wrote:
I was wondering if someone could inform me on how to do the following:
1. Retrieve link index number of a link. For instance, I know I can
find the link using ie.link(:text, LinkText), and I can also find
out the index
I am trying to enter text into a search field (textField box).
However, there is no button to click on to submit the text. You need
to hit enter after typing it into the text box.
Any ideas on how I can send the ENTER command directly to the textbox
itself? I tried using the send_keys method, but
Hello, I am trying to save an image using the following:
$ie.image(:index,1).save(c:\\test\\image.jpg)
The image does get saved. However, I get the following (in irb)...
WIN32OLERuntimeError: GoBack
OLE error code:80004005 in Unknown
No Description
HRESULT error code:0x80020009
an irb session and try the various solutions we've posted
until you find the one that works for you.
I'm not sure why click_no_wait is undefined for you - can you post
your code to help us troubleshoot?
-Tiffany
On Nov 24, 9:19 am, xguarder shams...@gmail.com wrote:
Hello, I have scoured
)
w = WinClicker.new
w.clickWindowsButton_hwnd( hwnd, #{type})
w=nil
end
end
ie=Watir::Browser.new
ie.goto C:\\test.html
ie.button(:name, 'cmdClickMe').click_no_wait
click_modal_button(ie)
Thanks again!
On Nov 24, 12:33 pm, xguarder shams...@gmail.com wrote:
Thanks for the reply
Hello, can anyone give me some quick tips on how to do the following:
Say I am searching for the text Something, which is in the first
column of the table. Exact row and table index won't be known up
front.
So I have table.row(:text, Something) thus far
What method can I use to retrieve the
Hi, I have the following on my page...
80687E.01.73.6D.40.50.CE.D5 Recorded: 10/29/09 Delete
80677E.01.73.6D.40.4F.CE.CE Recorded: 10/29/09 Delete
80657E.01.73.6D.40.4E.CE.C7 Recorded: 10/29/09 Delete
All the Delete's
= browser.table(:id, 'table_id')
my_table.rows.each do |row|
if row.text.include?('7E.01.73.6D.40.50.CE.D5')
row.link(:text, 'Delete').click
end
end
Hope this helps!
-Tiffany
On Nov 19, 2:53 pm, xguarder shams...@gmail.com wrote:
Hi, I have the following on my page...
8068 7E
24 matches
Mail list logo