[wtr-general] Re: Unable to locate element

2011-02-17 Thread Ashu
On trying the above line of code
irb displays
irb(main):045:0> ie.image(:alt, 'Open SDP file').wait_until_present
Watir::Exception::UnknownObjectException: Unable to locate element,
using :alt,"Open SDP file"
from C:/Ruby186/lib/ruby/gems/1.8/gems/firewatir-1.6.5/lib/
firewatir/element.rb:907:in `assert_exists'
from C:/Ruby186/lib/ruby/gems/1.8/gems/firewatir-1.6.5/lib/
firewatir/element.rb:1266:in `method_missing'
from (irb):45
from :0
:-(
On Feb 17, 2:00 pm, Alastair Montgomery  wrote:
> Is it possible that you are trying to access the element before it has had
> time to render?
> We use jQuery and its elements sometime take a while to render fully.
>
> Try putting a line of *ie.image(:alt, 'Open SDP file').wait_until_present* 
> before
> you attempt to click on it.

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

2011-02-17 Thread Ashu
irb(main):043:0> ie.button(:name => 'SDP_0_1').click
Watir::Exception::UnknownObjectException: Unable to locate element,
using {:name=>"SDP_0_1"}
from C:/Ruby186/lib/ruby/gems/1.8/gems/firewatir-1.6.5/lib/
firewatir/element.rb:907:in `assert_exists'
from C:/Ruby186/lib/ruby/gems/1.8/gems/firewatir-1.6.5/lib/
firewatir/element.rb:1066:in `click'
from (irb):43
from :0

On Feb 18, 11:02 am, Tim Koopmans  wrote:
> Technically it is a button (input type=image)
>
> http://wiki.openqa.org/display/WTR/Buttons
>
> So use
> ie.button(:name => 'SDP_0_1').click
>
> Cheers,
> Tim
>
> On Fri, Feb 18, 2011 at 4:52 PM, Ashu  wrote:
> > SDP_0_1

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

2011-02-17 Thread Ashu
On entering this line ->  ie.image(:alt, 'Open SDP
file').wait_until_present
it returned thie following error
irb(main):033:0> ie.image(:alt, 'Open SDP file').wait_until_present
Watir::Exception::UnknownObjectException: Unable to locate element,
using :alt,
"Open SDP file"
from C:/Ruby186/lib/ruby/gems/1.8/gems/firewatir-1.6.5/lib/
firewatir/element.rb:907:in `assert_exists'
from C:/Ruby186/lib/ruby/gems/1.8/gems/firewatir-1.6.5/lib/
firewatir/element.rb:1266:in `method_missing'
from (irb):33
from :0

On Feb 17, 2:00 pm, Alastair Montgomery  wrote:
> Is it possible that you are trying to access the element before it has had
> time to render?
> We use jQuery and its elements sometime take a while to render fully.
>
> Try putting a line of *ie.image(:alt, 'Open SDP file').wait_until_present* 
> before
> you attempt to click on it.

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

2011-02-17 Thread Tim Koopmans
Technically it is a button (input type=image)

http://wiki.openqa.org/display/WTR/Buttons

So use
ie.button(:name => 'SDP_0_1').click

Cheers,
Tim


On Fri, Feb 18, 2011 at 4:52 PM, Ashu  wrote:

> SDP_0_1

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

2011-02-17 Thread Ashu
The page is a .php file
I have extracted the code from the required area, through firebug for
firefox

Persistent StreamsTypeTarget PortStream StatusSDPVideo3OnVideo30100On

Here towards the end is the image located.
I want to locate the image in this code




On Feb 17, 12:26 pm, Tim Koopmans  wrote:
> What does the HTML for that element look like?
>
> Cheers,
> Tim
> @90kts
>
> On Thu, Feb 17, 2011 at 4:57 PM, Ashu  wrote:
> > Hi,
> > I am working on an Automation project using WATIR. I am getting an
> > error while locating an element to be clicked while automation.
> > Error -> C:/Ruby186/lib/ruby/gems/1.8/gems/firewatir-1.6.5/lib/
> > firewatir/element.rb:907:in `assert_exists': Unable to locate element,
> > using :alt, "Open SDP file" (Watir::Exception::UnknownObjectException)
> > for the command - > ie.image(:alt, 'Open SDP file').click
> > A "puts" for that element returns false based on the alt, title or any
> > other item that appears under that fieldset.
>
> > I tried other possible way and encountered another error
> > C:/Ruby186/lib/ruby/gems/1.8/gems/firewatir-1.6.5/lib/firewatir/
> > element.rb:907:i
> > n `assert_exists': Unable to locate element, using :jssh_name
> > (Watir::Exception:
> > :UnknownObjectException)
> > Can the jssh error be resolved ?
> > although I have installed .jssh for firefox3.6.13 n using firebug to
> > trace the element.
> > I am using
> > firewatir (1.6.5)
> > fxruby (1.6.20 x86-mingw32, 1.2.6 mswin32)
>
> > Please Help,
> > Thanks!
>
> > --
> > 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


Re: [wtr-general] [Watir launching] Unable to launch Watir by require 'watir'

2011-02-17 Thread Tim Koopmans
Good idea, I've since updated this page to reflect.

Loading RubyGems

If you’re a first time Ruby user, you need to understand how to load Ruby
gems such as Watir. You can require it via the -rubygems command line option
or by using the RUBYOPT environment variable. You can also require it
manually in your script:

require 'rubgyems'

For more information see here
.
Cheers,
Tim


On Fri, Feb 18, 2011 at 8:41 AM, Bill Agee  wrote:

> I think it's time to start updating Watir documentation with a " require
> 'rubygems' " step (or at least a note warning about the issue).
>
> A lot of folks installing Ruby on Windows for the first time are winding up
> without the RUBYOPT env var, and thus have a rockier first experience than
> those of us who came to Watir in the legacy one-click installer days. :)
>
> I think a good place to start would be:
>
> http://watir.com/examples/
>
> Is it pretty easy to update?
>
> I suppose a number of other docs would need to be changed too...not sure
> what the most popular destinations are these days for folks evaluating
> Watir.
>
> Thanks
> Bill
>
>
> On Thu, Feb 17, 2011 at 1:09 PM, Tim Koopmans  wrote:
>
>> Try
>>
>> require 'rubygems'
>>
>> Before your require for Watir... Or set your RUBYOPT environment variable
>> ...
>>
>> Regards,
>> Tim
>>
>>
>>
>> On 18/02/2011, at 8:06 AM, mmauric  wrote:
>>
>> > As explained in the getting started, I have installed ruby-1.8.7-p330
>> > with the option to update the path variable on Windows 7 pro and
>> > performed:
>> >
>> > gem update --system
>> > gem install watir
>> >
>> > -> watir-1.7.1 is installed (all seems right)
>> >
>> > Then I try to launch Watir and here is below the error message I get:
>> >
>> > C:\Ruby187>irb
>> > irb:001:0>require 'watir'
>> > LoadError: no such file to load --watir
>> >   from :2in 'require'
>> >   from :2
>> > irb:003:0>
>> >
>> > With Ruby-1.8.7, I have got some successfully cases (answer =>true),
>> > but I have not understood the scenario to reproduce.
>> >
>> > I have tried with different current directories and other versions of
>> > ruby without more success.
>> >
>> > Thank you for your help.
>> >
>> > Regards.
>> >
>> > --
>> > 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
>>
>
>  --
> 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] [Watir launching] Unable to launch Watir by require 'watir'

