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

2012-01-06 Thread Barry
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: New Rich text editor in our web app

2012-01-06 Thread Chuck van der Linden
well on a PC you can do that with either AutoIt, or Rautomation.   Not
so sure with the mac (although someone else may be able to help)

I'm learning to be a mac user after years with windows systems, but
when it comes to running watir I just do it through VM's hosted on the
mac for a number of reasons, so while I technically run watir or watir-
webdriver on a mac, I'm not actually running it on OSX

On Jan 6, 10:57 am, Joe Fleck  wrote:
> Chuck,
>
> Thank you this was very helpful.  I do have VMWare fusion so I will
> begin using it to run my scripts.  I usually have this problem when
> developing my scripts.  I development them in Netbeams (6.0) and run
> them from there.  When you wrote this 'You
>  may need to set focus to the browser window first.'  did you mean
> manually or is there a method that will do this?
>
> Thank you,
> Joe
>
> On Fri, Jan 6, 2012 at 12:45 PM, Chuck van der Linden  
> wrote:
>
>
>
>
>
>
>
> > On Jan 6, 6:51 am, Joe Fleck  wrote:
> >> Hi,
>
> >> I have found it does work but won't if the browser is not in my
> >> admitted focus.  I am using a MAC BookPro.  Has anyone else
> >> experienced this?
>
> >> Thank you,
> >> Joe
>
> > Most 'send keys' operations emulate typing at the keyboard, and are
> > generally done at the OS level.  As a result the keystrokes tend to go
> > to whatever has focus in the UI of the system you are testing on.  You
> > may need to set focus to the browser window first.  That can mean it's
> > pretty difficult to do anything else on the system when scripts are
> > running since you never know when you might lose focus on your current
> > task.
>
> > If you want to do other work on the system while scripts are running,
> > and the scripts use this kind of thing then your best bet is to run
> > the tests inside a virtual machine, where what you do on the rest of
> > your desktop will not affect the focus 'inside' the VM.  If no a mac
> > look into Virtual-Box, Parallels, or VMWare Fusion.   (another
> > advantage of this is that you can test on a platform such as Windows
> > with IE/Firefox/Chrome  so that you are not doing all your testing on
> > a marginal platform that only a tiny minority of most web users would
> > be using.  (note I'm not a mac hater.. I'm typing this on a macbook
> > pro, but for compatibility testing of webapps I mostly use Virtual-Box
> > VM's that use XP or Win7, and IE/Chrome/Firefox since that's what
> > around 90%+ of my users will be using.  Using an external monitor, I
> > can have scripts running in vm's on one screen (to keep an eye on
> > them) and meanwhile do useful work on the other monitor.
>
> > --
> > Before posting, please readhttp://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

-- 
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-06 Thread Chuck van der Linden
You might have a look at Sikuli

I've used it for things like clicking on flash controls that were just
not exposed enough to work with via watir, autoit, or rautomation.  It
may be a way to perform a few quick clicks based on looking for a
specific image on the screen, and then go back to working with watir
for those things that are more exposed.

Regarding that 'jspopup'  be sure to check it using the development
tools (refresh them after it appears) as it may not be a popup at all,
but merely a div or other HTML element that is styled in such a way
that it looks and behaves much like a popup.  I've been seeing more
and more of that sort of thing, and the good thing is that they are
easier to work with than true popups, once you recognize what is going
on.

On Jan 6, 11:27 am, Abe Heward  wrote:
> FYI, my temp solution is throwing some jquery in my methods. Fun fun.

-- 
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-06 Thread Abe Heward
FYI, my temp solution is throwing some jquery in my methods. Fun fun.

-- 
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] Re: New Rich text editor in our web app

2012-01-06 Thread Joe Fleck
Chuck,

Thank you this was very helpful.  I do have VMWare fusion so I will
begin using it to run my scripts.  I usually have this problem when
developing my scripts.  I development them in Netbeams (6.0) and run
them from there.  When you wrote this 'You
 may need to set focus to the browser window first.'  did you mean
manually or is there a method that will do this?

Thank you,
Joe

