[wtr-general] Re: Clicking an image inside the tinyMCE Editor with Watir-Webdriver

2012-01-08 Thread Abe Heward
You're exactly right, Chuck. It's not a pop-up at all, but a div that's 
hidden until the button in question is clicked.  This web site's pages are 
chock full of these little beasties.

I'll take a look at Sikuli as soon as I get a chance. Thanks!

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


[wtr-general] Re: watir::IE multiple windows always connect to same session

2012-01-08 Thread Barry
Nobody has this problem? All your IE windows have different sessions
with watir?

Barry

On Jan 6, 10:34 pm, Barry barry...@gmail.com wrote:
 I tried to open two IE windows at the same time. In watir-webdriver,
 Firefox alway open them in seperate session. But in Watir, the two IE
 windows share the same cookie. For example, the shopping cart is
 shared. How can I keep the shopping carts seperated? I tried
 new_process, open_process, start, new. But all didn't work.

 require watir
 browser = Watir::IE.new
 browser.goto(link)
 .

 Thanks!

 Barry

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


[wtr-general] Re: Clicking an image inside the tinyMCE Editor with Watir-Webdriver

2012-01-08 Thread Abe Heward
Chuck, Sikuli looks interesting, but it seems like a nightmare of overhead 
to use with Ruby, if this blog post is to be believed:

http://blackrat.org/ruby/getting-sikuli-script-working-with-jruby-on-the-mac/

I need to install Java, The Sikuli IDE, modify the $CLASSPATH, etc. etc.?! 
 Ugh. All because a click doesn't work on an object that properly flashes 
when I use .flash on it. Sigh.

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


[wtr-general] clicking multi links with same attribut

2012-01-08 Thread prabhi kumar
i have a webpage with many number of ul containing many number of li.
problem is i need to click all li with same class name in all ul.
how can i do it. when i tried browser.li(:class, tor).click
when i run it it clicks the fir li of first ul but i want to click all
the links

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


Re: [wtr-general] clicking multi links with same attribut

2012-01-08 Thread bis
could you explain this a bit better maybe she an example in code of what
the html you are tying to work with looks like

On Sun, Jan 8, 2012 at 10:40 PM, prabhi kumar prabhian...@gmail.com wrote:

 i have a webpage with many number of ul containing many number of li.
 problem is i need to click all li with same class name in all ul.
 how can i do it. when i tried browser.li(:class, tor).click
 when i run it it clicks the fir li of first ul but i want to click all
 the links

 --
 Before posting, please read http://watir.com/support. In short: search
 before you ask, be nice.

 watir-general@googlegroups.com
 http://groups.google.com/group/watir-general
 watir-general+unsubscr...@googlegroups.comhttp://groups.google.com/group/watir-general%0awatir-general+unsubscr...@googlegroups.com


-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


[wtr-general] Re: clicking multi links with same attribut

2012-01-08 Thread Chuck van der Linden
On Jan 8, 9:40 pm, prabhi kumar prabhian...@gmail.com wrote:
 i have a webpage with many number of ul containing many number of li.
 problem is i need to click all li with same class name in all ul.
 how can i do it. when i tried browser.li(:class, tor).click
 when i run it it clicks the fir li of first ul but i want to click all
 the links

list_items = browser.lis(:class = 'tor')

list_items.each do |li|
 li.click
end

This presumes that clicking the first item does not cause the page to
update in some way, if that's the case this may fail after the first
item is clicked, depending on the nature of the update and if the
other list items are re-created in the process or not.

if something like that is happening we probably need more details to
offer you a viable solution

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


[wtr-general] Re: Clicking an image inside the tinyMCE Editor with Watir-Webdriver

2012-01-08 Thread Chuck van der Linden
well the only other thing I can suggest is a closer examination of the
editor and see if it is in fact reacting to the click, or maybe some
other action such as the mousedown. there may be a lot more going on
than meets the eye, and for things to work the mouse may need to be in
a specific position, perhaops for example to activate some kind of css
controlled psuedoclass etc.  fancy controls like a full editor can be
pretty complicated under the covers sometimes.  a bit of detective
work may be needed.

On Jan 8, 1:11 pm, Abe Heward abe.hew...@gmail.com wrote:
 Chuck, Sikuli looks interesting, but it seems like a nightmare of overhead
 to use with Ruby, if this blog post is to be believed:

 http://blackrat.org/ruby/getting-sikuli-script-working-with-jruby-on-...

 I need to install Java, The Sikuli IDE, modify the $CLASSPATH, etc. etc.?!
  Ugh. All because a click doesn't work on an object that properly flashes
 when I use .flash on it. Sigh.

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


[wtr-general] Re: watir::IE multiple windows always connect to same session

2012-01-08 Thread Chuck van der Linden
if you open multiple IE sessions manually do they share cookies?  if
so this is a fundimental IE thing and there's not much we are likely
to be able to do about it.

On Jan 8, 12:09 pm, Barry barry...@gmail.com wrote:
 Nobody has this problem? All your IE windows have different sessions
 with watir?

 Barry

 On Jan 6, 10:34 pm, Barry barry...@gmail.com wrote:



  I tried to open two IE windows at the same time. In watir-webdriver,
  Firefox alway open them in seperate session. But in Watir, the two IE
  windows share the same cookie. For example, the shopping cart is
  shared. How can I keep the shopping carts seperated? I tried
  new_process, open_process, start, new. But all didn't work.

  require watir
  browser = Watir::IE.new
  browser.goto(link)
  .

  Thanks!

  Barry- Hide quoted text -

 - Show quoted text -

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com