views:

47

answers:

2

Is it possible in a website search form to enter in series of searches? I have a list of destinations and would like to see if for each destination the search returns a result or throws an error.

A: 

I suggest you look into Watir - it allows automating the browser(possibly only IE, not sure) and is the tool to use for what you've described. You can go to a specified site, refer to HTML elements on the page and set their values (click buttons, fill search forms, etc).

It's also been ported into several other languages, such as #C (WatiN) and Java (WatiJ) and probably more.

akapulko2020
A: 

My tool of choice for a problem like this would be to use Cucumber in combination with Capybara.

Cucumber is a nice DSL for writing out tasks such as these, although isn't strictly necessary for your problem.

Capybara is a browser simulator/driver wrapper for automated interaction with a website.

Both are well documented.

Glenjamin