2011-02-17 Thread Bill Agee
I think it's time to start updating Watir documentation with a " require
'rubygems' " step (or at least a note warning about the issue).

A lot of folks installing Ruby on Windows for the first time are winding up
without the RUBYOPT env var, and thus have a rockier first experience than
those of us who came to Watir in the legacy one-click installer days. :)

I think a good place to start would be:

http://watir.com/examples/

Is it pretty easy to update?

I suppose a number of other docs would need to be changed too...not sure
what the most popular destinations are these days for folks evaluating
Watir.

Thanks
Bill


On Thu, Feb 17, 2011 at 1:09 PM, Tim Koopmans  wrote:

> Try
>
> require 'rubygems'
>
> Before your require for Watir... Or set your RUBYOPT environment variable
> ...
>
> Regards,
> Tim
>
>
>
> On 18/02/2011, at 8:06 AM, mmauric  wrote:
>
> > As explained in the getting started, I have installed ruby-1.8.7-p330
> > with the option to update the path variable on Windows 7 pro and
> > performed:
> >
> > gem update --system
> > gem install watir
> >
> > -> watir-1.7.1 is installed (all seems right)
> >
> > Then I try to launch Watir and here is below the error message I get:
> >
> > C:\Ruby187>irb
> > irb:001:0>require 'watir'
> > LoadError: no such file to load --watir
> >   from :2in 'require'
> >   from :2
> > irb:003:0>
> >
> > With Ruby-1.8.7, I have got some successfully cases (answer =>true),
> > but I have not understood the scenario to reproduce.
> >
> > I have tried with different current directories and other versions of
> > ruby without more success.
> >
> > Thank you for your help.
> >
> > Regards.
> >
> > --
> > 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
>

