hi,
this is simplest code that you can have:
start_jsalert_clicker
$ie.button(:name,[some_name]).click
read_js_popup_contents
# This only clicks ok button. Change teh path accordingly.
def start_jsalert_clicker
Thread.new{ system(rubyw
hi,
please help!!
its very urgent
Regards
Shalini Gupta
On 4/26/07, SHALINI GUPTA [EMAIL PROTECTED] wrote:
HI,
Sorry..its also not working.
i have done all the things told by u..
but i think push_alert_button doesnt work.
as i was using wincliker class to handle popup..
that time popup was
Hi,
Did you get any exceptions, errors etc while using the code I provided?
Regards,
Angrez
On 4/26/07, SHALINI GUPTA [EMAIL PROTECTED] wrote:
hi,
thanks!!
i have just started using watir.I am very new to it.
should i install autoit seperately...i think it is installed automatically
with
On 4/26/07, SHALINI GUPTA [EMAIL PROTECTED] wrote:
HI ALL,
Please help!!
its urgent!!
Regards
Shalini
On 4/26/07, SHALINI GUPTA [EMAIL PROTECTED] wrote:
-- Forwarded message --
From: SHALINI GUPTA [EMAIL PROTECTED]
Date: Apr 26, 2007 1:05 PM
Subject: Re: [Wtr-general]
hi,
Did notepad or wordpad gets open when you execute the script? I hope you
changed the path in your script before executing the script that I provided?
Can you post the contents of command prompt that you get?
Regards,
Angrez
On 4/26/07, SHALINI GUPTA [EMAIL PROTECTED] wrote:
On
hi,
have i used correctly or not
..
Regards
Shalini gupta
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
Hi,
Few more questions:
1. Did pop up gets clicked or not?
2. If notepad or wordpad opens what are its contents?
3. Can you post the code for modified WindowHelper.rb file?
Regards,
Angrez
On 4/26/07, SHALINI GUPTA [EMAIL PROTECTED] wrote:
HI,
YES I HAVE MODIFIED THAT
REGARDS
SHALINI
On
HI,
POPUP DOENT CLICK
NOTHING IN NOTEPAD.
WINDOWHELPER.RB:--
class WindowHelper
def initialize( )
@autoit = WIN32OLE.new('AutoItX3.Control')
end
def push_alert_button
@autoit.WinWait Windows Internet Explorer,
text = @autoit.WinGetText Windows Internet Explorer
Hi,
Few mistakes:
1. You are adding text to file called popup.txt and reading from test.txt
def push_alert_button
@autoit.WinWait Windows Internet Explorer,
text = @autoit.WinGetText Windows Internet Explorer
file = File.open(c:\\popup.txt, w)
file.puts text
hi,
i have made all the changes told by u..
as:-
in my ruby file :-
def start_jsalert_clicker
Thread.new{ system(ruby \c:\\PSC\\jscriptExtraAlert.rb\) }
end
# read file contents
def read_js_popup_contents
file = File.open(c:\\test.txt)
lines = file.readline
Hi Russ,
Which watir version are you using?
Regards,
Angrez
On 4/26/07, Russ DeWolfe [EMAIL PROTECTED] wrote:
I get this when I try that solution:
NoMethodError: undefined method `attribute_value' for
#Watir::TableCell:0x2dd8e
f0
___
Wtr-general
11 matches
Mail list logo