Re: [Wtr-general] Rarely, watir does not wait till the browser gets loaded fully

2007-03-28 Thread Hrishikesh Jamadagni
Try Sleep  

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of vijay
Sent: Wednesday, March 28, 2007 1:58 PM
To: wtr-general@rubyforge.org
Subject: [Wtr-general] Rarely,watir does not wait till the browser gets
loaded fully

Hello people,

Rarely, Watir starts the execution of a statement before the brwoser gets
loaded fully from the previous step's execution.  What to do in those
situation?  Is there any statement in Watir that will tell its script to
wait for a particular frame or a table before resuming the execution?  Also,
is there a statement in Watir that will make its script wait for a
particular number of seconds?  

Thanks for your time,
Vijay
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general




Mail Disclaimer: This e-mail and any files transmitted with it are confidential 
and the views expressed in the same are not necessarily the views of Synechron, 
and its Directors, Management or Employees. This communication represents the 
originator's personal views and opinions. If you are not the intended recipient 
or the person responsible for delivering the e-mail to the intended recipient, 
be advised that you have received this e-mail by error, and that any use, 
dissemination, forwarding, printing, or copying of this e-mail is strictly 
prohibited. You shall be under obligation to keep the contents of this e-mail, 
strictly confidential and shall not disclose, disseminate or divulge the same 
to any Person, Company, Firm or Entity. Even though Synechron uses up-to-date 
virus checking software to scan it's emails please ensure you have adequate 
virus protection before you open or detach any documents from this 
transmission. Synechron does not accept any liability for viruses 
 or vulnerabilities. The rights to monitor all e-mail communication through our 
network are reserved with us.
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


[Wtr-general] Browsers url

2005-12-24 Thread Hrishikesh Jamadagni








Does any body has a idea how to check
browsers url using watir,



Is the syntax 



assert_equal url(:show, ' http://www.google.co.in/
'), ie.url 



correct??



Regards

hrishi






___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


[Wtr-general] Line no

2005-12-24 Thread Hrishikesh Jamadagni














Does anybody know weather watir have specific
function to go to a specific line no in the program.



Regards

hrishi 






___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] javascript popup

2005-12-18 Thread Hrishikesh Jamadagni
Using WET the pop-up's and alerts can effectively clicked, 

 

Go to the  object reference/modal dialog on the WET website

 

Regards

hrishi  

 

 

 

 

-Original Message-
From: Tolou Taherinia [mailto:[EMAIL PROTECTED] On Behalf
Of Tolou Taherinia
Sent: Sunday, December 18, 2005 9:43 PM
To: wtr-general@rubyforge.org
Subject: RE: [Wtr-general] javascript popup

 

 

im pretty new to both WET and WATIR...however im not sure how to use WET for
this purpose and what to include as the libraries at the top of my test. Do
you have a solution with WATIR for handling popups?

 

thanks a lot...

 

-Original Message-

From: [EMAIL PROTECTED] on behalf of Raghu Venkataramana

Sent: Sat 12/17/2005 10:38 PM

To: wtr-general@rubyforge.org

Subject: Re: [Wtr-general] javascript popup

 

Have you tried the WET add-on. WET has a good support

for popups.

 

Raghu

Tolou Taherinia wrote:

 



 Hi all,



 I have an Microsoft internet explorer alert box that comes up when 

 clicking on a button in my web application and Im unable to click on 

 ok in order to close this alert message.This is the button that 

 invokes the javascript alert.



 ie.frame(TopToolbar2).link(:id,a_History).click



 I have tried almost everything...and any help would be greately 

 apprecitaed...





















___

Wtr-general mailing list

Wtr-general@rubyforge.org

http://rubyforge.org/mailman/listinfo/wtr-general

  



 

___

Wtr-general mailing list

Wtr-general@rubyforge.org

http://rubyforge.org/mailman/listinfo/wtr-general

 

 

attachment: winmail.dat___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


[Wtr-general] url checking

2005-12-11 Thread Hrishikesh Jamadagni











Does any body has a idea how to check
browsers url using watir,



Is the syntax 



assert_equal url(:show, '
http://www.google.co.in/ '), ie.url 



correct??



Regards

hrishi










___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] wait

2005-12-06 Thread Hrishikesh Jamadagni








Hi Mark ,



I went through the code and had following
doubts,



1)What is the use of long Name ? 



2) What is the use of short name?



Sorry if my questions sound too basic,



Thanks for the support 



Regards

hrishij











-Original Message-
From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Cain, Mark
Sent: Monday, December 05, 2005
9:06 PM
To: wtr-general@rubyforge.org
Subject: Re: [Wtr-general] wait



