Hi all,
I have a Watir 1.4.1 script driving
a performance test against one of my servers, and wanted to multithread
it to allow multiple browsers to run against the server from the same client
machine.
I have a data file 'user.dat' containing
username and password information that I read in and t
Lonny asked:
> Along that line, can anyone answer this for me? A frame object MUST have a
> URL, or the
> frame will be blank. Does anyone know how I can pull that property out of the
> frame? That is,
> something like frame(:name, 'my_frame').url, which would return a url or nil?
Try this...
If you have a web page (ie object named @ie let's say), containing a
frame, which contains another frame, which contains your element, you
would do:
@ie.frame(:id, 'frame1').frame(:id,
'frame2').ECMTestFixture.text_field(:name, "inpListFilter" ).set("adm" )
Of course you can use name or what
Yes, you do need to specify the frame. Try something like: ie.frame('FrameName').text_field(:name, "inpListFilter" ).set("adm" )You should be able to incorporate the FrameName into your 'ECMTestFixture' object.
To see the frames that Ruby/Watir sees, try the following at an
Hi. I am building a test tool to automate navigation through a UI with IE
frames. Text fields, buttons, lists, and web dialog boxes are all targets for
my tool. The examples I see in the watir user guide don't mention frames. I
have tried navigating to a text field, using the user guide example
Yes, I too would be interested in the answers to some of those
questions, as well as any relevant facts Manish has already uncovered
in that area. This is very relevant to some of the things we have been
doing.
Lonny Eachus
==
Subject:
[Wtr-ge
This is where Ruby shines. You will probably need to extend Watir, but
that is easy enough.
Here is show_all_objects from watir.rb:
--
def show_all_objects
puts "---Objects in page -"
doc = document
s = ""
props = ["name", "id", "
>My requirement is that, I want to print some text in 5 times in one text
box like "User name". I want to do with for loops but I'm not able do that.
Give me suggestion if you have any sense about that
require 'watir'
include Watir
ie = IE.start("http://www.google.ca";)
the_field = ie.text_field(:
Well, you can do something like:st = ""5.times do |x| st << "Joe" + x.to_sendie.text_field(:name, 'username').set(st)Results is the text_field called username being set to "Joe0Joe1Joe2Joe3Joe4"
Hope that gives you some direction.Rand.On 8/10/06, Mayank <[EMAIL PROTECTED]
> wrote:My requirement is
I'm not sure I understand your requirement or why you can't do a for loop, here's a quick stab in the dark: ie.text_field(:name, 'user name').set('name' * 5)More information about your situation may get a different and possibly better answer.
-CharleyOn 8/10/06, Mayank <[EMAIL PROTECTED]> wrote:
M
Hey Aidy, The back method does a straight call to ie's GoBack method, and according to the comments throws that exception only if for some reason it can't go back. If it is going back then you might want to swallow the exception and add an assert for an element on the page that you hoped to go b
On 8/9/06, Mayank <[EMAIL PROTECTED]> wrote:
> My requirement is that, I want to print some text in 5 times in one text box
> like "User name". I want to do with for loops but I'm not able do that. Give
> me suggestion if you have any sense about that
C:\ruby\doc\ProgrammingRuby.chm
__
Hi Manish
Yes. I am interested in that code.
Right now I am struck at the Javascript dialog box.
I also tried with various combinations but couldnt succeed.
Thanks
Meghanath
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Manish Sapariya
Sent: Thursday, A
Hello.
I have a problem with a login popup window. I can't set a text (username and
password) into a login window which appear after entering to a site. I tried to
pass it by going directly to url (http://username:[EMAIL PROTECTED]/) but it
doesn't work on IE 6.0.
I try to do it this way:
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 jav
HI,
The version of watir is shown in the err msg below. The browser is
definitely going back to the previous HTML page, yet I
receive this exception:
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1054/./watir.rb:1500:in
`method_missing': GoBack (WIN32OLERuntimeError)
Should I catch the except
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, send
Mark is correct. In the case that he describes, you will need to use 1.5
and do ie.modal_dialog() to attach to it.
Bret
Cain, Mark wrote:
> Do you see this "-- Web Page Dialog" in the title bar of your popup
> pages? If yes then you are dealing with a modal web page and you will
> NOT be able t
My requirement is that, I want to print some text in 5 times in one text box
like "User name". I want to do with for loops but I'm not able do that. Give me
suggestion if you have any sense about that
-
Posted via Jive Forums
htt
19 matches
Mail list logo