Did you cut and paste the code into your message, or did you retype it?
 
---Michael B.


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of saud aziz
Sent: February 23, 2006 12:10 PM
To: [email protected]
Subject: Re: [Wtr-general] Script hangs and does nothing

Bret, I am using the one provided at: http://rubyforge.org/frs/download.php/5677/watir-1.4.1.exe

Paul and Michael, i don't know where that space is coming from, it sure doesn't appear in the script that i have.

On 2/23/06, Michael Bolton <[EMAIL PROTECTED] > wrote:
Leave out the spaces after the open single quotes.
 
---Michael B.


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of saud aziz
Sent: February 22, 2006 12:14 PM
To: [email protected]
Subject: [Wtr-general] Script hangs and does nothing

Hi guys,

When i try to run the following script, it just hangs and never clicks through the respective image buttons on site. Can someone run and tell me if it works for them? Or how i could possibly modify it to make it run? Another thing noticeable is that when you run this from command prompt, it sometimes doesn't even display the buttons that you are supposed to click on at all. So for instance on page ' http://www.seattlesymphony.org/symphony/buy/subs/newsub/index.aspx ' you might not find button that says get started and you can make it appear only if you press refresh/reload for browser.

I am running latest version of Watir and Ruby available to General Public. Any help is much appreciated.

require 'watir'
include Watir
require 'test/unit'
class TC_recorded < Test::Unit::TestCase
    def test_recorded
        ie = IE.new
        ie.goto('https://www.seattlesymphony.org/')
        #ie.link(:url, ' http://www.seattlesymphony.org/symphony/buy/subs/').click
        #ie.goto('_javascript_:bakeCookie()')
        #ie.button(:alt, 'New Subscription').click
        ie.goto(' http://www.seattlesymphony.org/symphony/buy/subs/newsub/index.aspx')
        ie.image(:name, 'template:ib_GetStarted').click
        ie.goto(' http://www.seattlesymphony.org/symphony/buy/subs/newsub/package.aspx?id=1')
        ie.goto('http://www.seattlesymphony.org/symphony/buy/subs/newsub/detail.aspx?id=150' )
        ie.button(:alt, 'Select This Series').click
        ie.radio(:name, 'Section','73').set()
        ie.button(:alt, 'Add This Series To My Cart').click
        ie.button(:alt, 'Browse Series').click
        ie.goto('http://www.seattlesymphony.org/symphony/buy/subs/newsub/alt/package.aspx?id=2' )
        ie.goto(' http://www.seattlesymphony.org/symphony/buy/subs/newsub/alt/categories.aspx')
        ie.goto('http://www.seattlesymphony.org/symphony/buy/subs/newsub/alt/package.aspx?id=3' )
        ie.link(:url, 'http://www.seattlesymphony.org/symphony/buy/subs/newsub/alt/categories.aspx').click
        ie.goto('http://www.seattlesymphony.org/symphony/buy/subs/newsub/alt/package.aspx?id=2' )
        ie.goto(' http://www.seattlesymphony.org/symphony/buy/subs/newsub/alt/detail.aspx?id=176')
        ie.button(:alt, 'Select This Series').click
        ie.radio(:name, 'Section','62').set()
        ie.button(:alt, 'Add This Series To My Cart').click
        ie.button(:alt, 'Continue To Next Step').click
   end
end

Any help is much appreciated. obviously it is not even complete script, but if you can get past 'ie.button(:alt, 'Select This Series').click'  this step, then it would be great to know. For me it just hangs and does nothing, no errors, nada.





--
Saud Aziz

"Whenever you find yourself on the side of the majority, it is time to pause and reflect." - Mark Twain




_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general




--
Saud Aziz

"Whenever you find yourself on the side of the majority, it is time to pause and reflect." - Mark Twain



_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to