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
] how to capture text from popup window
To: wtr-general@rubyforge.org
HI,
No im not getting any exception,error..
but it becomes silent ...like not doing any thing...
just command promt remains open..
nothing happens..
regards
shalini gupta
On 4/26/07, Angrez Singh [EMAIL PROTECTED
] how to capture text from popup window
To: wtr-general@rubyforge.org
HI,
No im not getting any exception,error..
but it becomes silent ...like not doing any thing...
just command promt remains open..
nothing happens..
regards
shalini gupta
On 4/26/07, Angrez Singh [EMAIL
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,
i have tried to write this as
def text(wait_seconds = 1)
# sleep 0.3
autoit = WIN32OLE.new(AutoItX3.Control)
autoit.WinWait(Microsoft Internet Explorer, nil, wait_seconds)
if wait_seconds
s = autoit.WinGetText(Microsoft Internet Explorer)
Hi Shalini,
Just try this code (modified your code a little)
def text(wait_seconds = 1)
# sleep 0.3
autoit = WIN32OLE.new(AutoItX3.Control)
autoit.WinWait(Microsoft Internet Explorer, nil, wait_seconds)
if wait_seconds
s = autoit.WinGetText(Microsoft
Hi Shalini,
Just try this code (modified your code a little)
def text(wait_seconds = 1)
# sleep 0.3
autoit = WIN32OLE.new(AutoItX3.Control)
autoit.WinWait(Microsoft Internet Explorer, nil, wait_seconds)
if wait_seconds
s = autoit.WinGetText(Microsoft
hi Prema,
Sorry it not working..
It is printing 1 in text file.
please help!!
Regards
Shalini Gupta
On 4/25/07, Prema Arya [EMAIL PROTECTED] wrote:
Hi Shalini,
Just try this code (modified your code a little)
def text(wait_seconds = 1)
# sleep 0.3
autoit =
Hi,
As far as I know, clicking some button on Pop up window happens in a
different process (different from current process in which your script is
running). Correct me if I am wrong here?
You can get the text using AutoIt3 and WinGetText method. The only thing you
need to find out is how you
hi,
thanks for reply!!!
but i have used autoit and WinGet Text as:---(with no success)
#- js_dialog.rb -
require 'win32ole'
require 'test/unit'
require 'test/unit/ui/console/testrunner'
#
# Use AutoIt to read and close Javascript dialog windows
#
module JavascriptDialog
#
#
hi,
Thanks for quick reply...
please tell me how can i write output of one method to a file
my method is..
def text(wait_seconds = 1)
# sleep 0.3
autoit.WinWait(WINDOW_TITLE, nil, wait_seconds) if wait_seconds
s = autoit.WinGetText(WINDOW_TITLE)
s
17 matches
Mail list logo