Re: [Wtr-general] Alert box - hangs
Aha! it worked. with this. wc = WinClicker.new wc.clickWindowsButton("Microsoft Internet Explorer", "OK") Just changed OK to Cancel - which worked and then back to OK and then it worked. Well whatever works!. Thanks to all - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6061&messageID=17075#17075 ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Alert box - hangs
my previous post has the html and the script I have. I am not seeing any errors. Script just hangs till I manually close the Alert. Appreciate any help. Thx - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6061&messageID=17073#17073 ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Alert box - hangs
I'm using IE 6 I registered AutoItX3.dll using regsvr32 Ruby 1.8, Watir 1.5 Alert box title is 'Microsoft Internet Explorer' Thanks - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6061&messageID=17030#17030 ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Alert box - hangs
[u]html -[/u] https://thisway-ui.integ.alder.com/adido/actions/DisplayPIAction.do?awscredential=eJwBYgCd%2FwACkbS%2BiXVqp%%3D%3D&allowBA=false&skipDisplay=true&returnSuccessURL=http%3A%2F%2Fabcd-5101.abba.com%3A8088%2Faccount%2Fdetails%account%2%3Frnd%3D1168464261773%26gid%3D24&awssig=SV3c%2BCyrHcN3l6dlnNpXuhJptt8%3D', 'You will be redirected to blah.com to handle your details. Is this okay?',null);return false;" border="0" name="edit">Edit details [u]ruby sc[/u]ript : ie.button(:name,"edit").click_no_wait wc = WinClicker.new wc.clickWindowsButton("Microsoft Internet Explorer", "OK") # also tried startClicker from the link from my original post #startClicker("OK", 7, "User Input") result is as said above, edit button remains yellow. Nothing clicked on the Alert window. with WinClicker, Alert box appears active but then nothing is clicked. Exits with 0. Thanks - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6061&messageID=17024#17024 ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
[Wtr-general] Alert box - hangs
Hi, I've been trying to click on the Alert box with no success. Tried both methods suggested in the thread below - no luck. http://forums.openqa.org/thread.jspa?threadID=5802&tstart=15 Script hangs till I manually click on the Alert box. The button which triggers the Alert remains yellow in color. Any help is appreciated since I cannot proceed with my tests. Thanks - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6061&messageID=16977#16977 ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] looking for span class
absolutely! with minor typos corrected : ctr = 0 search_term = /Blah Links/ ie.spans.each do |s| if s.text =~ search_term ctr = ctr + 1 end end Thank you - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=5545&messageID=15442#15442 ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] how to verify inside loop of ie.link
Thank you. It works! - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=5543&messageID=15428#15428 ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] looking for span class
Thanks to you my previous issue is resolved. This one I think is different 'cause 'Blah Links' is not a link but text (of span class)displayed on the page. I'm trying to see if this text exists and how many times it occured in the page. tried these & seeing false ie.span(:id, /list/). ie.span(:index,2) ie.span(:title , "Blah Links") Thanks - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=5545&messageID=15427#15427 ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
[Wtr-general] looking for span class
how can I verify if "Blah Links" exists and how many of them. Blah Links: What's This? tried ie.span, ie.link - response was false though exists. Thanks in advance - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=5545&messageID=15418#15418 ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
[Wtr-general] how to verify inside loop of ie.link
Hi, Started Watir last week. Great open source tool. How can I use if inside a ie.link loop i.e., I am looking for n specific links within the page. like below - which results in error! item_search="blah.com" ie.links.each do |l| ans=ie.link(:url,/#{item_search}/).exists? if ans then ctr=ctr+1 end end Thanks - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=5543&messageID=15415#15415 ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general