Re: [Wtr-general] stange problem!!!

2007-01-09 Thread liucongying
When does the next version release?
-
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=6044messageID=16941#16941
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


[Wtr-general] how to handle the file download window !

2007-01-09 Thread liucongying
I just click the button which can download files, when I click it, the window 
of file download pop up, how can I control the window to click save or open ,or 
cancle!
-
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=6047messageID=16942#16942
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] How do I click the OK button on a java alert?

2007-01-09 Thread liucongying
ans1 = objAutoit.ControlClick(Microsoft Internet Explorer,'', 'OK') 

the syntax is wrong, what is the ,,'   in (Microsoft Internet Explorer,'', 
'OK')  ?
-
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=5802messageID=16979#16979
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] how to handle the file download window !

2007-01-09 Thread liucongying
This method is not available, my code is below
require 'watir'   # the controller
include Watir
 $ie = IE.new
 test_site = 'http://war3.replays.net/bbs/htm_data/164/0701/1040238.html'
 $ie.maximize
 $ie.image(:index,35).click  #click the download button


so how to handle the event of File Download, Save as?
-
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=6047messageID=16980#16980
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


[Wtr-general] stange problem!!!

2007-01-08 Thread liucongying
when  the ie go to the site which is http://war3.replays.net; or 
http://www.sina.com;, then error displayed. Like that:
  1) Error:
test_rn(TC_rn_suite):
WIN32OLERuntimeError: document
OLE error code:80070005 in Unknown
  Access is denied.

HRESULT error code:0x80020009
  Exception occurred.
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1127/./watir.rb:2592:in `method_m
issing'
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1127/./watir.rb:2592:in `document
'
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1127/./watir.rb:1212:in `check_fo
r_http_error'
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1127/./watir.rb:219
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1127/./watir.rb:217:in `upto'
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1127/./watir.rb:217
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1127/./watir.rb:1740:in `call'
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1127/./watir.rb:1740:in `run_erro
r_checks'
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1127/./watir.rb:1739:in `each'
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1127/./watir.rb:1739:in `run_erro
r_checks'
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1127/./watir.rb:1728:in `wait'
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1127/./watir.rb:1579:in `goto'
E:/Documents and Settings/congying.liu/Desktop/rn.rb:21:in `test_rn'

I just want to know why, I think maybe there are some active control, and how 
to resolve, now I can not continue if i want to test this website!
-
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=6044messageID=16933#16933
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


[Wtr-general] The method of show_links is wrong !!!

2006-12-25 Thread liucongying
verison : watir-1.5.1.1127.gem
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1127/./watir.rb:1813: [BUG] Segmentat
ion fault
ruby 1.8.5 (2006-08-25) [i386-mswin32]
show_links is wrong ,someone can fix ?
-
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=5915messageID=16545#16545
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


[Wtr-general] A strange problem of ie.maximize

2006-12-24 Thread liucongying
I have finished my script,but I met a problem : if I put the $ie.maximize in 
the login page, I login successfully, but cannt click the link; if I put the 
$ie.maximize after  the login page , the script  run normally.
I want to why, I think it is a bug for ie.maximize!!!
-
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=5914messageID=16544#16544
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] how to know the content of a table 's colomn and row

2006-12-22 Thread liucongying
My problem is that the table has sub-table. HTML:
 table
 table
 tr.../tr
   spanPayroll Stucture/spanbr /
 a href=/payroll/payroll/payEntity.doPay Entity/abr /
 a href=/payroll/payroll/payGroup.doPay Group/abr /
 a href=/payroll/payroll/payElementGroup.doElement Group/abr /
  spanPayroll Calendar/spanbr /
a href=/payroll/payroll/entityCalendar.doEntity Calendar/abr /
/table
/table

So how can I handle the problem,to click the link that I want !
-
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=5898messageID=16515#16515
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


[Wtr-general] give a solution fo js popup

2006-12-20 Thread liucongying
I use ruby185-21 and watir-1.5.1.1127.gem, 
I want a solution fo js pop
the web html is  the one in watir \unittests\html ---JavascriptClick.html
the source code:
html
head
titleAlert Test/title
script type=text/javascript
function disp_confirm()
{
testResult = document.getElementById('testResult');
if (confirm(Press a button.)) 
testResult.value = You pressed the Confirm and OK 
button!;
else
testResult.value = You pressed the Confirm and Cancel 
button!;
}
function disp_alert()
{
testResult = document.getElementById('testResult');
alert(Press OK)
testResult.value = You pressed the Alert button!
}
/script

/head
body
form action=get
pThere are two basic methods for bringing up dialogs using 
javascript./p
ul
li
alert(message) -- Display message and OK 
button.br/
input type=button id=btnAlert 
value=alert OnClick=disp_alert(); /
/li
li
confirm(message) -- Display message and OK and 
Cancel buttons.br/
input type=button id=btnConfirm 
value=confirm OnClick=disp_confirm(); /   /li
/ul
pResults of dialogs:/p
input type=text style=width:248px; id=testResult 
value=Test Result /
/form
/body

/html

So i hope someone can give me codes of watir to solve js popup,do not use 
aotoit!
thanks
-
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=5882messageID=16455#16455
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


[Wtr-general] Give a solution fo javascript popup

2006-12-20 Thread liucongying
I use ruby185-21 and watir-1.5.1.1127.gem, I want a solution fo js pop the web 
html is the one in watir \unittests\html ---JavascriptClick.html#12290;
   So i hope someone can give me codes of watir to solve js popup,do not use 
aotoit! thanks
-
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=5883messageID=16456#16456
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


[Wtr-general] how to install watir-1[1].5.1.1127.gem

2006-12-19 Thread liucongying
I am a new watirer,I want to know how to install watir-1[1].5.1.1127.gem
 I have already install ruby185-21 and watir-1[1].5.0.945.exe, I want to 
handle js-popup problem,please help me,thanks
-
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=5851messageID=16363#16363
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general