Re: [wtr-general] Re: Strangeness with watir and IE or I may be missing something.

2011-10-10 Thread Cliff Cyphers
Chuck

Good point, more people need to respect said terms of use.  Although
one's intentions isn't to inter-fear, perform harm, or use their data
for other purposes, it doesn't speak good for the OOS community to not
abide.

For demo purposes, why not just create a simple site as a rack app or
with camping, sinatra, etc.  Also, if there are specific test element
that would be good to cover for demo purposes I'll put them in the
demo site of QA Robusta.  So far the demo site supports a JS/CSS drop
down menu, tabed pages and an accordion style registration.

On Mon, Oct 10, 2011 at 5:59 PM, Chuck van der Linden  wrote:
> Sorry for the initial hardline response.. I think I've run into one to
> many 'content rippers' lately who are asking questions about how they
> can use watir to access sites with the pretty clear intent of content
> theft and I had a bit of a knee-jerk response.
>
> I think the tutorial stuff that Bis and Alister are doing is valuable
> stuff and for a noble purpose that would all in all benefit the watir
> community.  However I think it would be a good idea to get official
> permission since while it might be in the spirit of what Etsy is all
> about, it is (at least by my reading) against their terms of use, and
> their api terms of use.  Specifically I think this work would violate
> these portions of their agreements:
>
> 1)  From their main terms of use:
> You agree that you will not use any robot,
> spider, scraper or other automated means to access Etsy for any
> purpose whatsoever, except to the extent expressly permitted by and in
> compliance with Etsy's API Terms of Use or otherwise without Etsy's
> prior express written permission.
>
> any Watir scripts would qualify under 'other automated means'
>
> 2) When we get into their API terms (http://www.etsy.com/developers/
> terms-of-use) it gets thornier because those terms basically restrict
> developers to using the API, and Watir isn't doing that.
>
>  9. Website Human Use Restriction And Use of API
>  The API is the only supported method for users to access data
> programmatically from Etsy. The Etsy Website, including Content and
> applications is published solely for direct access by human users.
> 'Spiders', 'crawlers', 'bots' and all other automated software or
> hardware devices designed to access and 'read' or otherwise analyze
> the Website independently are prohibited unless they are expressly so
> authorized by Etsy.
>
> Again Watir would fall into the general wording of 'all other
> automated software ... designed to access..'
>
> Not sure who you wrote to, but the proper address for anything
> pertaining to this appears to be "develo...@etsy.com"
>
> I hope they will say yes, their site makes an interesting target and
> anyone using it to practice their automation skills is going to get
> exposed to some interesting stuff for sale and might even buy
> something.
>
> If they say no then an alternative will need to be found.  Or we might
> even have to create out own (which might be an interesting project)..
> I know Bret had something he was using for training when he was trying
> to make a go of 'watircraft' so if this is a non starter that might be
> one place to start.  (I'd love to eventually have our own training
> site, perhaps even persuade some of the third party tools venders to
> allow us to put samples of their stuff up on it so we could end up
> creating demonstrations of how to code against all these various wacky
> javascript controls for things like treeviews, multi-select lists,
> etc.
>
> On Oct 10, 10:57 am, Jari Bakken  wrote:
>> You may be interested in Alister's Etsy code 
>> athttps://github.com/alisterscott/EtsyWatirWebDriver/
>>
>>
>>
>>
>>
>>
>>
>> On Mon, Oct 10, 2011 at 6:56 PM, bis  wrote:
>> > No I do not work for Etsy in any way, Also the automated tests using watir,
>> > taza, rspec, and cucumber do not violate the terms of use for the site or
>> > api as far as i understand them.
>>
>> > But in your concern I have fired off a letter to Etsy about this and the
>> > ToS. Also if this is in fact the case then I will also send an email to
>> > everyone else that has written a tutorial or testing examples using the 
>> > Etsy
>> > site as well
>>
>> > this is my blog post about the tests I wrote against etsy
>> >http://thechort.com/blog/?p=105
>> > and the code
>> >https://github.com/hammernight/etsy_cucumber_taza_tutorial/
>>
>> > On Mon, Oct 10, 2011 at 1:10 PM, Chuck van der Linden 
>> > wrote:
>>
>> >> Before we go any further assisting you with this, can you offer some
>> >> assurance that you are either working for Etsy or have specific
>> >> written permission to interface with their site in this way?
>>
>> >> Otherwise what you are doing violates their terms of service (see
>> >> below) and while I cannot speak for others, I for one refuse to be a
>> >> party to any such activity.
>>
>> >> From Etsy's terms of service:
>>
>> >> "11. Access and Interference
>>
>> >> Etsy may contain ro

[wtr-general] Re: Strangeness with watir and IE or I may be missing something.

2011-10-10 Thread Chuck van der Linden
Sorry for the initial hardline response.. I think I've run into one to
many 'content rippers' lately who are asking questions about how they
can use watir to access sites with the pretty clear intent of content
theft and I had a bit of a knee-jerk response.

I think the tutorial stuff that Bis and Alister are doing is valuable
stuff and for a noble purpose that would all in all benefit the watir
community.  However I think it would be a good idea to get official
permission since while it might be in the spirit of what Etsy is all
about, it is (at least by my reading) against their terms of use, and
their api terms of use.  Specifically I think this work would violate
these portions of their agreements:

1)  From their main terms of use:
You agree that you will not use any robot,
spider, scraper or other automated means to access Etsy for any
purpose whatsoever, except to the extent expressly permitted by and in
compliance with Etsy's API Terms of Use or otherwise without Etsy's
prior express written permission.