-- 
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] [Watir launching] Unable to launch Watir by require 'watir'

2011-02-17 Thread Tim Koopmans
Try 

require 'rubygems' 

Before your require for Watir... Or set your RUBYOPT environment variable ...

Regards,
Tim 



On 18/02/2011, at 8:06 AM, mmauric  wrote:

> As explained in the getting started, I have installed ruby-1.8.7-p330
> with the option to update the path variable on Windows 7 pro and
> performed:
> 
> gem update --system
> gem install watir
> 
> -> watir-1.7.1 is installed (all seems right)
> 
> Then I try to launch Watir and here is below the error message I get:
> 
> C:\Ruby187>irb
> irb:001:0>require 'watir'
> LoadError: no such file to load --watir
>   from :2in 'require'
>   from :2
> irb:003:0>
> 
> With Ruby-1.8.7, I have got some successfully cases (answer =>true),
> but I have not understood the scenario to reproduce.
> 
> I have tried with different current directories and other versions of
> ruby without more success.
> 
> Thank you for your help.
> 
> Regards.
> 
> -- 
> 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] [Watir launching] Unable to launch Watir by require 'watir'

2011-02-17 Thread mmauric
As explained in the getting started, I have installed ruby-1.8.7-p330
with the option to update the path variable on Windows 7 pro and
performed:

gem update --system
gem install watir

-> watir-1.7.1 is installed (all seems right)

Then I try to launch Watir and here is below the error message I get:

C:\Ruby187>irb
irb:001:0>require 'watir'
LoadError: no such file to load --watir
   from :2in 'require'
   from :2
irb:003:0>

With Ruby-1.8.7, I have got some successfully cases (answer =>true),
but I have not understood the scenario to reproduce.

I have tried with different current directories and other versions of
ruby without more success.

Thank you for your help.

Regards.

-- 
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] WatirSplash 1.1.1 Released

2011-02-17 Thread Jarmo Pertman
Hi!

Biggest improvements in the new WatirSplash is it's support for Linux,
OS X and Windows by using Watir, FireWatir and Watir-WebDriver
frameworks.

WatirSplash makes browser-based web page testing in Ruby splashin’
easy. It combines Watir (www.watir.com) for controlling the browser
and RSpec (relishapp.com/rspec) for testing framework. This powerful
combination gives you the ability to write easily well-maintained and
easy-to-read specs (specifications in RSpec) so you don’t need to have
any extra documentation for your applications.

WatirSplash makes it easier to use best features of both of these
tools together so you won’t have to spend time on thinking how to do
that yourself - you can start testing right away!

Get it with `gem install watirsplash`.

Read more from https://github.com/jarmo/watirsplash

Jarmo Pertman
-
IT does really matter - http://www.itreallymatters.net

-- 
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: Need Help on Span ......Filipin

2011-02-17 Thread sdemian
I am really confused by your new code also it is seriously differ from
previous one and i could not find span with hello text in it, cuz the
main
idea was to locate span element on the page as i understand.
Still recommend to use xpath for element location, probably HttpWatch
is
handy to use here.

On Feb 17, 5:02 pm, mike_sukhi  wrote:
> the code now of a div is in which "hello" is not showing but it seems
> to "hello-button-11" is the real button and hello is a image..i
> guess :)
>
>           
>                 
>                    show_faces="false" layout="button_count" href="http://www.abc.com/
> elitegudz" class=" fb_edge_widget_with_comment
> fb_iframe_widget"> name="f2cdf57ef4ea374" style="border: medium none; overflow: hidden;
> height: 20px; width: 100px;" title="Like this content on Facebook."
> class="fb_ltr" src="http://www.abc.com/
> plug;layout=button_count&locale=en_US&node_type=link&sdk=joey&show_faces=false&width=100"> iframe>
>                 
>                 Gudz
>                     href="http://www.abc.com/";>http://www.abc.com/  href="http://www.abc.com/";>http://www.time.com/templates/images/
> icon.gif">  
>                 
>               
>
> On Feb 17, 6:37 pm, Сергей Демьянчук 
> wrote:
>
> > Try this code to see available properties for spans on the page :
>
> > ie.spans.each do |span|
> > span.flash
> > span.to_s
> > end
>
> > Also this code works for me:
>
> > ie.span(:text, 'Hello').flash
>
> > If those spans are in the frame you possibly will need additional code to
> > use.
>
> > I suggest to use xpath to locate elements with same properties.
> > What effect do you want to achieve clicking on the span ?
>
> > 2011/2/17 mike_sukhi 
>
> > > The code is:
>
> > >  > > class="connect_button_container">Hello > > div>
>
> > > Hello appears 10 times on the page..with same code:
> > > I have tried with the following option but no success.
>
> > > $IE.span(:class =>'time', :text =>'Hello').click
> > > or
> > > $IE.span(:class =>'time', :index=>7).click
>
> > > still no sucess ...
>
> > > --
> > > 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


