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 <[email protected]> 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 <[email protected]>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 <[email protected]> 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/>.
>> >
>> > <form action="http://www.etsy.com/search.php"; id="search-bar" class="">
>> >                 <div class="" style="-moz-user-select: none; cursor:
>> > default;" id="search-facet" tabindex="0" aria-haspopup="true">
>> >                     <label for="search-query">Handmade</label>
>> >                     <iframe style="display: none; width: 178px;
>> > height: 170px;" src="javascript:false;" id="search-facet-shim"
>> > tabindex="-1" longdesc="Decorative" title="" frameborder="0"></iframe>
>> >                     <ul id="search-facet-list" class="closed"
>> tabindex="0">
>> >                                             <li class="handmade
>> > selected">Handmade</li>
>> >                                             <li
>> class="vintage">Vintage</li>
>> >                                             <li
>> class="supplies">Supplies</li>
>> >                                             <li class="all">All
>> Items</li>
>> >                                             <li
>> class="people">People</li>
>> >                                             <li class="shops">Shops</li>
>> >                                         </ul>
>> >                 </div>
>> >                 <div class="input-group">
>> >                     <input autocomplete="off" value=""
>> > name="search_query" id="search-query" class="text" tabindex="0"
>> > type="text"><div style="top: 42px; left: 0px; width: 369px; display:
>> > none;" id="search-suggestions"></div>
>> >                     <button id="search_submit" name="search_submit"
>> > type="submit">
>> >                         Search
>> >                     </button>
>> >                 </div>
>> >                 <input value="handmade" name="search_type"
>> > id="search-type" type="hidden">
>> > </form>
>> >
>> > 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
>> >  => #<Watir::Browser:0x101a9ebb8 url="about:blank" title="about:blank">
>> > 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
>> >  => "<label for=\"search-query\">Handmade</label>"
>> > ruby-1.8.7-p334 :007 > b.label(:for => 'search-query').click
>> >  => []
>> > ruby-1.8.7-p334 :008 > b.li(:text => 'Supplies').html
>> >  => "<li class=\"supplies\">Supplies</li>"
>> > 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
>> >  => #<Watir::Browser:0x101a9ec08 url="about:blank" title="">
>> > 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.
>>
>> [email protected]
>> http://groups.google.com/group/watir-general
>> [email protected]<http://groups.google.com/group/watir-general%[email protected]>
>>
>
>  --
> Before posting, please read http://watir.com/support. In short: search
> before you ask, be nice.
>
> [email protected]
> http://groups.google.com/group/watir-general
> [email protected]
>

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

[email protected]
http://groups.google.com/group/watir-general
[email protected]

Reply via email to