On Fri, Jan 6, 2012 at 12:45 PM, Chuck van der Linden  wrote:
> On Jan 6, 6:51 am, Joe Fleck  wrote:
>> Hi,
>>
>> I have found it does work but won't if the browser is not in my
>> admitted focus.  I am using a MAC BookPro.  Has anyone else
>> experienced this?
>>
>> Thank you,
>> Joe
>
> Most 'send keys' operations emulate typing at the keyboard, and are
> generally done at the OS level.  As a result the keystrokes tend to go
> to whatever has focus in the UI of the system you are testing on.  You
> may need to set focus to the browser window first.  That can mean it's
> pretty difficult to do anything else on the system when scripts are
> running since you never know when you might lose focus on your current
> task.
>
> If you want to do other work on the system while scripts are running,
> and the scripts use this kind of thing then your best bet is to run
> the tests inside a virtual machine, where what you do on the rest of
> your desktop will not affect the focus 'inside' the VM.  If no a mac
> look into Virtual-Box, Parallels, or VMWare Fusion.   (another
> advantage of this is that you can test on a platform such as Windows
> with IE/Firefox/Chrome  so that you are not doing all your testing on
> a marginal platform that only a tiny minority of most web users would
> be using.  (note I'm not a mac hater.. I'm typing this on a macbook
> pro, but for compatibility testing of webapps I mostly use Virtual-Box
> VM's that use XP or Win7, and IE/Chrome/Firefox since that's what
> around 90%+ of my users will be using.  Using an external monitor, I
> can have scripts running in vm's on one screen (to keep an eye on
> them) and meanwhile do useful work on the other monitor.
>
> --
> 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

-- 
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] Re: watir-webdriver survey for adding items such as: alert_box, scroll_to, and in_viewable_area?

2012-01-06 Thread Abe Heward
Thanks for the help, you guys!

In addition to upgrading to 2.16 I wrote the following method and put it in 
Watir::Browser:

*def back_to_top*
*  self.execute_script("javascript:window.scrollTo(0,0)")*
*end*

I'll put that into my scripts if it becomes necessary (which I hope won't 
happen with 2.16).

-- 
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-06 Thread Abe Heward
"Why test someone else's product?"

I'm not. Unfortunately, however, the system being tested only provides one 
means of getting to a dialog box I need to get to, and that's via the 
tinyMCE Editor.  Here's the use case:

Ensure the user can modify the default address value of the Google Maps 
item on the page.

To accomplish the above, the user must:

1) Go to the page containing the maps widget.
2) "Edit" the page--which brings up the tinyMCE Editor.
3) Click on the "Google Maps" icon that now is sitting in the Content area 
of tinyMCE.
4) The click now brings up a context menu, with "Preferences" as one of the 
options. Click "Preferences".
5) Now a totally separate Javascript Pop Up dialog appears, which allows, 
among other things, setting the default address of the map.

If there were some other way of getting to that dialog on the page, I'd use 
it.

Sadly, what we're testing is a product that is an Open Source tool for the 
broader Higher Ed community, so there isn't a "development team" or project 
manager, per se, that I can go to and complain about their crappy UI.

-- 
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] Re: watir-webdriver survey for adding items such as: alert_box, scroll_to, and in_viewable_area?

2012-01-06 Thread Jari Bakken
Try upgrading to selenium-webdriver 2.16.

Den 6. jan. 2012 kl. 16:28 skrev Abe Heward :

Could someone provide advice on how to "monkey patch" watir-webdriver so
that I can avoid the dreaded
*Selenium::WebDriver::Error::MoveTargetOutOfBoundsError:
Element cannot be scrolled into view:[object HTMLButtonElement]* error?

I don't need all the other overhead of the qa_robusta gem, so help here on
writing a "scroll_to" method (presumably for the Watir::Element class?)
would be greatly appreciated!

I tried to use the qa_robusta method definition as a template, but have so
far failed to get anything to work.

-- 
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

-- 
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] Re: watir-webdriver survey for adding items such as: alert_box, scroll_to, and in_viewable_area?

2012-01-06 Thread Jasmina Atanassova
I use this work-around until scroll_to method is available. I choose
another element, above the one I need to click, and make Watir click it. It
will give me same error for this element too, but the page will scroll up.
At this point I can click the element I need and it will work. In order for
the script not to stop running after getting the error for the first
element, I throw a rescue exception. Here is the code:

if browsertype == "ff" #I have specified somewhere else an array of
browser types, so here I restrict this only for the browser where error
occurs

begin

browser.link(:text, "the above element").click

rescue Exception => e

end
end

  browser.link(:text, "element I need").click


On Fri, Jan 6, 2012 at 7:28 AM, Abe Heward  wrote:

> Could someone provide advice on how to "monkey patch" watir-webdriver so
> that I can avoid the dreaded 
> *Selenium::WebDriver::Error::MoveTargetOutOfBoundsError:
> Element cannot be scrolled into view:[object HTMLButtonElement]* error?
>
> I don't need all the other overhead of the qa_robusta gem, so help here on
> writing a "scroll_to" method (presumably for the Watir::Element class?)
> would be greatly appreciated!
>
>  I tried to use the qa_robusta method definition as a template, but have
> so far failed to get anything to work.
>
> --
> 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
>

-- 
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-06 Thread Chuck van der Linden
Thanks for the link to the demo, that helps immensely.

Unfortunately the 'real job' has been very busy lately as well as
'real life' and so I've not had a chance to look at this.

As an aside, unless you are working for the people who make this
editor, why test someone else's product? is that a good use of your
employers time?   I'd do a fast review of the thing manually using ET,
and tell the dev team that you need to be notified if they update to a
new version of said product and retest at that time.  Otherwise there
should be no changes to that code since it is 3rd party, and the value
of doing regression testing there should be minimal at best.

I'd investigate if it has some way to save/load files, and use that
functionality if you need to test that something 'created' in the
editor works correctly with the rest of your application.

On Jan 4, 9:24 am, Abe Heward  wrote:
> Sure thing!
>
> First, manually, go to that site and click on the tinyMCE logo in the
> editor. It will then look like this:
>
> 
>
> The particular thing to note is the resizing controller that
> appears--that's how you know you've clicked it.
>
> Now, run this code:
>
> require 'watir-webdriver'
>
> browser = Watir::Browser.new :firefox
>
> browser.goto "http://www.tinymce.com/tryit/full.php";
>
> browser.frame(:id=>"content_ifr").image(:src=>"img/tlogo.png").click
>
> sleep 10 # So that the window doesn't close immediately
>
> You'll notice that the image-resize controller is not there after the click
> even occurs. That's the basic problem.

-- 
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: New Rich text editor in our web app

2012-01-06 Thread Chuck van der Linden
On Jan 6, 6:51 am, Joe Fleck  wrote:
> Hi,
>
> I have found it does work but won't if the browser is not in my
> admitted focus.  I am using a MAC BookPro.  Has anyone else
> experienced this?
>
> Thank you,
> Joe

Most 'send keys' operations emulate typing at the keyboard, and are
generally done at the OS level.  As a result the keystrokes tend to go
to whatever has focus in the UI of the system you are testing on.  You
may need to set focus to the browser window first.  That can mean it's
pretty difficult to do anything else on the system when scripts are
running since you never know when you might lose focus on your current
task.

If you want to do other work on the system while scripts are running,
and the scripts use this kind of thing then your best bet is to run
the tests inside a virtual machine, where what you do on the rest of
your desktop will not affect the focus 'inside' the VM.  If no a mac
look into Virtual-Box, Parallels, or VMWare Fusion.   (another
advantage of this is that you can test on a platform such as Windows
with IE/Firefox/Chrome  so that you are not doing all your testing on
a marginal platform that only a tiny minority of most web users would
be using.  (note I'm not a mac hater.. I'm typing this on a macbook
pro, but for compatibility testing of webapps I mostly use Virtual-Box
VM's that use XP or Win7, and IE/Chrome/Firefox since that's what
around 90%+ of my users will be using.  Using an external monitor, I
can have scripts running in vm's on one screen (to keep an eye on
them) and meanwhile do useful work on the other monitor.

-- 
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: unable to click the through watir. 选项

2012-01-06 Thread Chuck van der Linden
On Jan 5, 7:25 pm, Tiffany Fodor  wrote:
> Hi Finley,
>
> I don't think you can specify more than two parameters for an element.
>

That should actually be fine.  recent watir and watir-webdriver are
very good about allowing multiple attributes to be used to create what
is in effect a 'unique key' to find an element.  This is done in a
'hash' format

browser.elementname(:how => 'what', :how2 => 'what2', :how3 =>
'what3')

Since he did not indicate that he was getting some kind of 'element
not found' error, then that is not likely the problem.

Although, if ID's are implemented on the page per HTML standards, then
they should be unique, and selecting using ID combined with anything
else ought to be redundant.

All that said, when troubleshooting something of this sort where you
don't get an indication that watir cannot find the element, but it's
not appearing to respond (or you get some kind of a not visible or
read-only error) it is a good idea to do some kind of sanity check to
be sure you are in fact selecting the right element.  For this I
recommend using IRB and trying the following things

 1) use the .flash method to visually verify you actually have the