I have had good success
with this, although other claim they have not.



First I create this
method:



 def
startClicker( button , waitTime = 3)


w = WinClicker.new


longName = $ie.dir.gsub(/ , \\ )


shortName = w.getShortFileName(longName)


c = start rubyw #{shortName }\\watir\\clickJSDialog.rb
#{button } #{ waitTime} 


puts Starting #{c}


w.winsystem(c)


w=nil

 end



Then I put this line
right before the button that causes the _javascript_ popup like this:




startClicker(OK , 3)


$ie.button(Submit).click:



That is all there is and
it works pretty much every time. Hope this helps,





--Mark











From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of Hrishikesh Jamadagni
Sent: Sunday, December 04, 2005
10:05 PM
To: wtr-general@rubyforge.org
Subject: Re: [Wtr-general] wait









Hi 



Well
I am stuck with one issue



I
click a submit button which brings up a _javascript_

popup
with the title Microsoft Internet Explorer and with

the
text Zip code should be 5 digit?. The

popup
has one button: Ok.



This
is what i have at the top of my script

require
'win32ole'



Watir
script just hangs there without throwing any

errors.



Regards

hrishi






___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] wait

2005-12-04 Thread Hrishikesh Jamadagni












Hi 



Well I am stuck with
one issue



I click a submit button
which brings up a _javascript_

popup with the title
Microsoft Internet Explorer and with

the text Zip
code should be 5 digit?. The

popup has one button:
Ok.



This is what i have at
the top of my script

require 'win32ole'



Watir script just
hangs there without throwing any

errors.



Regards

hrishi






___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


[Wtr-general] Data parameterization

2005-11-27 Thread Hrishikesh Jamadagni








Hi 



Can we parameterize data using watir ? want
information on the file formats from which watir can access data ,



Can we obtain a set of data from a excel
sheet and fill forms using watir?



Regards

hrishi












___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] if else syntax question

2005-11-25 Thread Hrishikesh Jamadagni








Hi want to click a link in a popup,



If I catch the popup in cache and open it
, it show a .css file 



How do I click a link contained in css
file??



hrishij



-Original Message-
From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Vishal Chavan
Sent: Friday, November 25, 2005
5:59 PM
To: wtr-general@rubyforge.org
Subject: Re: [Wtr-general] if else
syntax question



Hi Polleu,

Not sure if I got your query right, I guess u r
trying to execute the loop thru irb. If thats the case use following statement
to start IRB: 

irb --noreadline

I found that your loop is properly defined. To test I
have assigned some value to i. Here is the code:

i=9
if (i == 4) then
puts 4
elsif (i == 9) then
puts 9
else
puts other
end
U might also rethink to use case instead of if...

Hope this helps,

Vishal
--- [EMAIL PROTECTED] wrote:

From: [EMAIL PROTECTED]
Date: Fri, 25 Nov 2005 13:04:00 +0100 (CET)
To: wtr-general@rubyforge.org
Subject: [Wtr-general] if else syntax question

Hi all,

Im trying to run

if (i == 4) then
$branch_column2[count] = table[i][2].text_field(:index,
1).name.to_s
count += 1
$branch_column2[count] = table[i][2].text_field(:index,
1).name.to_s
elsif (i == 9) then
$branch_column2[count] = table[i][2].select_list(:index,
1).name.to_s
else
$branch_column2[count] = table[i][2].text_field(:index,
1).name.to_s
end

but I always get an error message, regardless on how I organise the if -
else loop.

Would anyone know?



___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general










Join SQAtester.com Community ---
http://www.sqatester.com/testersarea/joinus.htm






___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] How to check maxlength validation for a textfieldusing watir?

2005-11-24 Thread Hrishikesh Jamadagni








Hi 



Let me know if this is the correct medium
to ask doubts,



I have a problem , I want to click a
button a jpg image ,



ie.button(:name,
pc_banner1).click



the given syntax is giving errors, cannot
find the value or name of the button in view scource/html code



how do I click the button?





-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of chaya shetty
Sent: Thursday,
 November 24, 2005 5:42 PM
To: wtr
Subject: [Wtr-general] How to
check maxlength validation for a textfieldusing watir?





Hi,





 I want to write a test case
to check maxlength validation for a text field.





When I try to input a string which exceeds
maxlength into a text fieldusing watir, the text field accepts the
value and also saves it. 





But when I try to manually enter a string that
exceeds maxlength it truncates the excess characters.





How doI handle this??









Enjoy this Diwali with Y! India Click here






___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general