Hi all,
I am using Watir with firefox browser.
In my project I need to handle multiple tabs in a single window.
For that I have tried 2 types of code.
One is,
require rubygems
require watir-webdriver
require win32ole
browser = Watir::Browser.new :ff
browser.goto www.google.com
ff =
On Thu, Aug 9, 2012 at 11:41 AM, mani racha manira...@gmail.com wrote:
In my project I need to handle multiple tabs in a single window.
http://watirwebdriver.com/browser-popups/
Željko
--
filipin.eu
--
Before posting, please read http://watir.com/support. In short: search before
you ask, be
Hi Željko,
Thank you for your quick reply.
I have used your suggested code and made it as
require rubygems
require watir-webdriver
browser = Watir::Browser.new :ff
browser.goto www.google.com
sleep 2
browser.window(:title = Google).use do
browser.button(:id = close).click
end
the error
Thank You!
I will see it!
[]'s
Daniela
Em quarta-feira, 8 de agosto de 2012 16h04min14s UTC-3, Željko Filipin
escreveu:
On Wed, Aug 8, 2012 at 9:00 PM, Daniela danielav...@gmail.comjavascript:
wrote:
I'm new on watir-webdriver and i want to know if there is some
structure that it's
Indexes start at 0, so that's part of the problem.
b.table(:index, 0).text.include?('housing')
= true
b.table(:index, 1).text.include?('housing')
= false
Also, you're better off using something like the exists method. I think
someone else can explain why located=false much better than I
Jarmo answers the located false question below. Bottom line is that's not
really the way to tell if something exists or not.
https://groups.google.com/d/topic/watir-general/5IAZsmFh9Ow/discussion
On Thursday, August 9, 2012 9:06:43 AM UTC-4, Dan wrote:
Indexes start at 0, so that's part of
Here is the line of code I used.
@@browser.div(:class = 'rich-tree-node-children
rich-tree-h-ic-line').tbody(:index, 0).tr(:index = 0).td(:index =
2).span(:index = 0).fire_event(onclick)
However, I can visibly see Watir activate the item, however the webpage
does nothing. This is where I'm
http://stackoverflow.com/questions/3787555/how-to-find-out-which-javascript-events-fired
On Thu, Aug 9, 2012 at 10:56 AM, Wind Dive arbnjumpe...@gmail.com wrote:
Here is the line of code I used.
@@browser.div(:class = 'rich-tree-node-children
rich-tree-h-ic-line').tbody(:index, 0).tr(:index
If I want to monkey patch Watir to recognize custom HTML attributes
(custom_attrib in the example code) I just add this code:
module Watir
class Element
def custom_attrib
@how = :ole_object
return @o.custom_attrib
end
end
end
However, take a look at the custom
I would suggest that you post this to wtr-developm...@rubyforge.org
Željko
--
filipin.eu
On Thu, Aug 9, 2012 at 8:28 PM, Abe Heward ahew...@rsmart.com wrote:
If I want to monkey patch Watir to recognize custom HTML attributes
(custom_attrib in the example code) I just add this code:
module
So, I used that link and all the fire_events are, mousedown, mouseup, and
click. Each I used and still no results. I want to thank everyone for
their help but I will just do this one portion manually.
--
Before posting, please read http://watir.com/support. In short: search before
you ask, be
https://github.com/watir/watir-webdriver/blob/master/lib/watir-webdriver/elements/generated.rb
to me it looks like it could be possible to just call it something like
without the dashes and then monkey patch
def data_element_id(*args)
DataElementId.new(self,
12 matches
Mail list logo