correct element selected
 2) try getting a collection of that object type using the same
criteria, and use the .size method to see how many were found  e.g.
browser.buttons(:name => 'Login').size  (this is good for finding if
there are invisible copies or 'templates' of an object elsewhere in
the HTML

-- 
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: unable to click the through watir. 选项

2012-01-06 Thread Chuck van der Linden
There is a trailing space in the class name in the HTML you posted in
your original method.  (unless that is a typo)  That could be causing
you problems if you are trying to identify the object using class.

There is no event listener defined in the HTML, so it must be
elsewhere in your code.  Finding that might shed some light on this,
as well as looking at CSS properties etc.

Potentially a sequence of events (like mouseover) may be needed, and
depending on how the other code on the client (likely javascript) is
'looking for a click' if may be that it's actually looking for
something like a mousedown or  mouseup or some event other than a
click.search the code to see if you can find where event listeners
are defined, specifically (this is a hunch based on the attributes of
the span) for something such as an MXEVENT object and a .click method
and see what events it is looking for.

The link Zeljko provided can also be handy in figuring out what events
the thing might be responding to.   As well as very careful manual
interaction such as trying a very slow 'click' where you press the
button down, hold a bit and then release.. If you do that and it
reacts for example when the button goes down, then you know 'click
(which is a rapid press and release) is not really what it is looking
for, and you could try firing a mousedown event instead.

btw are you using Watir or Watir webdriver?  if the latter, which
browser?

On Jan 6, 1:04 am, Finley  wrote:
> HI Tiffany ,
> I use the "@ie.span(:id => 'mx1e63400f').click ", but the span tag
> event  still cann't tigger.
> The span work, when click on manual.
> Please Help, Finley

-- 
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-webdriver survey for adding items such as: alert_box, scroll_to, and in_viewable_area?

2012-01-06 Thread Abe Heward
Could someone provide advice on how to "monkey patch" watir-webdriver so 
that I can avoid the dreaded 
*Selenium::WebDriver::Error::MoveTargetOutOfBoundsError: 
Element cannot be scrolled into view:[object HTMLButtonElement]* error?

I don't need all the other overhead of the qa_robusta gem, so help here on 
writing a "scroll_to" method (presumably for the Watir::Element class?) 
would be greatly appreciated!

I tried to use the qa_robusta method definition as a template, but have so 
far failed to get anything to work.

-- 
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-webdriver survey for adding items such as: alert_box, scroll_to, and in_viewable_area?

2012-01-06 Thread Abe Heward
For my part, I really hate item 1 and wish it would go away.

-- 
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] New Rich text editor in our web app

2012-01-06 Thread Joe Fleck
Hi,

I have found it does work but won't if the browser is not in my
admitted focus.  I am using a MAC BookPro.  Has anyone else
experienced this?

Thank you,
Joe

