Ruby click on a flash/swf file

Hi All,
I am new to ruby and i have an assignment to click on a banner of a
webpage which is a shockwave file.
Can you please let me know what i need to use in ruby to click on a swf
When i click i get redirected to a new webpage and that is where i want
to land using ruby.

your help will be much appreciated