Re: [wtr-general] Re: Need Help on Span ......Filipin

2011-02-17 Thread Сергей Демьянчук
I am really confused by your new code also it is seriously differ from
previous one and i could not find span with hello text in it, cuz the main
idea was to locate span element on the page as i understand.
Still recommend to use xpath for lement location, probably HttpWatch is
handy to use here.

2011/2/17 mike_sukhi 

> the code now of a div is in which "hello" is not showing but it seems
> to "hello-button-11" is the real button and hello is a image..i
> guess :)
>
>  
>
>   show_faces="false" layout="button_count" href="http://www.abc.com/
> elitegudz" class=" fb_edge_widget_with_comment
> fb_iframe_widget"> name="f2cdf57ef4ea374" style="border: medium none; overflow: hidden;
> height: 20px; width: 100px;" title="Like this content on Facebook."
> class="fb_ltr" src="http://www.abc.com/
>
> plug;layout=button_count&locale=en_US&node_type=link&sdk=joey&show_faces=false&width=100"> iframe>
>
>Gudz
>   http://www.abc.com/ http://www.time.com/templates/images/
> icon.gif">  
>
>  
>
> On Feb 17, 6:37 pm, Сергей Демьянчук 
> wrote:
> > Try this code to see available properties for spans on the page :
> >
> > ie.spans.each do |span|
> > span.flash
> > span.to_s
> > end
> >
> > Also this code works for me:
> >
> > ie.span(:text, 'Hello').flash
> >
> > If those spans are in the frame you possibly will need additional code to
> > use.
> >
> > I suggest to use xpath to locate elements with same properties.
> > What effect do you want to achieve clicking on the span ?
> >
> > 2011/2/17 mike_sukhi 
> >
> >
> >
> > > The code is:
> >
> > >  > > class="connect_button_container">Hello > > div>
> >
> > > Hello appears 10 times on the page..with same code:
> > > I have tried with the following option but no success.
> >
> > > $IE.span(:class =>'time', :text =>'Hello').click
> > > or
> > > $IE.span(:class =>'time', :index=>7).click
> >
> > > still no sucess ...
> >
> > > --
> > > 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<
> http://groups.google.com/group/watir-general%0Awatir-general+unsubscr...>
>
> --
> 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: Need Help on Span ......Filipin

2011-02-17 Thread mike_sukhi
the code now of a div is in which "hello" is not showing but it seems
to "hello-button-11" is the real button and hello is a image..i
guess :)

  

  http://www.abc.com/
elitegudz" class=" fb_edge_widget_with_comment
fb_iframe_widget">http://www.abc.com/
plug;layout=button_count&locale=en_US&node_type=link&sdk=joey&show_faces=false&width=100">

Gudz
   http://www.abc.com/ http://www.time.com/templates/images/
icon.gif">  

  

On Feb 17, 6:37 pm, Сергей Демьянчук 
wrote:
> Try this code to see available properties for spans on the page :
>
> ie.spans.each do |span|
> span.flash
> span.to_s
> end
>
> Also this code works for me:
>
> ie.span(:text, 'Hello').flash
>
> If those spans are in the frame you possibly will need additional code to
> use.
>
> I suggest to use xpath to locate elements with same properties.
> What effect do you want to achieve clicking on the span ?
>
> 2011/2/17 mike_sukhi 
>
>
>
> > The code is:
>
> >  > class="connect_button_container">Hello > div>
>
> > Hello appears 10 times on the page..with same code:
> > I have tried with the following option but no success.
>
> > $IE.span(:class =>'time', :text =>'Hello').click
> > or
> > $IE.span(:class =>'time', :index=>7).click
>
> > still no sucess ...
>
> > --
> > 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


Re: [wtr-general] Need Help on Span ......Filipin

2011-02-17 Thread Сергей Демьянчук
Try this code to see available properties for spans on the page :

ie.spans.each do |span|
span.flash
span.to_s
end

Also this code works for me:

ie.span(:text, 'Hello').flash

If those spans are in the frame you possibly will need additional code to
use.

I suggest to use xpath to locate elements with same properties.
What effect do you want to achieve clicking on the span ?

2011/2/17 mike_sukhi 

