You can generally automate pretty much any action a user would take as
long as it is against basic HTML + Javascript.  (and not something
highly proprietary such as Flash)   Oh by the way, as far as I know,
Facebook is one of the companies that has been using Watir to drive
test automation for their own internal testing, so from a capability
standpoint I doubt theres an issue.

See the tutorials here to get started  
http://wiki.openqa.org/display/WTR/Tutorial

However when it comes to automating actions against specific sites,
unless you are being paid to test the site, you need to check the user
agreemnt or Terms of Use to see what it says about automated access of
the site.  Some sites forbid it outright, and others restrict you to
using a specific published API.

In Particular the ToS for Facebook says this:
"You will not ... or otherwise access Facebook, using automated means
(such as harvesting bots, robots, spiders, or scrapers) without our
permission."

And Twitters ToS says:
"You may not do any of the following while accessing or using the
Services:... (iii) access or search or attempt to access or search the
Services by any means (automated or otherwise) other than through our
currently available, published interfaces that are provided by Twitter
(and only pursuant to those terms and conditions), unless you have
been specifically allowed to do so in a separate agreement with
Twitter.

Now technically, since watir would be driving their 'published' web
UI, it might be legal via a bit of a technicality, but I think I'd
still want to get permission if I was you.

You will generally also find that both here and on StackOverflow, they
most users will not render assistance to someone if it would be
breaking the Terms of Service for a site unless we have good reason to
believe their actions are authorized by the site or that they are
employed by the company (e.g. in this instance, facebook or twitter).

On Oct 16, 4:31 am, ahmed elsharkasy <[email protected]>
wrote:
> how can i use watir to test login via facebook or twitter in any
> website?

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