Re: [Wtr-general] Is there a way to make file_field.set faster?

2006-11-30 Thread Željko Filipin
On 11/29/06, Željko Filipin <[EMAIL PROTECTED]> wrote: startClicker works double faster than file_field.set. Iit is now even faster (for three seconds) after I removed line with "sleep 3" (when I noticed that comment says that it can be removed). file_field.set needed approximately 10,6 seco

[Wtr-general] how to verify inside loop of ie.link

2006-11-30 Thread usha
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

[Wtr-general] looking for span class

2006-11-30 Thread usha
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?t

Re: [Wtr-general] how to verify inside loop of ie.link

2006-11-30 Thread Nathan
try this I think: item_search = "blah.com" ie.links.each {   |l| tempLink = l   # This line looks for the substring in item_search in the url of tempLink.   # It says, "If [b]not[/b] (item_search is [b]not[/b] part of the string)" - double negative=positive in -   # this case. So really it s

Re: [Wtr-general] how to verify inside loop of ie.link

2006-11-30 Thread Vince
usha, Where to start... Semantics, but you need to give ctr a starting value, otherwise you're adding 1 to nil, which isn't going to fly. Look at your if statement - it is looking at ie.link().exists? for each link on the page. This is going to result in a zero if the link does not appear, and

Re: [Wtr-general] looking for span class

2006-11-30 Thread usha
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/)

Re: [Wtr-general] how to verify inside loop of ie.link

2006-11-30 Thread usha
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://rubyfo

Re: [Wtr-general] looking for span class

2006-11-30 Thread Vince
usha, This is your second (well, first of 2 to be specific) thread asking essentially the same thing. Hopefully my post in the other thread http://forums.openqa.org/thread.jspa?threadID=5543&messageID=15415#15415";>here was helpful, though this post does shed some light on a new angle of your q

Re: [Wtr-general] looking for span class

2006-11-30 Thread Vince
Are you trying to find text, or spans? If you're looking for text, then: search_term = /Blah Links/ ctr = ie.text =~ search_term =~ returns a count of the times the regex matched, so it's perfect for finding instances... If you're looking for the number of spans containing a string, then : ct

[Wtr-general] I want to use Watir to test Firefox and Safari

2006-11-30 Thread Nathan
Hi, I am an experienced developer/tester and have been using Watir for a couple of months now. I have read a lot about Selenium also, and have noted that people are concerned about the need to install Selenium on the server, because it has to be served from the same location as the web page bein

Re: [Wtr-general] I want to use Watir to test Firefox and Safari

2006-11-30 Thread Vince
Nathan, Some support for non-IE browsers built into Watir is on a lot of people's todo list, but at least for now you're going to have to look outside of Watir for a solution here. - Posted via Jive Forums http://forums.openqa.o

Re: [Wtr-general] I want to use Watir to test Firefox and Safari

2006-11-30 Thread Danny Faught
Nathan wrote: > So I guess I can't test firefox or safari with watir. Does anybody know of a > way to accomplish what I wish with JUST Watir? Since you've rejected the port of Watir that works with Firefox, it looks like the answer is that you can't do what you want with Watir. I'm not familia

Re: [Wtr-general] looking for span class

2006-11-30 Thread usha
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?threa

Re: [Wtr-general] I want to use Watir to test Firefox and Safari

2006-11-30 Thread Christian Kreutzer
you should give selenium-rc (remote control) a try. there's no need for Installing components on the system under test and it can be scripted in ruby, python, perl, java and c#. it does handle cross browser testing pretty well... Christian On 11/30/06, Nathan <[EMAIL PROTECTED]> wrote: > Hi, I

Re: [Wtr-general] I want to use Watir to test Firefox and Safari

2006-11-30 Thread Bill Agee
As for trying out FireWatir, you can get a prebuilt copy of the JSSh extension (as well as the most recent installation instructions and code) at the google code site: http://firewatir.googlecode.com/svn/trunk/Installation/ If you use that, you shouldn't need to rebuild firefox. I think you can

[Wtr-general] How can i upload an image when i click browse button(input type=File)

2006-11-30 Thread Dhamodharan
Hi friends, I'm Very new to this watir . i want to know how to upload a file in watir. Please send me some examples... hi yaar.. I'm Damu from India .. Working as aQA. Currently i'm working in WATIR tool. I'm New to this tool . Hi i w

Re: [Wtr-general] How can i upload an image when i click browse button(input type=File)

2006-11-30 Thread Dhamodharan
Hi friends no i have uploaded .. but i'm getting this error The above file is in valid ie.fileField(:name, "avatar").set("damu");:- this was the script i have written - Posted via Jive Forums http://forums.openqa.org/thread

Re: [Wtr-general] I want to use Watir to test Firefox and Safari

2006-11-30 Thread Angrez Singh
Hi Nathan, You can get the code for Firewatir for http://www.code.google.com/p/firewatir/trunk using any sub version client. It works with Firefox 1.5 and above versions. The execution speed which was the problem earlier has been resolved. Now execution speed has improved a lot. Comparable to usi