some of your ie.goto(...) have spaces before the http 
like ' http://...'
For me, that causes the browser to go to a search page

Paul
Content-Type: multipart/alternative; 
        boundary="----=_Part_8777_7782702.1140663863455"


------=_Part_8777_7782702.1140663863455
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Are you running 1.4.1 or HEAD (the tarball)?

On 2/22/06, saud aziz <[EMAIL PROTECTED]> wrote:
>
> 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? Anot=
her
> thing noticeable is that when you run this from command prompt, it someti=
mes
> 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 on=
ly
> 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 =3D IE.new
>         ie.goto('https://www.seattlesymphony.org/'<https://www.seattlesym=
phony.org/%27>
> )
>         #ie.link(:url, 'http://www.seattlesymphony.org/symphony/buy/subs/=
').click<http://www.seattlesymphony.org/symphony/buy/subs/%27%29.click>
>         #ie.goto('javascript:bakeCookie()')
>         #ie.button(:alt, 'New Subscription').click
>         ie.goto('http://www.seattlesymphony.org/symphony/buy/subs/newsub/=
index.aspx'<http://www.seattlesymphony.org/symphony/buy/subs/newsub/index.a=
spx%27>
> )
>         ie.image(:name, 'template:ib_GetStarted').click
>         ie.goto('http://www.seattlesymphony.org/symphony/buy/subs/newsub/=
package.aspx?id=3D1'<http://www.seattlesymphony.org/symphony/buy/subs/newsu=
b/package.aspx?id=3D1%27>
> )
>         ie.goto('http://www.seattlesymphony.org/symphony/buy/subs/newsub/=
detail.aspx?id=3D150'
>
> <http://www.seattlesymphony.org/symphony/buy/subs/newsub/detail.aspx?id=
=3D150%27>
> )
>         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=3D2'<http://www.seattlesymphony.org/symphony/buy/subs/newsub/alt/package=
.aspx?id=3D2%27>
> )
>         ie.goto('http://www.seattlesymphony.org/symphony/buy/subs/newsub/=
alt/categories.aspx'<http://www.seattlesymphony.org/symphony/buy/subs/newsu=
b/alt/categories.aspx%27>
> )
>         ie.goto('http://www.seattlesymphony.org/symphony/buy/subs/newsub/=
alt/package.aspx?id=3D3'
>
> <http://www.seattlesymphony.org/symphony/buy/subs/newsub/alt/package.aspx=
?id=3D3%27>
> )
>         ie.link(:url, '
> http://www.seattlesymphony.org/symphony/buy/subs/newsub/alt/categories.as=
px').click<http://www.seattlesymphony.org/symphony/buy/subs/newsub/alt/cate=
gories.aspx%27%29.click>
>         ie.goto('
> http://www.seattlesymphony.org/symphony/buy/subs/newsub/alt/package.aspx?=
id=3D2'<http://www.seattlesymphony.org/symphony/buy/subs/newsub/alt/package=
.aspx?id=3D2%27>
> )
>         ie.goto('http://www.seattlesymphony.org/symphony/buy/subs/newsub/=
alt/detail.aspx?id=3D176'<http://www.seattlesymphony.org/symphony/buy/subs/=
newsub/alt/detail.aspx?id=3D176%27>
> )
>         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
>
>

------=_Part_8777_7782702.1140663863455
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Are you running 1.4.1 or HEAD (the tarball)?<br><br><div><span class=3D"gma=
il_quote">On 2/22/06, <b class=3D"gmail_sendername">saud aziz</b> &lt;<a hr=
ef=3D"mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]</a>&gt; wrote:</span><b=
lockquote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, 20=
4, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi guys,<br><br>When i try to run the following script, it just hangs and n=
ever clicks through the respective image buttons on site. Can someone run a=
nd 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 pro=
mpt, it sometimes doesn't even display the buttons that you are supposed to=
 click on at all. So for instance on page '
<a href=3D"http://www.seattlesymphony.org/symphony/buy/subs/newsub/index.as=
px" target=3D"_blank" onclick=3D"return top.js.OpenExtLink(window,event,thi=
s)">http://www.seattlesymphony.org/symphony/buy/subs/newsub/index.aspx</a>'=
 you might not find button that says get started and you can make it appear=
 only if you press refresh/reload for browser.
<br><br>I am running latest version of Watir and Ruby available to General =
Public. Any help is much appreciated.<br><br>require 'watir' <br>include Wa=
tir <br>require 'test/unit' <br>class TC_recorded &lt; Test::Unit::TestCase=
=20
<br>&nbsp;&nbsp;&nbsp; def test_recorded <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp; ie =3D IE.new<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ie=
.goto('<a href=3D"https://www.seattlesymphony.org/%27"; target=3D"_blank" on=
click=3D"return top.js.OpenExtLink(window,event,this)">https://www.seattles=
ymphony.org/'
</a>)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #ie.link(:url, '<a href=
=3D"http://www.seattlesymphony.org/symphony/buy/subs/%27%29.click"; target=
=3D"_blank" onclick=3D"return top.js.OpenExtLink(window,event,this)">
http://www.seattlesymphony.org/symphony/buy/subs/').click</a><br>&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #ie.goto('javascript:bakeCookie()')<br>&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #ie.button(:alt, 'New Subscription'=
).click<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ie.goto('<a href=3D"h=
ttp://www.seattlesymphony.org/symphony/buy/subs/newsub/index.aspx%27" targe=
t=3D"_blank" onclick=3D"return top.js.OpenExtLink(window,event,this)">

http://www.seattlesymphony.org/symphony/buy/subs/newsub/index.aspx'</a>)<br=
>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ie.image(:name, 'template:ib_Ge=
tStarted').click<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ie.goto('<a =
href=3D"http://www.seattlesymphony.org/symphony/buy/subs/newsub/package.asp=
x?id=3D1%27" target=3D"_blank" onclick=3D"return top.js.OpenExtLink(window,=
event,this)">

http://www.seattlesymphony.org/symphony/buy/subs/newsub/package.aspx?id=3D1=
'</a>)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ie.goto('<a href=3D"ht=
tp://www.seattlesymphony.org/symphony/buy/subs/newsub/detail.aspx?id=3D150%=
27" target=3D"_blank" onclick=3D"return top.js.OpenExtLink(window,event,thi=
s)">
http://www.seattlesymphony.org/symphony/buy/subs/newsub/detail.aspx?id=3D15=
0'
</a>)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ie.button(:alt, 'Select=
 This Series').click<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ie.radio=
(:name, 'Section','73').set()<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
 ie.button(:alt, 'Add This Series To My Cart').click<br>&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp; ie.button(:alt, 'Browse Series').click
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ie.goto('<a href=3D"http://w=
ww.seattlesymphony.org/symphony/buy/subs/newsub/alt/package.aspx?id=3D2%27"=
 target=3D"_blank" onclick=3D"return top.js.OpenExtLink(window,event,this)"=
>http://www.seattlesymphony.org/symphony/buy/subs/newsub/alt/package.aspx?i=
d=3D2'
</a>)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ie.goto('<a href=3D"htt=
p://www.seattlesymphony.org/symphony/buy/subs/newsub/alt/categories.aspx%27=
" target=3D"_blank" onclick=3D"return top.js.OpenExtLink(window,event,this)=
">
http://www.seattlesymphony.org/symphony/buy/subs/newsub/alt/categories.aspx=
'</a>)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ie.goto('<a href=3D"ht=
tp://www.seattlesymphony.org/symphony/buy/subs/newsub/alt/package.aspx?id=
=3D3%27" target=3D"_blank" onclick=3D"return top.js.OpenExtLink(window,even=
t,this)">
http://www.seattlesymphony.org/symphony/buy/subs/newsub/alt/package.aspx?id=
=3D3'
</a>)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ie.link(:url, '<a href=
=3D"http://www.seattlesymphony.org/symphony/buy/subs/newsub/alt/categories.=
aspx%27%29.click" target=3D"_blank" onclick=3D"return top.js.OpenExtLink(wi=
ndow,event,this)">http://www.seattlesymphony.org/symphony/buy/subs/newsub/a=
lt/categories.aspx').click
</a><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
ie.goto('<a href=3D"http://www.seattlesymphony.org/symphony/buy/subs/newsub=
/alt/package.aspx?id=3D2%27" target=3D"_blank" onclick=3D"return top.js.Ope=
nExtLink(window,event,this)">http://www.seattlesymphony.org/symphony/buy/su=
bs/newsub/alt/package.aspx?id=3D2'
</a>)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ie.goto('<a href=3D"htt=
p://www.seattlesymphony.org/symphony/buy/subs/newsub/alt/detail.aspx?id=3D1=
76%27" target=3D"_blank" onclick=3D"return top.js.OpenExtLink(window,event,=
this)">
http://www.seattlesymphony.org/symphony/buy/subs/newsub/alt/detail.aspx?id=
=3D176'</a>)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ie.button(:alt, =
'Select This Series').click<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; i=
e.radio(:name, 'Section','62').set()<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp; ie.button(:alt, 'Add This Series To My Cart').click
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ie.button(:alt, 'Continue To=
 Next Step').click<br>&nbsp;&nbsp; end<br>end<br><br>Any help is much appre=
ciated. obviously it is not even complete script, but if you can get past '=
ie.button(:alt, 'Select This Series').click'&nbsp; this step, then it would=
 be great to know. For me it just hangs and does nothing, no errors, nada.
<br><span class=3D"sg"><br><br><br><br clear=3D"all"><br>-- <br>Saud Aziz<b=
r><br>&quot;Whenever you find yourself on the side of the majority, it is t=
ime to pause and reflect.&quot; - Mark Twain<br><br><br><br>
</span><br>_______________________________________________<br>Wtr-general m=
ailing list<br><a onclick=3D"return top.js.OpenExtLink(window,event,this)" =
href=3D"mailto:[email protected]";>[email protected]</a><br>
<a onclick=3D"return top.js.OpenExtLink(window,event,this)" href=3D"http://=
rubyforge.org/mailman/listinfo/wtr-general" target=3D"_blank">http://rubyfo=
rge.org/mailman/listinfo/wtr-general</a><br><br></blockquote></div><br>

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

Reply via email to