any Watir scripts would qualify under 'other automated means'

2) When we get into their API terms (http://www.etsy.com/developers/
terms-of-use) it gets thornier because those terms basically restrict
developers to using the API, and Watir isn't doing that.

 9. Website Human Use Restriction And Use of API
  The API is the only supported method for users to access data
programmatically from Etsy. The Etsy Website, including Content and
applications is published solely for direct access by human users.
'Spiders', 'crawlers', 'bots' and all other automated software or
hardware devices designed to access and 'read' or otherwise analyze
the Website independently are prohibited unless they are expressly so
authorized by Etsy.

Again Watir would fall into the general wording of 'all other
automated software ... designed to access..'

Not sure who you wrote to, but the proper address for anything
pertaining to this appears to be "develo...@etsy.com"

I hope they will say yes, their site makes an interesting target and
anyone using it to practice their automation skills is going to get
exposed to some interesting stuff for sale and might even buy
something.

If they say no then an alternative will need to be found.  Or we might
even have to create out own (which might be an interesting project)..
I know Bret had something he was using for training when he was trying
to make a go of 'watircraft' so if this is a non starter that might be
one place to start.  (I'd love to eventually have our own training
site, perhaps even persuade some of the third party tools venders to
allow us to put samples of their stuff up on it so we could end up
creating demonstrations of how to code against all these various wacky
javascript controls for things like treeviews, multi-select lists,
etc.

On Oct 10, 10:57 am, Jari Bakken  wrote:
> You may be interested in Alister's Etsy code 
> athttps://github.com/alisterscott/EtsyWatirWebDriver/
>
>
>
>
>
>
>
> On Mon, Oct 10, 2011 at 6:56 PM, bis  wrote:
> > No I do not work for Etsy in any way, Also the automated tests using watir,
> > taza, rspec, and cucumber do not violate the terms of use for the site or
> > api as far as i understand them.
>
> > But in your concern I have fired off a letter to Etsy about this and the
> > ToS. Also if this is in fact the case then I will also send an email to
> > everyone else that has written a tutorial or testing examples using the Etsy
> > site as well
>
> > this is my blog post about the tests I wrote against etsy
> >http://thechort.com/blog/?p=105
> > and the code
> >https://github.com/hammernight/etsy_cucumber_taza_tutorial/
>
> > On Mon, Oct 10, 2011 at 1:10 PM, Chuck van der Linden 
> > wrote:
>
> >> Before we go any further assisting you with this, can you offer some
> >> assurance that you are either working for Etsy or have specific
> >> written permission to interface with their site in this way?
>
> >> Otherwise what you are doing violates their terms of service (see
> >> below) and while I cannot speak for others, I for one refuse to be a
> >> party to any such activity.
>
> >> From Etsy's terms of service:
>
> >> "11. Access and Interference
>
> >> Etsy may contain robot exclusion headers which contain internal rules
> >> for software usage. Much of the information on Etsy is updated on a
> >> real-time basis and is proprietary or is licensed to Etsy by Etsy's
> >> users or third-parties. You agree that you will not use any robot,
> >> spider, scraper or other automated means to access Etsy for any
> >> purpose whatsoever, except to the extent expressly permitted by and in
> >> compliance with Etsy's API Terms of Use or otherwise without Etsy's
> >> prior express written permission. Additionally, you agree that you
> >> will not:
>
> >>    Take any action that imposes, or may impose, in Etsy's sole
> >> discretion, an unreasonable or disproportionately large load on Etsy's
> >> infrastructure
> >>    Copy, reproduce, modify, cre

Re: [wtr-general] confused with versioning in Watir

2011-10-10 Thread Željko Filipin
On Mon, Oct 10, 2011 at 7:49 PM, Babu  wrote:
> i have already installed watir 1.6.5 in my gem list.
> But when i see the watir version as "ruby -e 'require "watir"; puts
> Watir::IE::VERSION'"
> it is showing 1.4.1

Did you install watir 1.4.1 via the exe file? In that case, I think the
easiest way to uninstall is to completely uninstall ruby, then install it
again and install watir with:

gem install watir

By the way, the latest watir release is 2.0.2.

Željko
--
watir.com - community manager
watir.com/book - author
watirpodcast.com - host

-- 
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] confused with versioning in Watir