>
>
> The code is:
>
>  class="connect_button_container">Hello div>
>
> Hello appears 10 times on the page..with same code:
> I have tried with the following option but no success.
>
> $IE.span(:class =>'time', :text =>'Hello').click
> or
> $IE.span(:class =>'time', :index=>7).click
>
> still no sucess ...
>
> --
> 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] Need Help on Span ......Filipin

2011-02-17 Thread Сергей Демьянчук
Try this code to see awayliable properties for spans on the page :

ie.spans.each do |span|
span.flash
span.to_s
end

Also this code works for me:

ie.span(:text, 'Hello').flash

If those spans are in the frame you possibly will need additional code to
use.

I suggest to use xpath to locate elements with same properties.
What effect do you want to achieve clicking on the span ?

2011/2/17 mike_sukhi 

>
>
> The code is:
>
>  class="connect_button_container">Hello div>
>
> Hello appears 10 times on the page..with same code:
> I have tried with the following option but no success.
>
> $IE.span(:class =>'time', :text =>'Hello').click
> or
> $IE.span(:class =>'time', :index=>7).click
>
> still no sucess ...
>
> --
> 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] Need Help on Span ......Filipin

2011-02-17 Thread mike_sukhi


The code is:

Hello

Hello appears 10 times on the page..with same code:
I have tried with the following option but no success.

$IE.span(:class =>'time', :text =>'Hello').click
or
$IE.span(:class =>'time', :index=>7).click

still no sucess ...

-- 
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] Handling Java Applets

2011-02-17 Thread Željko Filipin
On Thu, Feb 17, 2011 at 10:12 AM, Saurabh Gupta 
wrote:
> I am testing an application which is based on the Java and use java
> applets for upload files WATIR.

>From Watir tutorial [1], page Introduction [2]:

"Watir will not work with ... Java Applets"

Željko
--
[1] http://wiki.openqa.org/display/WTR/Tutorial
[2] http://wiki.openqa.org/display/WTR/Introduction

-- 
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: Disable file download popup in IE

2011-02-17 Thread Сергей Демьянчук
Hi, Željko

Could you please try open registry with system key
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet
Settings\Zones\3] and change data type of the value named 1803 from "0" to
"3" ("0" - enable download dialog, "3" - disable download dialog) and reply
if it works for you.
This is works fine for me, but i get another alert modal dialog with
message: "Your current security settings do not allow this file to be
downloaded.", and AutoIt handles this excelent.
I used instructions from
here
.

Thanks,
Sergii


2011/2/17 Željko Filipin 

> On Wed, Feb 16, 2011 at 7:25 PM, Dave McNulla  wrote:
> > http://kb.winzip.com/kb/entry/69/
>
> I think this is a solution to enable file download popup: "the File
> Download dialog will display again and will ask if you want to open the file
> or save it."
>
> IE really confuses me. I was able to disable file download popup in all
> other popular browsers in a few minutes. I am playing with IE for days with
> no luck.
>
> Anybody that finds the solution has a beer at seconf[1], viaqa[2] or any
> other conference where the both of us are there. :)
>
> Željko
> --
> [1] http://www.seleniumconf.com/
> [2] http://viaqa.mobi/
>
>  --
> 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] Handling Java Applets

2011-02-17 Thread Saurabh Gupta
Hello,

I am testing an application which is based on the Java and use java
applets for upload files WATIR.

There is a applet which have "Add button" and want to click on it, but
not able to click on that button not even able to focus on it.

Please tell me if there is any way to handle ASAP.

Specification:
HTML: 

Ruby: Ruby 1.8.6 26r
Internet Explorer 7

Please let me know if there is any other information required from me.

Thanks and Regards,
Saurabh Gupta


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

2011-02-17 Thread Alastair Montgomery
Is it possible that you are trying to access the element before it has had 
time to render?
We use jQuery and its elements sometime take a while to render fully.

Try putting a line of *ie.image(:alt, 'Open SDP file').wait_until_present* 
before 
you attempt to click on it.

-- 
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: Disable file download popup in IE

2011-02-17 Thread Željko Filipin
On Wed, Feb 16, 2011 at 7:25 PM, Dave McNulla  wrote:
> http://kb.winzip.com/kb/entry/69/

I think this is a solution to enable file download popup: "the File Download
dialog will display again and will ask if you want to open the file or save
it."

IE really confuses me. I was able to disable file download popup in all
other popular browsers in a few minutes. I am playing with IE for days with
no luck.

Anybody that finds the solution has a beer at seconf[1], viaqa[2] or any
other conference where the both of us are there. :)

Željko
--
[1] http://www.seleniumconf.com/
[2] http://viaqa.mobi/

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