I developed the program on Windows platform, for our project only
support IE.
The program works fine on Windows platform.
Because other test cases are on Linux platform, we want to integrate
all the test cases on the same platform.
I need to revoke the program from Linux remotely, and I install
Hi,
Having trouble creating a frame object before a particular page
contains the object.
The framework contains an object repository which contains all the
objects and methods that act on a particular page.
Using textfields, links, buttons etc work fine, because this is not
checked on the page
Hi,
Does anyone already have a powerpoint presentaion about Watir (what is
it, hopw does it work, benefits, etc)?
I will give a basic Watir training to my colleagues and want to create
a presentation, but if there is already a good one around, I can use
that one.
Cheers,
John
Hi.
Actually, it doesn't matter if () or {} is used. You just have to use
some non-alpha character - for example, let's say that you want to add
elements like {one {two {three then you cannot use %w{}, but it would
be wise to use %w() instead.
Anyway, here are some examples:
irb(main):004:0
Hi All,
I need to click a link which is out of focus in the page. I want the
particular link or image to be visible and then click it. Can any body
throw some light on it
Thanks,
Venkatesh
--~--~-~--~~~---~--~~
You received this message because you are
You have some xml file opened in IE? Why not just download it and
handle it as a regular XML, instead of trying to manipulate it with
Watir?
On Mar 31, 9:13 am, Angrez Singh ang...@gmail.com wrote:
Thanks Vikas, but my problem is not related to reading XML in ruby.
Hi,
Having trouble creating a frame object before a particular page
contains the object.
The framework contains an object repository which contains all the
objects and methods that act on a particular page.Using textfields,
links, buttons etc work fine, because this is not checked on the page
As I understand, then onfocus event is require prior clicking
something? So for example, if uses clicks with mouse, then onfocus
event is triggered before actual click?
Is this the reason, why at the moment I have to do something like this
in my tests to work correctly:
button.click
On Wed, Apr 8, 2009 at 13:19, JArkelen johnvanarke...@gmail.com wrote:
Does anyone already have a powerpoint presentaion about Watir
I have something:
http://docs.google.com/Present?docid=ddxzzv39_615ggn2m7w4skipauth=true
Željko
--~--~-~--~~~---~--~~
You
Awesome, thanks! New documentation is looking great, by the way!
James
On Apr 7, 7:41 pm, Bret Pettichord b...@pettichord.com wrote:
James wrote:
Also, can I set up different variables in the environment config
table?
For instance, what if I want one environment to be Site A with Login
I am facing a weird problem.
I can start a test job test.rb by WindowsXP task scheduler, but can
not initiate the test job by Windows Vista task scheduler, the test.rb
can be run by double click on Windows Vista Explorer.
Any help will be highly appreciated.
Does anyone have any experience of using overlib with WATiR?
Basically, our application uses overlib to display tooltips for as
long as the mouse hovers over a help image.
I need to check the text of the tooltip that is being returned, but
haven't yet found out how - all the tooltips have
Well done Satish,
Yepper we just gave you some close enuf examples.
Glad you caught on and deconstructed the code to what you needed.
On Apr 7, 3:41 pm, satish spanchumar...@gmail.com wrote:
Thank you Tiffany and SuperKevy,
Both solutions are wonderful. Appreciate your help on this. I had to
Thank you.
On Apr 7, 8:02 pm, KimBrown kimbro...@yahoo.com wrote:
One other way that I figure out how to select a certain cell or button
is to use a freeware capture/playback tool called Script Recorder.
I'll set it to record and click on what I want and the code will
almost always be
Thank you
Satish
On Apr 8, 10:54 am, SuperKevy kpe...@scholarshipamerica.org wrote:
Well done Satish,
Yepper we just gave you some close enuf examples.
Glad you caught on and deconstructed the code to what you needed.
On Apr 7, 3:41 pm, satish spanchumar...@gmail.com wrote:
Thank you
require 'time'
def time_difference(start_time, end_time)
start_time = Time.parse(start_time)
end_time = Time.parse(end_time)
total_time = end_time - start_time
time=Time.local(00:00:00) + total_time
return time.to_s.match(/\d{2}:\d{2}:\d{2}/).to_s
end
puts
Frame object always checked before you can use it.
- Original Message
From: Tony ynot...@gmail.com
To: Watir General watir-general@googlegroups.com
Sent: Wednesday, April 8, 2009 2:30:49 AM
Subject: [wtr-general] Creating Frame objects before a page with a frame exists
Hi,
Having
I grabbed this code from somebody here...this may work (you'll need to
install AutoIt):
# Create a file clicker.rb
require 'win32ole'
begin
autoit = WIN32OLE.new('AutoItX3.Control')
loop do
autoit.ControlClick(Windows Internet Explorer, '', 'OK')
autoit.ControlClick(Security
I forgot to give an update. Here it is.
Tiffany's method worked great.
e.g.) ie.div(:class = 'something', :index = 1)
I just made the index value a variable and incremented it for every
loop iteration.
On Apr 6, 10:11 am, IDIEININIIS ideler.den...@gmail.com wrote:
@George,
Yes they are
We seem to do just this. I haven't looked at it in awhile so I'm not sure if
this is everything. This is in a module.
require 'watir\ie'
require 'watir\contrib\enabled_popup'
# Main method to click a modal dialog button.
def click_modal_button(ie, type='OK', sleep_time=6, timeout=20)
Hi Andrew!
Could you please provide a sample of your code and the error you're
getting?
Thanks!
-Tiffany
On Apr 8, 12:10 pm, andrew.d...@lthree.com wrote:
I am installing on a new machine, and watir fails searcing for its
first element (a frame in this case). The exact code works on many
Perhaps:
@browser.link(:id, 'link_id').fire_event('onfocus')
@browser.link(:id, 'link_id').click
Do you have sample HTML?
On Apr 8, 5:13 am, venky venkatesh...@gmail.com wrote:
Hi All,
I need to click a link which is out of focus in the page. I want the
particular link or image to be
Here is a code snippet.
logon_page.top_frame.contains_text('some text').should_not be_nil
in logon_page.rb I have
def logon_frame
@browser.frame(:id, 'top_frame')
end
alias :top_frame :logon_frame
and I gaurantee that there is a frame with id = 'top_frame'
Fails with
What OS are you on? is there more than one open IE window on your
system or does a second window open when you run the tests?
Environments with 'high security' browser stipulations (vista, server
2008) will not allow a browser to have sessions open within it from
different security zones. I
I can see where the html might have identical format, but if it's
completely identical I don't understand how it would work, unless it
was inside some other container (like a div) that was different..
might be easier if you showed us more of the html, so we could see
like 2 or 3 of these things
As the others have indicated you need to pass the values into the
method, and then do the equivalency test once you are inside.
I defined something like this to do validations for some of my early
scripts where I didn't like using assert or should because they would
stop, and I wanted to run the
On Apr 7, 11:29 am, Bret Pettichord b...@pettichord.com wrote:
Calm down. The original poster asked what do people use.
People should be able to share what they are using, when asked, without
being obliged to provide a tutorial.
I am calm. Although I should have phrased that better. I can
We have to pick our battles.. Sounds like you've thought this one
through and I can't say I'd not make the exact same choice to just
'live with it' given what you've described as being the situation.
Especially if this is old and established code that as you say is not
likely to change (sometimes
Thank you everyone for your comments.
I've gotten watircraft working for me quite well, especially now that
new documentation for it has been posted.
I don't mind short answers to my questions, as long as people don't
mind me asking following up questions if I don't understand what
something
On April 16 and 17, Bret will be teaching Intro to Watir in the
Portland, OR area. We were able to do this thanks to Keith Hamilton
and the good people at Transcore, who offered to host the class at
their facility.
We'd like to hold our next public class soon - in May, or June at the
latest -
Had the same issue on Windows XP test machine here when upgrading
framework to use watir 1.6.2 and Ruby 1.8.6-26
We had windows-pr-0.9.6.gem installed with watir 1.6.2
I upgraded to following gems and it's fine
windows-pr-1.0.2
windows-api-0.3.0.gem
win32-api-1.4.0-x86-mswin32-60.gem
fyi: We
On Apr 8, 5:26 am, Jarmo Pertman jarm...@gmail.com wrote:
As I understand, then onfocus event is require prior clicking
something? So for example, if uses clicks with mouse, then onfocus
event is triggered before actual click?
I don't belive it's 'required' or the .click method would not
In previous versions of watir I used to send 11 characters to a field
that had a maxlimit of 10. This would ensure the server also checked
the parameter and did something sensible (truncate or error message).
The newer version seems a bit safer and ie.text_field (:index,1).set
(01234567890)
Hi, Chuck,
:), to be honest, in my current code, I have the same approach as you have
used before.
In the approach, I can abandon the verify or assert completely. I think it
is not good enough.
Maybe I have to spend some time on Watircraft. Maybe I can make my frame
easier, :).
Thanks.
Wesley
I have a string
obj_url = http://crisp.adoc.xerox.com:8080/docushare/dsweb/Get/
Document-77/
and need to extract 77.
This code works perfect:
handle = /.*Document-(.*)\//.match( obj_url )
puts handle[ 1 ] # returns 77
but this code does not work:
obj_type = Document
str = '.*' + obj_type
When using regular expression with a variable, the syntax is /#{str}/
On Wed, Apr 8, 2009 at 9:30 PM, vladimir...@hotmail.com
vladimir...@hotmail.com wrote:
I have a string
obj_url = http://crisp.adoc.xerox.com:8080/docushare/dsweb/Get/
Document-77/
and need to extract 77.
This code
Hi, All,
I have heard that, we can go on performance test, such as load/stress test
by script.
So I would like to study one script language for it.
I think in this great Watir general group, there are many testers going on
performance testing.
Any of you do the performance testing by manual
Our app uses GL. Here's a snippet of a page source:
?xml version=1.0?
?xml-stylesheet href=chrome://global/skin/ type=text/css?
!DOCTYPE window SYSTEM chrome://zviewer/locale/zviewer.titles.dtd
!-- Window as main container--
window id=zvwindow title=Zv VideoGrid
Thanks sir,
the error which i was getting was removed but the script does not
handle popups, so please suggest me a script for handling popups.
On Apr 8, 8:03 pm, Jim Matthews jim_m...@swbell.net wrote:
spike,
The only thing I see right off is that you have:
wsh
Hi
Thnaks for the reply but it isnt working for me.
On Apr 8, 9:24 pm, George george.sand...@gmail.com wrote:
I grabbed this code from somebody here...this may work (you'll need to
install AutoIt):
# Create a file clicker.rb
require 'win32ole'
begin
autoit =
hi,
handle the popup window using autoit.
install autoit software. and use the followinf code
autoit = WIN32OLE.new('AutoItX3.Control')
Opt(WinTitleMatchMode, 3)
autoit.WinWait('Windows Internet Explorer', '', 2)
autoit.WinActivate('Windows Internet Explorer')
autoit.Send('{enter}')
This
Hi
thanks for the reply, i've installed autoIT-v3 software but its not
working.
On Apr 9, 8:40 am, kiran yajamanyam kiranyajaman...@gmail.com wrote:
hi,
handle the popup window using autoit.
install autoit software. and use the followinf code
autoit = WIN32OLE.new('AutoItX3.Control')
I used this code but i'm getting the following error
1) Error:
test_manage_resources(Manageresources):
NoMethodError: undefined method `Opt' for #Manageresources:0x2b697c8
manageresource.rb:25:in `test_manage_resources'
so please suggest some solution...
On Apr 9, 8:40 am, kiran yajamanyam
Hi
Can somebody please help me with handling popups using Watir i'm stuck
with this. I tried many suggestions but it didnt help me.
I'm working on Windows XP and Internet Explorer 7.
somebody suggested me to install autoIt for handling popups so i've
installed autoIT-v3 also.
please please..
missed this piece of code
require 'win32ole'
still if it wont work just comment out Opt(WinTitleMatchMode, 3) code and
try.
If still it wont work please send me the scenario u are testing i will try
and give u the code.
Regards,
Kiran Y
On Thu, Apr 9, 2009 at 9:26 AM, spike
Ya it still didnt work for me
Test Scenario
I'm running on windows platform with IE7
I've to upload a file to the application i'm testing. to do that i'm
login to the application and navigating to the respective page where
i've to upload the file. I'm able to upload the file, upon
successfully
Didn't you just make a thread about this?
On Apr 8, 9:23 pm, spike vinaykumarl...@gmail.com wrote:
Hi
Can somebody please help me with handling popups using Watir i'm stuck
with this. I tried many suggestions but it didnt help me.
I'm working on Windows XP and Internet Explorer 7.
You have to give the exact caption of the window which is appearing as
popup. In your case that caption of the pop up is FILE
UPLOADED SUCCESSFULLY try this code:
autoit = WIN32OLE.new('AutoItX3.Control')
Opt(WinTitleMatchMode, 3)
autoit.WinWait('FILE UPLOADED SUCCESSFULLY', '', 2)
if i'm clicking the OK button manually its going further to do rest
of the operations or els its hung with the popup
On Apr 9, 10:38 am, kiran yajamanyam kiranyajaman...@gmail.com
wrote:
You have to give the exact caption of the window which is appearing as
popup. In your case that caption of
make sure that ur caption is same (Including caps) and if
autoit.Send({'enter'}) is not working try with autoit.Send({'space'})
On Thu, Apr 9, 2009 at 11:10 AM, spike vinaykumarl...@gmail.com wrote:
if i'm clicking the OK button manually its going further to do rest
of the operations or els
i didnt get u
the popup window title is Windows Internet Explorer and the msg
displayed in it is File Uploaded Successfully
which one should i use inthe code..
On Apr 9, 10:38 am, kiran yajamanyam kiranyajaman...@gmail.com
wrote:
You have to give the exact caption of the window which is
sorry chat is disabled in my company...
On Apr 9, 10:38 am, kiran yajamanyam kiranyajaman...@gmail.com
wrote:
You have to give the exact caption of the window which is appearing as
popup. In your case that caption of the pop up is FILE
UPLOADED SUCCESSFULLY try this code:
autoit =
You should use the caption only. Means Windows Internet Explorer only. Use
space than enter
On Thu, Apr 9, 2009 at 11:16 AM, spike vinaykumarl...@gmail.com wrote:
i didnt get u
the popup window title is Windows Internet Explorer and the msg
displayed in it is File Uploaded Successfully
Thank you, ANu. It works.
On Apr 8, 6:40 pm, ANu Gangavaram anuwri...@gmail.com wrote:
When using regular expression with a variable, the syntax is /#{str}/
On Wed, Apr 8, 2009 at 9:30 PM, vladimir...@hotmail.com
vladimir...@hotmail.com wrote:
I have a string
obj_url =
use space i didnt get this..one
On Apr 9, 10:48 am, kiran yajamanyam kiranyajaman...@gmail.com
wrote:
You should use the caption only. Means Windows Internet Explorer only. Use
space than enter
On Thu, Apr 9, 2009 at 11:16 AM, spike vinaykumarl...@gmail.com wrote:
i didnt get u
the
ya but the solutions are not working for me.
On Apr 9, 10:35 am, George george.sand...@gmail.com wrote:
Didn't you just make a thread about this?
On Apr 8, 9:23 pm, spike vinaykumarl...@gmail.com wrote:
Hi
Can somebody please help me with handling popups using Watir i'm stuck
with
Sorry sir even it is not working i've to click it manually to go
further in my test. wat about this autoit i've installed autoit-v3 how
is it related to watir..?
On Apr 9, 10:43 am, kiran yajamanyam kiranyajaman...@gmail.com
wrote:
make sure that ur caption is same (Including caps) and if
57 matches
Mail list logo