Jeff Fry wrote:
Happily, setup and teardown are also optional methods for those of us
using Watir. If you don't want something to happen automatically at
the beginning of every run, don't put it in setup. Likewise with
teardown. For functional automation I often don't include these
Bret Pettichord wrote:
Depending on what the rest of your code looks like, this might work, though:
require 'watir'
require 'test/unit'
class Login Test::Unit::TestCase
def setup
@site=$site
@user_name=$user_name
@passwd=$passwd
end
end
I ran
Quite interesting, but I didn't understand few things.
Bret Pettichord wrote:
Using JRuby, we solved the problem in a novel way, by leveraging our
existing WATIR codebase that was used for functional tests. We
grafted a new backend onto WATIR (easier than it sounds, actually)
that talks not
I am trying to access following url for last two days,
but no success.
http://cruisecontrolrb.thoughtworks.com/
Is anybody out here facing same problem.
Thanks,
Manish
___
Wtr-general mailing list
Wtr-general@rubyforge.org
Owen Rogers wrote:
try now. the server needed a reboot.
cheers,
owen.
Thanks all.
-Manish
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
mihai wrote:
nobody can help me?
Did you try solution posted by me?
reproduced here---
This should work.
ie.area(:href, /digit\(4\)/).click
For accessing the operators you will have to change the regexp and you
are done.
---
-Manish
This should work.
ie.area(:href, /digit\(4\)/).click
For accessing the operators you will have to change the regexp and you
are done.
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
Hi All,
This particular mail is targeted to the admin of watir-general
forum on openqa.org. This may be known issue, but I observed that the
postings
done using mailing list mail id, does not get reflected in the
forum and many user's are using just forum for discussing the
queries.
Is there any
I think watir 1.4 does not support map and area element.
Try watir 1.5.
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
mihai wrote:
this is the page i want to test:
[http://www.squarebox.co.uk/scalc.html|http://www.squarebox.co.uk/scalc.html]
This should work.
ie.area(:href, /digit\(4\)/).click
For accessing the operators you will have to change the regexp and you
are done.
Question to the list:
On
devya wrote:
But this case
fails after few iteration with following exception
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1164/./watir.rb:1819:in
`method_missing': unknown property or method `readyState'
(WIN32OLERuntimeError)
HRESULT error code:0x80070005
Access is denied.
devya wrote:
Case 2: Fails to set value for the to,subject and mailbody fields after few
iteration.
login
for 1 to 50
sendmail
logout
In this case after sending the first, few mails, it shows the
to,subject,mailbody fields. The exists? test passes for these controls.
However setting
You need to invoke following two code snippets in two different
thread/process.
i.e. You spawn new thread/process and invoke the click handler code and
then in
the main thread execute the click code.
===click code===
ie.button(:value, Download File).click
click handler code=
Manish Sapariya wrote:
Hi All,
I am trying to automate sending mail using gmail. I could
locate the Compose Mail div and make it flash using,
irb(main):100:0 ie.frame(:name,
main).frame(:name,v1).span(:text,Compose M
ail).flash
However,
the click() or fire_event(onclick) does not seem
Željko Filipin wrote:
Are you working for Google, or are you automating Gmail for some other
reason. I am asking because, if you work for Google, you could ask
developers how to click Compose Mail link. I am really interested to
know the answer. Another workaround would be to switch to
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
Hi All,
I am trying to automate sending mail using gmail. I could
locate the Compose Mail div and make it flash using,
irb(main):100:0 ie.frame(:name,
main).frame(:name,v1).span(:text,Compose M
ail).flash
However,
the click() or fire_event(onclick) does not seem to be working.
irb(main):109:0
Željko Filipin wrote:
Take a look at Internet Explorer Developer Toolbar (
http://www.microsoft.com/downloads/details.aspx?familyid=e59c3964-672d-4511-bb3e-2d5e1db91038displaylang=en
Hi,
I am facing same problem in 1.5, not sure if its the same. I had
sent query regarding this on list, but had no replies. It happens
always when I do
goto (www.hotmail.com)
Is there any known bug in 1.5 latest gem?
Any directions so that I can give more inputs to debug problem.
Watir Version:
in place until we get around to a longer
term fix. It's the same cross site scripting frame issue which has
been discussed on this list previously.
-Charley
On 4/13/07, *Manish Sapariya* [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] wrote:
Hi,
I am facing same problem in 1.5
Hi,
I tried searching archives but did not see any issue.
If run this code snippet
---
#includes
require 'watir' # the controller
include Watir
#test::unit includes
require 'test/unit'
require 'test/unit/ui/console/testrunner'
Hi,
Please find attached a script to extract scrap information from orkut
user. What I am seeing is that when I do click on submit button, the
click call never returns. The tracing of the calls reveals that click
function call is spinning because @ie.busy status never becoming false.
I think
Thanks Bret.
It worked.
I would be glad if you can me point to anything that can explain
the root cause of the problem and whats the solution.
Thanks again.
-Manish
Bret Pettichord wrote:
Manish Sapariya wrote:
Please find attached a script to extract scrap information from orkut
user
Hi Ryan,
There is no official build for Linux.
However, few people have ported and changed necessary file to make it
work on MacOS and Linux.
I have modified copy of FireWatir which kind of works on Linux with
prototype code for supporting
clicking on javascript dialogs.
Please let me know if
Hi,
I am trying to automate web management console of our appliance.
I am trying to write a class library using watir which will kind of provide
all functionality which a user can perform using this GUI.
Going step forward I am wrapping this library in unit test to build my
regression tests.
Hi,
Is there any way to keep on running my testsuite if one of my test raises
exceptions which is not handled by the application under test gracefully.
What if i catch all exception in my testing code?
Will test unit report failure for those test cases?
Thanks,
Manish
If I enclose my test code in
begin
rescue
end
the test suite does not report any exception as failure?
Any ideas?
Regards,
Manish
Manish Sapariya wrote:
Hi,
Is there any way to keep on running my testsuite if one of my test raises
exceptions which is not handled by the application under
Hi I have following HTML in one of my frames on my html page.
-
div id=menurightmenu
div align=CENTERAccount name: strongadmin/strong |nbsp;a
href=/analyst/ReLogout.do target=_parentLogout/a/div
/div
--
ie.contains_text(admin) returns me nil.
Does watir support contains_text
Hi,
How do break out of x.times loop.
10.times do
findWindowLike(nil, /^Microsoft Internet Explorer$/, //) {|win|
puts #{win.getClassName}\t#{win.getWindowText}
#p win.getWindowRect
#p win
if(win.getParent().hwnd == $ie.hwnd) then
#p $ie.hwnd,
Thanks,
It did work.
Regards,
Manish
Jeff Wood wrote:
Or, you could use a simple throw-catch pair.
% irb
irb(main):001:0 catch :done do
irb(main):002:1*
irb(main):003:1* 10.times do |x|
irb(main):004:2*
irb(main):005:2* [1,2,3].each do |y|
irb(main):006:3*throw :done if
Hi,
Last few days I have been investigating this and tried all the
dialog related tests in the current watir (1.5) code. None of
the test I tried works if the IE windows is not in focus.
I started digging about how this could be achieved and I came
across few win32 api (getting window handle,
Hi,
I have proof of concept for clicking on javascript dialog boxes in
firefox on linux using
at-spi library. However before I proceed ahead with some more
experiments, I wanted
to investigate the reason of slowness of FireWatir.
1. Is it because of inherent approach of driving firefox using
Hi,
I have not used selenium, but was wondering how is the
javascript dialog support in selenium.
Does watir have upper hand there?
Thanks and Regards,
Manish
On 08/02/2006 01:14 AM, Chris McMahon wrote:
Jason Huggins is a very smart guy: http://www.jrandolph.com/blog/?p=44
for patch quite exactly, but more
understanding of ruby
ole binding will make picture clear.
Thanks anyways.
Regards,
Manish
Bret Pettichord wrote:
On 7/7/06, *Manish Sapariya* [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] wrote:
Hi,
Bret mentioned in one of the posts that in order
Hi All,
Dave provided me following xpi for jssh and FireWatir worked as expected on
- Fedora Core
- Firefox 1.5.0.1.
http://people.mozilla.com/~davel/jssh/jssh-Linux-1.5.0.x.xpi
Thanks to Dave for providing me the xpi.
Currently I could only run links_xpath_test.rb.
I haven't tried any other
Hi,
Bret mentioned in one of the posts that in order for watir to be working,
win32ole ruby bindings needed to be patched.
I was wondering for what kind of patch this was?
If I want my own app to be driven using ole, what kind of patch I might
require to add?
I would appreciate pointers to the
Hi,
Has anyone tried running firewatir on linux?
I went through the code and looks like it wont
run under linux because references to win32ole
and autoit libraries.
Is it expected run under linux by any chance?
What will it take to make it run under linux?
Thanks and Regards,
Manish
Hi Lonny,
thanks for the help. I could run IE with mutliple
user. Can I invoke autoit functions directly from watir script.
I dont want to install autoit, just because I want to use
two apis:
RunAsSet
Run
Thanks and Regards,
Manish
___
Wtr-general
Hi David,
Yes, you are right. it gave me access to all elements in page, as I was
expecting.
However when the page has multiple frames, I have to qualify frames
explicitly,
in order to access all the elements. e.g.
$ie.frame(:name, 'mainFrame').text_fields.length
There is one more
Hi,
I was wondering how watir maintains and creates the list of controls it
sees on a page.
I am not sure whether this functionality is directly provided by the
WebBrowser
control or watir does some magic to get the lists of various controls.
To illustrate
when I say
ie.tables.each { |t|
Hi,
One more question related to this html.
How do I distinguish between the two Add buttons?
Thanks,
Manish
Manish Sapariya wrote:
Hi,
Here is one more html.
--
$ie.frame(mainFrame).table(:id, /tblMain/i).cells.each { |l|
if l.text_field(:name, hostName).exists
Hi,
Is there any workaround or trick know to run multiple
ie to the same server with different user ids?
I need to run same test simultaneously but with different
user credentials. But when I tried to do it expires one
of the users session.
Thanks and Regards,
Manish
and
not working?
David
Manish Sapariya wrote:
I get following error when I run my script. However when I run script with
the defaulting function alone, it works fine.
Any ideas? Has anyone run into this kind of issue.
Please let me know if you need more details to help.
---
W, [19-May-2005
Pettichord wrote:
On 5/20/06, *Manish Sapariya* [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] wrote:
W, [19-May-2005 16:15:24#3268] WARN -- : frame error in
waitreadyState
OLE error code:0 in Unknown
No Description
HRESULT error code:0x80070005
Access
(:text,
/schedule/i).click
break;
# end
End
}
i = i + 1
end
Hope this helps,
--Mark
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Manish Sapariya
Sent: Thursday, May 18, 2006 4:58 AM
To: wtr-general@rubyforge.org
Subject: [Wtr-general
I get following error when I run my script. However when I run script with
the defaulting function alone, it works fine.
Any ideas? Has anyone run into this kind of issue.
Please let me know if you need more details to help.
---
W, [19-May-2005 16:15:24#3268] WARN -- : frame
Hi,
Please find attached the html which I need help with.
It has table of searches which has actions like edit,view,schedule
attached with them.
I want to write a method which takes search name and schedules it.
The logic I have used is:
---
$ie.frame(mainFrame).cells.each {
Hi,
In the attached html code, I have two tables in 2nd Frame.
There is a link in first table Create New Policy. I cannot
click on this link by
$ie.frame(mainFrame).link(:text,Create New Policy).click.
However, the link in 2nd table can be clicked when I say
$ie.frame(mainFrame).link(:text,
are what
make it a link.Using Watir 1.5, this will work:
$ie.frame("mainFrame").cell(:text,"Create New Policy).clickBret
On 5/17/06, Manish
Sapariya [EMAIL PROTECTED] wrote:
Hi,In
the attached html code, I have two tables in 2nd Frame.There is a link
in first table "C
There was thread but I cant find it in archives...
Could somebody please tell me how do I run code checkout
from SVN
I am not sure what Path varibale i need to change...
Thanks,
Manish
___
Wtr-general mailing list
Wtr-general@rubyforge.org
No, I use thunderbird.
Its just last two days I started recieving multiple mails.
Regards,
Manish
On 02/24/2006 01:23 PM, Zeljko Filipin wrote:
No. Are you using Outlook?
On 2/24/06, Manish Sapariya [EMAIL PROTECTED] wrote: Is everybody getting
multiple mails for one post like me? Thanks
for
sorting.
On 2/24/06, Manish Sapariya [EMAIL PROTECTED] wrote: No, I use
thunderbird. Its just last two days I started recieving multiple mails.
Regards, Manish
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo
Is everybody getting multiple mails for one post like me?
Thanks,
Manish
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
and code.
On 2/16/06, *Manish Sapariya* [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] wrote:
Hi,
I have a table, which has few columns with simple
text and few columns with links.
I want to do a search on text columns, and click in
the link for one of the column for a given row
Hi List,
I need to login to unix box and carry out some task before proceding
with my test.
I could find rexpect module but it seems that works only on
*nix and not on windows.
I am not sure whether rexpect can work on windows. Can somebody
confirm? If rexpect is not the way, what would be
I tried installing and running damagecontrol, but it crashes. I am no
Ruby expert and could not figure out whats exactly wrong?
Anywasy,
Is project alive?
The project does n't have active mailing list. No messages since April.
Has anybody working installation, I wanted to try out to see how
I
Could you please more info on this.
How does exactly mouse over event will be generated.
I dont see any of the links seen in view source file.
When I do show_all_objects it hardly gives me any object info.
What are other javascript event?
Thanks for all help.
Manish
On 11/16/2005 09:36 PM, Jeff
Nope,
I still get the same error.
Note that script runs fine.only at the end it throws this error.
Regards,
Manish
On 11/16/2005 03:21 PM, Sathya Shankar wrote:
Hi
[a href=/ym/Logout?YY=77101YY=77101 target=_topSign Out/a,
Here the , seems to be causing the problem. So in your script
Here is how got read of my dialog box
Main script-
# set a variable
def execute_and_click_dialog(extra_file, block)
Thread.new { system(rubyw
\#{$mydir}\\#{extra_file}.rb\) }
block.call
end
$ie=Watir::IE.new
..
..
..
Hi list,
I have a app which has multiple links on same page with same
name. However each of this link is associated with one more
link which identifies them uniquely. To be very specific its
the page has list of records which I can edit or delete. The
links for edit/delete have same name, but
I couldn't get away with the dialog box popped up by my application.
I tried autoit but could not get it working. Even tried simple send_keys()
function but was not sure whether it was sending the key event to right
window.
The dialog box is not javascript dialog. Developer says it is dialog
61 matches
Mail list logo