Re: [Wtr-general] Encrypt password

2007-01-16 Thread Walter Kruse
It's not really encryption but rot13 will obfuscate text - only for the untrained eye. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Maloy kanti debnath Sent: 17 January 2007 09:36 AM To: wtr-general@rubyforge.org Subject: [Wtr-general] Encrypt password

[Wtr-general] Encrypt password

2007-01-16 Thread Maloy kanti debnath
Hi All, I have been working on watir for the past one week .I just wanted to know how do i encrypt password in watir,please let me know asap.thanks for ur help regards maloy - Posted via Jive Forums http://forums.ope

Re: [Wtr-general] ignoring the SELECT option

2007-01-16 Thread Jared Quinert
If you're happy for the first item never to be selected, then it should just be: # Pick randomly from the number of items in the list, without "SELECT". # Add 1 to ensure the first item (SELECT) is never selected. item_number_to_select=(rand(variable.length-1)) + 1 ie.select_list(:name, "ctl

[Wtr-general] ignoring the SELECT option

2007-01-16 Thread sarita
In a combobox, first option is 'SELECT' for user convenience. Each time the test is run, a random option is selected from the combobox. For that I used the following code: variable = ie.select_list( :name,"ctl00$ContentPlaceHolder$ddlClientList").getAllContents ie.select_list(:name, "ctl00$Con

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

2007-01-16 Thread Bret Pettichord
Željko Filipin wrote: > Is there a way to make file_field.set faster? > > I have noticed that this is the slowest part of my tests. It takes > about 10 seconds to set file field. I have read that it can not be set > directly because that would be security issue, but I wonder what I > could do to

Re: [Wtr-general] modal_dialog not working in 1.5.1.1136, ruby 1.8.4

2007-01-16 Thread Bret Pettichord
John Lolis wrote: > Is there a way for Watir when its first load to check your version or ruby, > if AutoIt is loaded and if things aren't as they should be spit out a warning? I'm not quite sure what you asking. 1. Is it possible to for Watir to check your ruby version and autoit and other stuf

Re: [Wtr-general] modal_dialog not working in 1.5.1.1136, ruby 1.8.4

2007-01-16 Thread Bret Pettichord
Željko Filipin wrote: > Is 1.8.2 recommended Ruby version for Watir? I really do not need the > newest Ruby, but I would like to use the newest Watir. So, is there a > Ruby version that you would recommend (in order for all Watir methods > to work)? I recommend using 1.8.2. However, any version

Re: [Wtr-general] modal_dialog not working in 1.5.1.1136, ruby 1.8.4

2007-01-16 Thread John Lolis
Adding to what Zeljko said, Is there a way for Watir when its first load to check your version or ruby, if AutoIt is loaded and if things aren't as they should be spit out a warning? - Posted via Jive Forums http://forums.openqa.

Re: [Wtr-general] storing values of table cell

2007-01-16 Thread Željko Filipin
On 1/16/07, VIKASH KUMAR <[EMAIL PROTECTED]> wrote: Is there is a way to store all the values in some variable, like day=01/16/2007, month=Jan/2007, year=2007, status=13, value=open. Hi Vikash, You already have stored that values to variable, you have named it row. This is snippet from my irb

Re: [Wtr-general] problem with attaching new window ???

2007-01-16 Thread Željko Filipin
If you click a link that looks like this text it will open new browser window. So, this code will return string "_blank" if your link will open page in new browser irb(main):009:0> ie.link(:text, "text").attribute_value("target") => "_blank" This will probably work only with watir 1.5. You ca

Re: [Wtr-general] Handling verification codes (shown as img), used to prevent automation

2007-01-16 Thread Željko Filipin
On 1/16/07, sarita <[EMAIL PROTECTED]> wrote: In most web applications during user registration, verification codes shown as images, are asked to enter. And this is done exactly to prevent machines from entering verification code. :) There is still no way for a computer to recognize what code

Re: [Wtr-general] Handling verification codes (shown as img), used to prevent automation

2007-01-16 Thread gdx
hi, sorry for my english. I think '#' is not use for making the 'image code', so we can do this : i = 0 while i == 0 ReadTextField = ie.fieldYouWant.text if ReadTextField.match(/.*#$/) i == 1 end end So your script wait while y'ou ve set your code and a '#' to finish. You've just

Re: [Wtr-general] modal_dialog not working in 1.5.1.1136, ruby 1.8.4

2007-01-16 Thread Željko Filipin
On 1/15/07, Bret Pettichord <[EMAIL PROTECTED]> wrote: The modal_dialog code is not supported with Ruby 1.8.4. Or more specifically, the win32ole changes that we made to support modal dialogs only work with Ruby 1.8.2. Bret, Is 1.8.2 recommended Ruby version for Watir? I really do not need t

[Wtr-general] Handling verification codes (shown as img), used to prevent automation

2007-01-16 Thread sarita
In most web applications during user registration, verification codes shown as images, are asked to enter. How to handle this situation? I guess we can handle this situation by making watir wait till the verification code is entered manully by the user. But how to implement it, please suggest.

Re: [Wtr-general] get index of element

2007-01-16 Thread Luke
I found solusion eg. for links it would be ie.show_links(), this method displayed list which contains such details like index of each link ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] get index of element

2007-01-16 Thread gdx
hi, sorry for my english i'm beggining to work with watir one weak ago, so maybe i dont know the solution But, let me show how i do this : with this : i = 0 ie1 = IE.attach(:url, 'http://appli/main.jsp') ie1.frame("moduleFrame").links.each { |l| puts (i+=1).to_s ; puts l.to_s } You ha

[Wtr-general] get index of element

2007-01-16 Thread Luke
is it possible to get index of element? eg. is there a method which does logic like this ie.link('name').getIndex() Luke ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Two queries in Watir

2007-01-16 Thread gdx
hi, sorry for my english 2) if you use or method who write directly in console, you can show log directly in the console where you have run your program or in your editor if you use Scite or an other... You can write in a text file like this : f = "c:\\file.log" fl = File.new(f,"a+") fl.puts(

Re: [Wtr-general] problem with attaching new window

2007-01-16 Thread gdx
Hi, sorry for my english. Maybe before click to the link, you can parse the string 'href' to know if this will be a popup or not. at least, we have 3 type of Links : 1)href:=http://appli:2073/contact.html 2)href:=javascript:goToMainMenu() 3)href:=javascript:window.open('http://appli:

[Wtr-general] problem with attaching new window ???

2007-01-16 Thread Maloy kanti debnath
Hi, I am only one week old to this tool and i have one major doubt . I have a task of checking whether each of the links in a web page goes to the correct page or not when clicked. The basic idean is to move the mouse cursor over a link present in the page, get the 'intended destination weblink

[Wtr-general] problem with attaching new window

2007-01-16 Thread Maloy kanti debnath
Hi, I am only one week old to this tool and i have one major doubt . I have a task of checking whether each of the links in a web page goes to the correct page or not when clicked. The basic idean is to move the mouse cursor over a link present in the page, get the 'intended destination web

Re: [Wtr-general] Change in email id for mailing list

2007-01-16 Thread Željko Filipin
On 1/16/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Could you please send me these mails on [EMAIL PROTECTED], as this current id i.e. [EMAIL PROTECTED] is no longer going to be used by me. Hi Manjiri, You will have to change it yourself at http://rubyforge.org/mailman/listinfo/wtr-gen