2011-10-10 Thread Babu
i have already installed watir 1.6.5 in my gem list.
But when i see the watir version as "ruby -e 'require "watir"; puts
Watir::IE::VERSION'"
it is showing 1.4.1
how can i update to 1.6.5
since i am not getting all the IE tags in 1.4.1 which is present in
1.6.5

-- 
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: Strangeness with watir and IE or I may be missing something.

2011-10-10 Thread Jari Bakken
You may be interested in Alister's Etsy code at
https://github.com/alisterscott/EtsyWatirWebDriver/

On Mon, Oct 10, 2011 at 6:56 PM, bis  wrote:

> No I do not work for Etsy in any way, Also the automated tests using watir,
> taza, rspec, and cucumber do not violate the terms of use for the site or
> api as far as i understand them.
>
> But in your concern I have fired off a letter to Etsy about this and the
> ToS. Also if this is in fact the case then I will also send an email to
> everyone else that has written a tutorial or testing examples using the Etsy
> site as well
>
> this is my blog post about the tests I wrote against etsy
> http://thechort.com/blog/?p=105
> and the code
> https://github.com/hammernight/etsy_cucumber_taza_tutorial/
>
>
>
>
> On Mon, Oct 10, 2011 at 1:10 PM, Chuck van der Linden wrote:
>
>> Before we go any further assisting you with this, can you offer some
>> assurance that you are either working for Etsy or have specific
>> written permission to interface with their site in this way?
>>
>> Otherwise what you are doing violates their terms of service (see
>> below) and while I cannot speak for others, I for one refuse to be a
>> party to any such activity.
>>
>> From Etsy's terms of service:
>>
>> "11. Access and Interference
>>
>> Etsy may contain robot exclusion headers which contain internal rules
>> for software usage. Much of the information on Etsy is updated on a
>> real-time basis and is proprietary or is licensed to Etsy by Etsy's
>> users or third-parties. You agree that you will not use any robot,
>> spider, scraper or other automated means to access Etsy for any
>> purpose whatsoever, except to the extent expressly permitted by and in
>> compliance with Etsy's API Terms of Use or otherwise without Etsy's
>> prior express written permission. Additionally, you agree that you
>> will not:
>>
>>Take any action that imposes, or may impose, in Etsy's sole
>> discretion, an unreasonable or disproportionately large load on Etsy's
>> infrastructure
>>Copy, reproduce, modify, create derivative works from, distribute
>> or publicly display any user Content (except for your Content) or
>> other allowed uses as set out in The DOs & DON'Ts of Etsy from the
>> Site except to the extent expressly permitted by and in compliance
>> with Etsy's API Terms of Use or otherwise without the prior express
>> written permission of Etsy and the appropriate third party, as
>> applicable
>>Interfere or attempt to interfere with the proper working of the
>> Site or any activities conducted on the Site
>>Bypass Etsy's robot exclusion headers or other measures Etsy may
>> use to prevent or restrict access to Etsy
>> "
>>
>> On Oct 3, 10:27 am, bis  wrote:
>> > Ok, So I came across a strange issue clicking on this drop down in
>> watir.
>> > but I don't get the same thing using watir-webdriver.
>> >
>> > I can click the button and it should open the drop down(list) and I
>> should
>> > be able to click on one of the items in that list. but when watir fires
>> the
>> > click i see it clicking but it does not open the drop down(list)
>> > watir-webdriver fires the click opens the dropdown and allows me to
>> select
>> > the item in the list i want. any suggestions?
>> >
>> > So here is the code on the page .
>> >
>> > http://www.etsy.com/search.php"; id="search-bar" class="">
>> > 
>> > Handmade
>> > > > tabindex="-1" longdesc="Decorative" title="" frameborder="0">
>> > > tabindex="0">
>> > Handmade
>> > > class="vintage">Vintage
>> > > class="supplies">Supplies
>> > All
>> Items
>> > > class="people">People
>> > Shops
>> > 
>> > 
>> > 
>> > > > name="search_query" id="search-query" class="text" tabindex="0"
>> > type="text">
>> > > > type="submit">
>> > Search
>> > 
>> > 
>> > > > id="search-type" type="hidden">
>> > 
>> >
>> > now you would think that a simple.
>> >
>> > b.label(:for => 'search-query').click
>> > b.li(:text => 'Supplies').click
>> >
>> > but it doesn't at least not with watir, watir-webdriver on the other
>> hand
>> > works just fine
>> >
>> > #chrome:
>> > irb
>> > ruby-1.8.7-p334 :001 > require 'rubygems'
>> >  => true
>> > ruby-1.8.7-p334 :002 > require 'watir-webdriver'
>> >  => true
>> > ruby-1.8.7-p334 :003 > b = Watir::Browser.new :chrome
>> >  => #
>> > ruby-1.8.7-p334 :004 > b.goto 'http://www.etsy.com
>> > ruby-1.8.7-p334 :005'> => "http://www.etsy.com/";
>> > ruby-1.8.7-p334 :006 > b.label(:for => 'search-query').h