On Thu, Jan 5, 2012 at 4:41 PM, Joe Fl  wrote:
> Hi All,
>
> We recently updated our rich text editor in our app and I can no
> longer type into.  I can use the following line and it will place the
> cursor within the editor but nothing is typed.
>
> @browser.frame(:title,'Rich text editor, event_description, press ALT
> 0 for help.').send_keys "DID THIS TYPE IN THE EDITOR?"
>
>
> Before the change this was my line of code that worked.
>
> @browser.frame(:id,"roundtable_descriptionWidgIframe").send_keys
> "Comment"
>
>
>
> I have included the HTML.
>
> 
> 
>  role="presentation">
> 
> 
> 
>  role="presentation" style="height:200px">
>  title="Rich text editor, event_description, press ALT 0 for help."
> style="width:100%;height:100%">
> 
> 
> Rich text editor, event_description, press ALT 0 for
> help.
> http://50.57.144.41/javascripts/ckeditor/contents.css";
> rel="stylesheet" type="text/css">
> /*
> Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights
> reserved.
> For licensing, see LICENSE.html or http://ckeditor.com/license
> */
> body
> {
> /* Font */
> font-family: Arial, Verdana, sans-serif;
> font-size: 12px;
> /* Text color */
> color: #222;
> /* Remove the background color to make it transparent */
> background-color: #fff;
> }
> ol,ul,dl
> {
> /* IE7: reset rtl list margin. (#7334) */
> *margin-right:0px;
> /* preserved spaces for list items with text direction other than the
> list. (#6249,#8049)*/
> padding:0 40px;
> }
> 
> 
> img.cke_flash{background-image: url(http://50.57.144.41/javascripts/
> ckeditor/plugins/flash/images/placeholder.png?t=B8DJ5M3);background-
> position: center center;background-repeat: no-repeat;border: 1px solid
> #a9a9a9;width: 80px;height: 80px;}
> form{border: 1px dotted #FF;padding: 2px;}
> img.cke_hidden{background-image: url(http://50.57.144.41/javascripts/
> ckeditor/plugins/forms/images/hiddenfield.gif?t=B8DJ5M3);background-
> position: center center;background-repeat: no-repeat;border: 1px solid
> #a9a9a9;width: 16px !important;height: 16px !important;}
> img.cke_iframe{background-image: url(http://50.57.144.41/javascripts/
> ckeditor/plugins/iframe/images/placeholder.png?t=B8DJ5M3);background-
> position: center center;background-repeat: no-repeat;border: 1px solid
> #a9a9a9;width: 80px;height: 80px;}
> a.cke_anchor,a.cke_anchor_empty,a[name],a[data-cke-saved-name]
> {background:url(http://50.57.144.41/javascripts/ckeditor/plugins/link/
> images/anchor.gif?t=B8DJ5M3) no-repeat left center;border:1px dotted
> #00f;padding-left:18px;cursor:auto;}
> img.cke_anchor{background:url(http://50.57.144.41/javascripts/ckeditor/
> plugins/link/images/anchor.gif?t=B8DJ5M3) no-repeat left center;border:
> 1px dotted #00f;width:16px;min-height:15px;height:1.15em;vertical-
> align:text-bottom;}
> div.cke_pagebreak{background: url(http://50.57.144.41/javascripts/
> ckeditor/plugins/pagebreak/images/pagebreak.gif?t=B8DJ5M3) no-repeat
> center center !important;clear: both !important;width:100% !important;
> _width:99.9% !important;border-top: #99 1px dotted !
> important;border-bottom: #99 1px dotted !important;padding:0 !
> important;height: 5px !important;cursor: default !important;}
> .cke_show_blocks p,.cke_show_blocks div,.cke_show_blocks
> pre,.cke_show_blocks address,.cke_show_blocks
> blockquote,.cke_show_blocks h1,.cke_show_blocks h2,.cke_show_blocks
> h3,.cke_show_blocks h4,.cke_show_blocks h5,.cke_show_blocks
> h6{background-repeat: no-repeat;background-position: top left;border:
> 1px dotted gray;padding-top: 8px;padding-left: 8px;}.cke_show_blocks
> p{background-image: url(http://50.57.144.41/javascripts/ckeditor/
> plugins/showblocks/images/block_p.png);}.cke_show_blocks
> div{background-image: url(http://50.57.144.41/javascripts/ckeditor/
> plugins/showblocks/images/block_div.png);}.cke_show_blocks
> pre{background-image: url(http://50.57.144.41/javascripts/ckeditor/
> plugins/showblocks/images/block_pre.png);}.cke_show_blocks
> address{background-image: url(http://50.57.144.41/javascripts/ckeditor/
> plugins/showblocks/images/block_address.png);}.cke_show_blocks
> blockquote{background-image:

Re: [wtr-general] unable to click the through watir. 选项

2012-01-06 Thread Željko Filipin
On Fri, Jan 6, 2012 at 4:17 AM, Finley  wrote:
>   I am trying to click on a span in my web page. Although it can
> click,
> it event cann't tigger.

Maybe this could help:

http://stackoverflow.com/questions/3787555/how-to-find-out-which-javascript-events-fired

Željko
--
watir.com/book - author

-- 
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] Re: unable to click the through watir. 选项

2012-01-06 Thread Cristian Cortez
@ie.span(:id *,* 'mx1e63400f').click
try with "," it happens to me all the time

2012/1/6 Finley 

> HI Tiffany ,
> I use the "@ie.span(:id => 'mx1e63400f').click ", but the span tag
> event  still cann't tigger.
> The span work, when click on manual.
> Please Help, Finley
>
> --
> 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
>



-- 
--
Cristian
www.cortezcristian.com.ar

-- 
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: unable to click the through watir. 选项

2012-01-06 Thread Finley
HI Tiffany ,
I use the "@ie.span(:id => 'mx1e63400f').click ", but the span tag
event  still cann't tigger.
The span work, when click on manual.
Please Help, Finley

-- 
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