While runnin a WATIR script, i have used the frames
FrameRef = ie.frame(:index, 2).frame(:index, 2)
and i was getting the right output.
when i write this code within a class or say in a method.
while run time, i get Dynamic constant assignment error.
I have tried with this step also...
FrameRef
Hi all,
I tried using all the methods mentioned above (static and dynamic
wait), but still I am not able to work on it.
The Search Result page does not get loaded completely due to which
the ie.image(:src,http://www.makemytrip.com/images/search-for-
flights.gif).click does not get passed and
you start names of variables with Capital letter only if that variable is a
constant. See naming conventions for ruby:
http://www.techotopia.com/index.php/Understanding_Ruby_Variables
- Angrez
On Wed, May 13, 2009 at 11:45 AM, Vicky Goyal vikasrattango...@gmail.comwrote:
While runnin a WATIR
Any one tried producing their own FireWatir logger?
FireWatir doesn't support logging like Watir does. You need to write your
own logger for that. You can add a JIRA ticket for this.
- Angrez
--~--~-~--~~~---~--~~
You received this message because you are
Hi All,
We figured out how to go about it. We just had to replace .click
with .click_no_wait
Hence my script now is
require 'watir'
ie=Watir::IE.new
ie.goto(www.makemytrip.com)
ie.link(:href,http://www.makemytrip.com/international-
flights/).click
Thank you jason,
but i dont know whether they are links or tables (they sometimes
change). I might be able to use decisions to write a routine for each
element type seperately.
Do you know how to do this in Watir?
On May 12, 11:22 pm, jason jason.franklin.sto...@gmail.com wrote:
not sure if
I'm encountering the same issue.
My guess is that the popup comes from iframe.
That might kind of stopped startClicker to locate it?
On May 13, 12:30 am, jason jason.franklin.sto...@gmail.com wrote:
I am on a mac and linux with firefox so i cannot use this Autoitx
thing that everyone seems
Hi John,
Thanks for your solution. But still it does not work the way I want.
Its not capturing the second image with alert error after clicking search
button.
Below is my code.
--
require 'test/unit'
require 'watir'
It looks like you don't have the developer tools installed on Ubuntu, it's
failing to find them while attempting to build the hpricot binary. To
install developer tools:
sudo apt-get install build-essential
*
*Charley Baker
blog: http://blog.charleybaker.org/
Lead Developer, Watir,
And it'll throw that error if you try to assign a value to a constant within a
method. try creating a class variable (e.g., '@@var') instead.
--- On Wed, 5/13/09, Angrez Singh ang...@gmail.com wrote:
From: Angrez Singh ang...@gmail.com
Subject: [wtr-general] Re: dynamic constant assignment
With Watir, browser.goto(www.google.com) won't redirect the way it
will when you type this string in your address bar. There is some
front-end object that is not engaged. I'm wondering if this relates to
your problem.
Bret
Jason N wrote:
Brett, thanks. Unfortunately, but interestingly,
well,
what i understood is that while using a variable in the class or
method, we should always initialize variable name with small caps or
any special character.
i was able to perform with @var and var too..
whereas Var gave the same error..
Thanks for quick answer. This came really handy.
On Wed, May 13, 2009 at 8:54 PM, satish spanchumar...@gmail.com wrote:
I have a text field which has phone number mask (___) ___-.
I have never seen something like that. Can you share a screen shot or link
to the page?
Željko
--~--~-~--~~~---~--~~
You
Can some one tell me why my code here does not work?
It seems to be doing the Send action in the browser URL address area
instead of in the text_field area.
Here is my code..
=
require watir
require win32ole
ie.text_field(:id,
Sure I can, but I am not sure how to upload the picture here. Is there
a way to do it.?
Our site can not be accessed from out side. sorry..
Thanks
Satish.
On May 13, 3:39 pm, Željko Filipin zeljko.fili...@wa-research.ch
wrote:
On Wed, May 13, 2009 at 8:54 PM, satish spanchumar...@gmail.com
as you say
if you have to set number as
123456789
it s typing as 1
2
3
4
Hi Vikas, it does not type any thing since cursor is all the way to
the end. I can see it is trying to type at the end one letter at a
time.
But we want to start typing from the begining..
any thoughts on that.?
Thanks
Satish.
On May 13, 3:52 pm, Vicky Goyal vikasrattango...@gmail.com wrote:
wel,
you need to check the javascript code for that.
There might be some validation for putting a certain type of text.
Chk out that functionality
paste your code here... dont attach screen shot.. may be html code
On May 14, 1:08 am, satish spanchumar...@gmail.com wrote:
Hi Vikas, it does not
Here is my HTML for that
Active Element: [INPUT], Index: [536]
INPUT class=dxeEditArea onkeypress=aspxEKeyPress
('ctl00_contentChildWindow_secUserDetails_subsecUserInfo_txtPhoneNumber_txtMaskTextBox',
event)
where is the text field, on the browser or the windows popup? It the
textfield is on the popup, you are using the browser object to focus. You
should use AutoIt instead.
On Wed, May 13, 2009 at 4:10 PM, satish spanchumar...@gmail.com wrote:
I think I did focus on to text_field using following
text_field is on the browser it self. No popups involved here.
Thanks
Satish.
On May 13, 4:21 pm, Anu Gangavaram anuwri...@gmail.com wrote:
where is the text field, on the browser or the windows popup? It the
textfield is on the popup, you are using the browser object to focus. You
should
The issue I was having had to do with an error on the page within one
of the widgets.
It was a struts error (whatever that is)
Once I removed that widget, it ran without hanging.
On May 7, 4:33 pm, Darin Duphorn dduph...@redbrickhealth.com
wrote:
Have you been to igoogle? Those information
I've added require 'open-uri' -- no result
I've done sudo apt-get install build-essential -- no result
I've hacked roo.rb and commented out require 'roo/google' --
succes!
I couldn't test it completely due to time-issues :( but it looks
good.
I will report my findings end of the week.
23 matches
Mail list logo