Re: [wtr-general] Re: Strangeness with watir and IE or I may be missing something.

2011-10-10 Thread bis
No I do not work for Etsy in any way, Also the automated tests using watir,
taza, rspec, and cucumber do not violate the terms of use for the site or
api as far as i understand them.

But in your concern I have fired off a letter to Etsy about this and the
ToS. Also if this is in fact the case then I will also send an email to
everyone else that has written a tutorial or testing examples using the Etsy
site as well

this is my blog post about the tests I wrote against etsy
http://thechort.com/blog/?p=105
and the code
https://github.com/hammernight/etsy_cucumber_taza_tutorial/



On Mon, Oct 10, 2011 at 1:10 PM, Chuck van der Linden wrote:

> Before we go any further assisting you with this, can you offer some
> assurance that you are either working for Etsy or have specific
> written permission to interface with their site in this way?
>
> Otherwise what you are doing violates their terms of service (see
> below) and while I cannot speak for others, I for one refuse to be a
> party to any such activity.
>
> From Etsy's terms of service:
>
> "11. Access and Interference
>
> Etsy may contain robot exclusion headers which contain internal rules
> for software usage. Much of the information on Etsy is updated on a
> real-time basis and is proprietary or is licensed to Etsy by Etsy's
> users or third-parties. You agree that you will not use any robot,
> spider, scraper or other automated means to access Etsy for any
> purpose whatsoever, except to the extent expressly permitted by and in
> compliance with Etsy's API Terms of Use or otherwise without Etsy's
> prior express written permission. Additionally, you agree that you
> will not:
>
>Take any action that imposes, or may impose, in Etsy's sole
> discretion, an unreasonable or disproportionately large load on Etsy's
> infrastructure
>Copy, reproduce, modify, create derivative works from, distribute
> or publicly display any user Content (except for your Content) or
> other allowed uses as set out in The DOs & DON'Ts of Etsy from the
> Site except to the extent expressly permitted by and in compliance
> with Etsy's API Terms of Use or otherwise without the prior express
> written permission of Etsy and the appropriate third party, as
> applicable
>Interfere or attempt to interfere with the proper working of the
> Site or any activities conducted on the Site
>Bypass Etsy's robot exclusion headers or other measures Etsy may
> use to prevent or restrict access to Etsy
> "
>
> On Oct 3, 10:27 am, bis  wrote:
> > Ok, So I came across a strange issue clicking on this drop down in watir.
> > but I don't get the same thing using watir-webdriver.
> >
> > I can click the button and it should open the drop down(list) and I
> should
> > be able to click on one of the items in that list. but when watir fires
> the
> > click i see it clicking but it does not open the drop down(list)
> > watir-webdriver fires the click opens the dropdown and allows me to
> select
> > the item in the list i want. any suggestions?
> >
> > So here is the code on the page .
> >
> > http://www.etsy.com/search.php"; id="search-bar" class="">
> > 
> > Handmade
> >  > tabindex="-1" longdesc="Decorative" title="" frameborder="0">
> >  tabindex="0">
> > Handmade
> >  class="vintage">Vintage
> >  class="supplies">Supplies
> > All
> Items
> >  class="people">People
> > Shops
> > 
> > 
> > 
> >  > name="search_query" id="search-query" class="text" tabindex="0"
> > type="text">
> >  > type="submit">
> > Search
> > 
> > 
> >  > id="search-type" type="hidden">
> > 
> >
> > now you would think that a simple.
> >
> > b.label(:for => 'search-query').click
> > b.li(:text => 'Supplies').click
> >
> > but it doesn't at least not with watir, watir-webdriver on the other hand
> > works just fine
> >
> > #chrome:
> > irb
> > ruby-1.8.7-p334 :001 > require 'rubygems'
> >  => true
> > ruby-1.8.7-p334 :002 > require 'watir-webdriver'
> >  => true
> > ruby-1.8.7-p334 :003 > b = Watir::Browser.new :chrome
> >  => #
> > ruby-1.8.7-p334 :004 > b.goto 'http://www.etsy.com
> > ruby-1.8.7-p334 :005'> => "http://www.etsy.com/";
> > ruby-1.8.7-p334 :006 > b.label(:for => 'search-query').html
> >  => "Handmade"
> > ruby-1.8.7-p334 :007 > b.label(:for => 'search-query').click
> >  => []
> > ruby-1.8.7-p334 :008 > b.li(:text => 'Supplies').html
> >  => "Supplies"
> > ruby-1.8.7-p334 :009 > b.label(:for => 'search-query').click
> >  => []
> > ruby-1.8.7-p334 :010 > b.li(:text

[wtr-general] Re: Strangeness with watir and IE or I may be missing something.

2011-10-10 Thread Chuck van der Linden
Before we go any further assisting you with this, can you offer some
assurance that you are either working for Etsy or have specific
written permission to interface with their site in this way?

Otherwise what you are doing violates their terms of service (see
below) and while I cannot speak for others, I for one refuse to be a
party to any such activity.

>From Etsy's terms of service:

"11. Access and Interference

Etsy may contain robot exclusion headers which contain internal rules
for software usage. Much of the information on Etsy is updated on a
real-time basis and is proprietary or is licensed to Etsy by Etsy's
users or third-parties. You agree that you will not use any robot,
spider, scraper or other automated means to access Etsy for any
purpose whatsoever, except to the extent expressly permitted by and in
compliance with Etsy's API Terms of Use or otherwise without Etsy's
prior express written permission. Additionally, you agree that you
will not:

Take any action that imposes, or may impose, in Etsy's sole
discretion, an unreasonable or disproportionately large load on Etsy's
infrastructure
Copy, reproduce, modify, create derivative works from, distribute
or publicly display any user Content (except for your Content) or
other allowed uses as set out in The DOs & DON'Ts of Etsy from the
Site except to the extent expressly permitted by and in compliance
with Etsy's API Terms of Use or otherwise without the prior express
written permission of Etsy and the appropriate third party, as
applicable
Interfere or attempt to interfere with the proper working of the
Site or any activities conducted on the Site
Bypass Etsy's robot exclusion headers or other measures Etsy may
use to prevent or restrict access to Etsy
"

On Oct 3, 10:27 am, bis  wrote:
> Ok, So I came across a strange issue clicking on this drop down in watir.
> but I don't get the same thing using watir-webdriver.
>
> I can click the button and it should open the drop down(list) and I should
> be able to click on one of the items in that list. but when watir fires the
> click i see it clicking but it does not open the drop down(list)
> watir-webdriver fires the click opens the dropdown and allows me to select
> the item in the list i want. any suggestions?
>
> So here is the code on the page .
>
> http://www.etsy.com/search.php"; id="search-bar" class="">
>                 
>                     Handmade
>                      tabindex="-1" longdesc="Decorative" title="" frameborder="0">
>                     
>                                             Handmade
>                                             Vintage
>                                             Supplies
>                                             All Items
>                                             People
>                                             Shops
>                                         
>                 
>                 
>                      name="search_query" id="search-query" class="text" tabindex="0"
> type="text">
>                      type="submit">
>                         Search
>                     
>                 
>                  id="search-type" type="hidden">
> 
>
> now you would think that a simple.
>
> b.label(:for => 'search-query').click
> b.li(:text => 'Supplies').click
>
> but it doesn't at least not with watir, watir-webdriver on the other hand
> works just fine
>
> #chrome:
> irb
> ruby-1.8.7-p334 :001 > require 'rubygems'
>  => true
> ruby-1.8.7-p334 :002 > require 'watir-webdriver'
>  => true
> ruby-1.8.7-p334 :003 > b = Watir::Browser.new :chrome
>  => #
> ruby-1.8.7-p334 :004 > b.goto 'http://www.etsy.com
> ruby-1.8.7-p334 :005'> => "http://www.etsy.com/";
> ruby-1.8.7-p334 :006 > b.label(:for => 'search-query').html
>  => "Handmade"
> ruby-1.8.7-p334 :007 > b.label(:for => 'search-query').click
>  => []
> ruby-1.8.7-p334 :008 > b.li(:text => 'Supplies').html
>  => "Supplies"
> ruby-1.8.7-p334 :009 > b.label(:for => 'search-query').click
>  => []
> ruby-1.8.7-p334 :010 > b.li(:text => 'Supplies').click
>  => []
>
> and with firefox
>
> #firefox
> irb
> ruby-1.8.7-p334 :001 > require 'rubygems'
>  => true
> ruby-1.8.7-p334 :002 > require 'watir-webdriver'
>  => true
> ruby-1.8.7-p334 :003 > b = Watir::Browser.new :ff
>  => #
> ruby-1.8.7-p334 :004 > b.goto "http://www.etsy.com";
>  => "http://www.etsy.com/";
> ruby-1.8.7-p334 :005 > b.label(:for => 'search-query').click
>  => []
> ruby-1.8.7-p334 :006 > b.li(:text => 'Supplies').click
>  => []
> ruby-1.8.7-p334 :007 > b.close
>  => true
> ruby-1.8.7-p334 :008 >
>
> Thanks
> Oscarhttp://www.thechort.com/blog/

-- 
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: [Wtr-development] Permission to add our logo on watir.com

2011-10-10 Thread Željko Filipin
On Sun, Oct 9, 2011 at 11:31 AM, Jarmo  wrote:
> Hi!
> You may add the logo of the company i'm working at too and point it to
http://codeborne.com
> I've added a small logo as an attachment. Let me know if the size is not
good compared to others.
> Thanks!
> Jarmo

Done:

http://watir.com/

(Sending to Watir lists for transparency.)

Željko

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