I'm really sorry, i've tried many things in the code but couldn get a
solution from past 3 days. I've stuck in handling this popups. so
please dont mind, i apologise for it.
On Apr 9, 11:14 am, George wrote:
> What about this neat little script?
>
> ie = Watir::IE.attach(/Watir General/)
> ie.te
Hey Angrez,
I tried, unfortunately, still failed. I wonder if we are using
different system, as titled, I am in Ubuntu, with FF3, jssh0.9. Is any
suggestion for me? or can you tell the internals between firewatir and
jssh and how to debug, since I can build jssh plugin from source code,
so I can
Yes i've used the click() method.
On Apr 9, 11:09 am, kiran yajamanyam
wrote:
> Now I got the problem you are facing. I think in your code u would have used
> click() method just before the code to handle popup. If this is the case ,
> script would not be coming out of click() method and go to n
What about this neat little script?
ie = Watir::IE.attach(/Watir General/)
ie.text_field(:name, "q").set "popups"
ie.button(:name, "qt_g").click
Seriously, though...part of the learning process is doing the
research. You can't expect that an entirely new set of Watir users
are going to magical
Is this the code that is rendered to the browser? Never worked with open GL
just curious.
- Angrez
On Thu, Apr 9, 2009 at 1:55 AM, Jeremy Mordkoff wrote:
> Our app uses GL. Here’s a snippet of a page source:
>
>
>
>
>
>
>
>
>
>
>
>
>
> http://www.w3.org/1999/xhtml"; xmlns="
> http://www.mo
Now I got the problem you are facing. I think in your code u would have used
click() method just before the code to handle popup. If this is the case ,
script would not be coming out of click() method and go to next step. This
happens in a case when when used click method and if a popup appears aft
Hi,
Thanks for the code. I checked it here with the same configuration i.e. same
text it works. Can you try just clicking the "ok" button like this:
ff.startClicker("ok")
- Angrez
ff.startClicker("ok",1,'',"The configuration on this page will resetall the
> active connections, are you sure to s
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
wrote:
> make sure that ur caption is same (Including caps) and if
> autoit.Send({'enter'}) is n
ya but the solutions are not working for me.
On Apr 9, 10:35 am, George wrote:
> Didn't you just make a thread about this?
>
> On Apr 8, 9:23 pm, spike wrote:
>
>
>
> > Hi
>
> > Can somebody please help me with handling popups using Watir i'm stuck
> > with this. I tried many suggestions but it
use "space" i didnt get this..one
On Apr 9, 10:48 am, kiran yajamanyam
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 wrote:
>
> > i didnt get u
> > the popup window title is "Windows I
Thank you, ANu. It works.
On Apr 8, 6:40 pm, ANu Gangavaram 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 = "http://crisp.adoc.
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 wrote:
>
> i didnt get u
> the popup window title is "Windows Internet Explorer" and the msg
> displayed in it is File Uploaded Successfully"
> which one shoul
sorry chat is disabled in my company...
On Apr 9, 10:38 am, kiran yajamanyam
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 = WIN32OLE.new('AutoItX3.Contr
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
wrote:
> You have to give the exact caption of the window which is appearing as
> popup. In your
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 wrote:
>
> if i'm clicking the "OK" button manually its going further to do rest
> of the operations or els its hung with the po
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
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
>
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)
autoit
Didn't you just make a thread about this?
On Apr 8, 9:23 pm, spike 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.
> somebody suggested me to
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 u
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 wrote:
>
> I
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.. he
I used this code but i'm getting the following error
1) Error:
test_manage_resources(Manageresources):
NoMethodError: undefined method `Opt' for #
manageresource.rb:25:in `test_manage_resources'
so please suggest some solution...
On Apr 9, 8:40 am, kiran yajamanyam wrote:
> hi,
>
> handle
Hi
thanks for the reply, i've installed autoIT-v3 software but its not
working.
On Apr 9, 8:40 am, kiran yajamanyam wrote:
> hi,
>
> handle the popup window using autoit.
> install autoit software. and use the followinf code
>
> autoit = WIN32OLE.new('AutoItX3.Control')
> Opt("WinTitleMatch
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
Thnaks for the reply but it isnt working for me.
On Apr 8, 9:24 pm, George 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 = WIN32OLE.new('AutoItX3.Control')
>
> loop
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 wrote:
> spike,
>
> The only thing I see right off is that you have:
>
> wsh WIN32OLE.new('Wscript.Shell')
>
> My guess
Our app uses GL. Here's a snippet of a page source:
http://www.w3.org/1999/xhtml";
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";
zv_minimal_toolbar="true">
How do I go about accessing these ob
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 script
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
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 +'-
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 Ch
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")
On Apr 8, 5:26 am, Jarmo Pertman 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 work at
all, and f
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 mai
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 - so
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 is.
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
On Apr 7, 11:29 am, Bret Pettichord 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 see how
it migh
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
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 d
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 can
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 e
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 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 visible and then click i
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
>
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
other machines.
So is there anything about IE that can cause watir to fail like this?
Andrew
--~--~-~--~~~---~--~~
You received t
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)
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 wrote:
> @George,
>
> Yes they are all divs.
>
> @Tiffan
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 Info
Frame object always checked before you can use it.
- Original Message
From: Tony
To: Watir General
Sent: Wednesday, April 8, 2009 2:30:49 AM
Subject: [wtr-general] Creating Frame objects before a page with a frame exists
Hi,
Having trouble creating a frame object before a partic
spike,
The only thing I see right off is that you have:
wsh WIN32OLE.new('Wscript.Shell')
My guess is that it should be:
wsh = WIN32OLE.new('Wscript.Shell')
That would seem to fit with the error you are getting:
NoMethodError: undefined method `wsh' for #
Jim
On Apr 8, 7:26 am, spike wro
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 time_difference(
Thank you
Satish
On Apr 8, 10:54 am, SuperKevy 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 wrote:
>
>
>
> > Thank you Tiffany and SuperKevy,
>
> > Both solutions
Thank you.
On Apr 7, 8:02 pm, KimBrown 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 generated (it doesn't
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 wrote:
> Thank you Tiffany and SuperKevy,
>
> Both solutions are wonderful. Appreciate your help on this. I had to
> make some changes
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 identi
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.
--~--~-~--~~-
Awesome, thanks! New documentation is looking great, by the way!
James
On Apr 7, 7:41 pm, Bret Pettichord 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
> > A, and
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
button.fire_e
Hi
I'm woking on windows platform and IE7 using "WATIR" I've used the
following code for handling "JavaScript" popup
require 'win32ole'
wsh WIN32OLE.new('Wscript.Shell')
wsh.AppActivate('Windows Internet Explorer')
wsh.Sendkeys('{ENTER}')
but its not working i'm getting the following error.
Great, thanks!
Cheers,
John
On Apr 8, 1:26 pm, Željko Filipin
wrote:
> On Wed, Apr 8, 2009 at 13:19, JArkelen wrote:
> > Does anyone already have a powerpoint presentaion about Watir
>
> I have something:
>
> http://docs.google.com/Present?docid=ddxzzv39_615ggn2m7w4&skipauth=true
>
> Željko
--
Thanks for your help, but I wanted to deal with element in IE. refer
this link:
http://msdn.microsoft.com/en-us/library/ms535918(VS.85).aspx
- Angrez
On Wed, Apr 8, 2009 at 5:43 PM, Jarmo Pertman wrote:
>
> You have some xml file opened in IE? Why not just download it and
> handle it as a regu
Finally i solved the problem by using below code.
Thanks Paul
require 'time'
def time_validation(start_time, end_time)
start_time = Time.parse(start_time)
end_time = Time.parse(end_time)
total_time = end_time - start_time
total_time = Integer(total_time)
total_ti
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 wrote:
> Thanks Vikas, but my problem is not related to reading XML in ruby.
>
--~--~-~--~~~--
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 subscribed
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> %w(
On Wed, Apr 8, 2009 at 13:19, JArkelen wrote:
> Does anyone already have a powerpoint presentaion about Watir
I have something:
http://docs.google.com/Present?docid=ddxzzv39_615ggn2m7w4&skipauth=true
Željko
--~--~-~--~~~---~--~~
You received this message because
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 ,
Am not sure if this is right .. but u could try this ...
start = Time.local(2009,05, 01, 14,03,53)
endtime = Time.local(2009,05, 01, 18,37,46)
(endtime - start)
above will return the number of seconds elapsed
have a look at the Time class
http://www.ruby-doc.org/core/classes/Time.html#M00
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
if
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 i
Hi Friends,
I am a newbie of Ruby. Just i want to validate the time difference.
Please take a look on below details.
start_time = "14:03:53"
end_time = "18:37:46"
total_time = "04:33:53"
above values class is String.
My scenario is to validate, total_time = end_time - start_time
i have bee
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 cy
72 matches
Mail list logo