As an alternative, could you perhaps persuade your developers to add
an attribute to the areas that would make it easier for you to
identify them (such as and ID or Name?)
This also makes me wonder on the dev side, why we don't support
'title' as a means to identify area's ? is there some
It doesn't make any sense that a change later in the script would
cause a problem with logging in, unless perhaps you had not logged out
the prior user, it was the same browser session, and an active session
still existed?, or there were cookies or some other means by which an
active session was
, and you can do double click over
the row like in the image attachment.
2010/8/13 Chuck van der Linden sqa...@gmail.com
The problem is
a) it makes for unreadable text code, there's no way to tell what
cell it's clicking etc
b) next month, will the xpath be the same?
Are you folks
Just offhand, I'd wager there was more than one link on the page with
class=sWhiteLink , so you'd needed to have added an index value, or
another 'how' in order to uniquely identify the link.
On Aug 12, 1:56 pm, Chan Nguyen atbl1...@gmail.com wrote:
Thanks a lot order,
I got it worked when I
OK so what you have is a link with no text or anything of it's own,
just a 'naked' link, cohabitating in a cell with some text.
At the manual UI level it works because the objects all superimpose
and when someone positions the mouse over the text, they end up
clicking the link
Watir wise, what's
Frames are evil.
Most web 2.0 developers I know try to avoid them like the plague. I
cannot share with you (without lots of censoring) what my web-devs say
about people that still use frames. (well except for the dev from
Russia, he just said 'they should be taken out and shot'.. (Stalin
would
First off, what does 'does not work' mean. what happens? do you get
an error message? if so what is it?
Second, That's an un-ordered list. it's not settable or clear-able.
The.clear method is for things like INPUT type tags such as checkboxes
Third, The example doesn't match your code
Too radical? I don't know.
I agree something better is needed, google groups is not well suited
to a 'support' type of work, there's no good way to track answered vs
unanswered questions, nor which responses ended up being the best
answer.
Even the MSDN forums that MS has are far better, but
The problem is
a) it makes for unreadable text code, there's no way to tell what
cell it's clicking etc
b) next month, will the xpath be the same?
Are you folks using Coolite (EXTJS) tools?
There's probably a better way to identify the place you are trying to
doubleclick. possibly by the
When something works if you enter the commands manually, but fails
when run from script, the most often issue is one of timing, and
allowing for client side javascript or other rendering details to be
processed. Usually all that means is you just need a little time
added between the last working
in some of the details and hitting the search button.
On Aug 11, 7:41 am, Chuck van der Linden sqa...@gmail.com wrote:
When something works if you enter the commands manually, but fails
when run from script, the most often issue is one of timing, and
allowing for client side javascript or other
This is basically a simple question of the form 'how do I run a ruby
program'.
Reading the basic documentation that comes with Ruby ( either 'getting
started with ruby' or 'users guide') is strongly advised.
Something else that would greatly improve your 'quality of life' vis a
vis water and
The other difference is you won't normally be dealing with an
application that actively TRIES to be difficult to script against.
Now truthfully I can't say for sure that is the case (having not
talked with anyone at google who can confirm that suspicion) but sure
as heck both FEELS like it IS the
If you do things manually does it work?
Is it possible that while all the data has been sent, that the browser
is still busy doing client side rendering and style applications etc
at the point the script is trying to interact with it?
The error might be indicating the element you are trying to
If the below does not work, then use the IE Developer Toolbar, or
Firebug, to have a look at the element to see if it is really an HTML
select list, or if it is some other kind of control.
There are often Javascript powered 'section lists' which are enabled
using other types of objects (often an
What Z is saying here is that you need to address the problem of the
brittle UI with the developers. If you explain the testability issue
to them, its often possible to work out an agreement that they will do
something like leave the ID values the same (all the while that they
move stuff around,
Try matching the case on the event name with the ones in the source,
instead of all lower case
e.g. browser.button(:id, generate::0).fire_event('onClick')
In terms of 'not working' it helps if we get a bit more detail in
terms of things like 'does anything happen? do you get an error? (if
so,
Frankly I'd find some other thing to try and automate.
GMAIL intentionally makes their UI difficult to automate. ID's are
uniquely regenerated each time you instantiate the compose mail page
(and different each time) Classes look fairly randomized and I'd
place no bets on Gmail not updating
, 2010 at 3:38 PM, Chuck van der Linden sqa...@gmail.comwrote:
Try matching the case on the event name with the ones in the source,
instead of all lower case
e.g. browser.button(:id, generate::0).fire_event('onClick')
In terms of 'not working' it helps if we get a bit more detail
You may have another challenge here. I don't think HTML's simple
Selection List element is capable of multi-select.
If you are working with a control that allows things like Multi-select
then there's good odds that it is implemented via some kind of
Javascript control. That means you are going
well I'd say the first thing you are doing wrong, is asking a Selenium
question in a group full of people that mostly use a different tool
(Watir) and for the most part have little knowledge of Selenium.
Your odds of getting a good answer to why you can't compile that gem
would be a lot higher if
When viewing this web page manually, is this value solo, or one of
many similar values?
How do you know when manually executing the test, which value you are
trying to get?
Is the ID value for the wpFieldValue span predictable?
In theory browser.p(:class, wpFieldValue).text would return what
In that case, since it's windows, should you not be using backslashes
when specifying a file path on the local system? (which will likely
need to be doubled since they are ruby's 'escape' character)
Under 'dos' and 'windows' both, backslashes separate subdirectories in
relative or absolute file
Look in the HTML or scripting and see what events the div is set to
respond to.
Does it take on a different appearance when you mouseover it? it
might be that the mouseover replaces the 'button-up' with something
else (a 'button-focused' or 'button-active or somesuch, and it's
actually that
They are both failing because as I indicated earlier, there is more
than one cell in the table with the text '30 in it.Try using both
the class of the cell, and the text, as I specifically said in an
earlier response
There is first this 'boundary' one from the month before
TD
Good point as to exaclty why it was evaluating to 'true'. . and
yes .exists? is your friend. I use it often
On Jul 7, 3:33 am, Jarmo Pertman jarm...@gmail.com wrote:
On Jul 6, 12:21 am, Chuck van der Linden sqa...@gmail.com wrote:
See commented line, then below
Functionally you
You don't normally do both a 'require' and 'include' of the same
module
In fact unless you know precisely what you are doing, you want to
avoid the 'include' keyword in most cases
Read this: http://wiki.openqa.org/display/WTR/include+Watir
I'd try removing the two 'include' lines and see if
Backslash is the 'escaping' character in ruby, for example to insert
a single quote as part of a single quoted string you would do
s='that\'s the answer'
If you : puts s
you would get: that's the answer
Similarly it would be used to insert a double-quote inside a double
quoted string.
So the
What exactly are you trying to scrape?
if it's just a few values here and there, it should be simple enough
to get them directly if you know what element encapsulates the text
you want. browser.element(how, what).text will give you the text
inside an element.
Unless of course the site is
On Jul 4, 6:30 am, arihan sinha arihan.si...@googlemail.com wrote:
count the no of radio buttons with certain ids first then use the for loop
for this
On Thu, Jul 1, 2010 at 12:08 PM, Shlomit Gazit
shlomitpatr...@gmail.comwrote:
For the HTML to be proper, the ID values should be unique, so
See commented line, then below
On Jul 3, 11:33 pm, Shlomit Gazit shlomitpatr...@gmail.com wrote:
Joe,
For example I was trying:
$ie.radios.each do | radio |
if($ie.radio(:id,ID_OTHER_OPTION_BUTTON)) ### This does the same
thing every time
puts(yes)
else
am confused class, there is 2 classes in HTML code.
class=rich-calendar-input
class=rich-calendar-button
which one to use.
My requirement to select a 30-jun-2010 date from calender.
Regards,
Naresh
On Jun 29, 8:32 pm, Chuck van der Linden sqa...@gmail.com wrote:
If it's the same
If it's the same as the sample that was linked early in the thread,
when this control is rendered in the UI, it is a series of table
cells, and each cell is 'wired' for a number of events. You may need
to experiment with what events are fired in what order, I'd start
however with trying the
It's very amusing to see two people post in two different threads, the
exact same script.Are you folks taking a class that uses Watir ?
FWIW I'm not sure if it will solve the problem you are having on 'this
system' vs 'other system' but the way you are going about the script
is a bit
See reponse in this thread
http://groups.google.com/group/watir-general/browse_thread/thread/788c6b6817b95d1f
possibly you need a sleep statement before trying to set the textfield
text.
On Jun 22, 5:07 am, Betsy joybe...@gmail.com wrote:
The issue was somehow with the site.. Google never
There are a number of frameworks that have been created that help to
try and group up related tests etc.
but one important question, when you say 'related' do you mean
'dependent'?, as in you need to run things in a specific order?
Generally I'd advise against that if at all possible since one
On Jun 16, 11:07 pm, naresh nareshvatsa...@gmail.com wrote:
Hi All,
I want to automate data insertion through watir script.
I want to take data from text field and create insert query.
If anyone have done already, please guide me.
I tried to set value though set method textField, but when
OTOH, if you want to try automating it as an exercise, then have at
it, and post specific bits of code if you are having problems. Since
almost any of us can get to g-mail it's not a bad place to use for
this kind of experimentation.
If you want one of us to do the work for you and hand you a
Most virtualization platforms have an option for a connection that
looks to the virtualised OS like the 'console' and is thus treated
differently by the OS than a RDP session.
For example Hyper-V provides a way to connect to the VM via Virtual
Machine Manager (or at least one sidebar gadget) and
...@gmail.com wrote:
Hi,
Please find the attached screen shot of Rad combo box. i can able to click
the drop down list but i could not able to select the value. Please check
the screen shot
Thanks for replying
Khaja
On Tue, May 25, 2010 at 10:43 PM, Chuck van der Linden
sqa
try looking for something of this form
browser.div(:text, text to right of plus).span(:class,
rtPlus).click
If that doesn't work for you, (and be sure to check on the class of
the span) then have a look at telerik's site at their treeview
examples and identify which one of them is closest to
It looks to me like what you have here is a custom UI of some sort
that is implemented all in client side javascript. There's surely
nothing there that looks like a normal HTML selection list control.
what will probably help the most in terms of trying to manipulate this
stuff is using either
I doubt that code sample will help much. That's great for actual
HTML selection list elements, but he's dealing with 'rad' controls
which are javascript driven controls that emulate the normal HTML
selection list, but add other functionality (like a 'prompt' value
that's in the control space to
I'd put my money on an 'onChange' event needing to be fired,
especially if the expected action happens after a value is entered in
the field.
But as Joe says, check the HTML in that area and look for an event
handler that calls a particular bit of javascript when some event is
fired for that
What you are dealing with here is a 'ehanced' selection list that is
implemented entirely with Javascript code. it's not a standard HTML
selection list, so none of the standard methods what would work with
such a list are going to work for you. (a standard selection list
would use a select tag,
I feel obligated to point out one thing here:
Per the current (and the earliest of) HTML standards, values for id
attributes are supposed to be UNIQUE within a document(page).
id=name
Define a reference name for the tag that is UNIQUE in the
document. (emphasis mine)
There are parts of Watir
at the nth
element in the dropdown.
Do you have any ideas? I really appreciate the help!
On Aug 24, 11:41 am, Chuck van der Linden sqa...@gmail.com wrote:
Try clearing the current selection, before selecting another value in
the selection list.
Also since picking the radio button
Try clearing the current selection, before selecting another value in
the selection list.
Also since picking the radio button causes the page to re-render (or
is it a postback?), you might need to put in a small wait for a second
or two after doing that to give the browser a chance to do it's
Seems to me that the letters 'next' might be rather common to find on
a lot of pages, and are you SURE it's not there even if perhaps part
of another word?
If the 'next' is a clickable link or button , then perhaps you'd be
better off to look to see if the link exists?
while
That dialog box is effectively a 'popup' you can find a bunch of
stuff via the watir FAQ on dealing with popups
This message from about 6 months ago might help also
http://groups.google.com/group/watir-general/browse_thread/thread/0f87efefd3b4a8d7?hl=en#
On Aug 2, 9:43 am, CHANDRA SHEKAR
On Aug 2, 10:59 pm, jane.liu jane.li...@hotmail.com wrote:
hi,james,
use the following code for trying:
ie.image(:xpath,//i...@src='=../
App_Themes/co/locationdrilldown_hollow.jpg']).click
the .image method acts on elements defined with the img tag.
In his case he has an input type=image
what does 'hilighted' mean? some kind of background color in the
whole text field? the 'focus' on the text field? or do you mean
'selected' as if I'd done a click and drag with the mouse?
On Aug 3, 11:06 am, George george.sand...@gmail.com wrote:
Hello all,
On a web app I'm testing, I'm
On Jul 28, 10:06 pm, Swapnal swapnal.sa...@gmail.com wrote:
Hi,
In this application when we add user every user will have the 'Edit' and
'Delete' link.
span class=savedentityanbsp;-nbsp;associate/span/td
tr bgcolor=#f6f2f6
The error would tend to indicate that whatever is trying to invoke
the .attach method is no longer pointing to an instance of a browser
object. Although why that would be the case if the exact same code
executes fine on a different system is an interesting question.
You might want to check the
its not working doesn't give folks much to go on
what happens when you try to run the script?
On Jul 28, 4:12 am, atul shukla atul.shukl...@gmail.com wrote:
Hi
I am trying to upload and save file from this watir script but its not
working. can i get some guidelines to make this
When interacting with the page manually, how do you know which link
you want to click? is it always in the same position (e.g. always the
third 'edit' link) or next to a particular label in the table, or
something else?
without knowing how you determind which is the correct link to click,
we
For some of the more 'standard' style attributes I've also been able
to get at them similar to this
puts ie.div(:id, 'search').style.visibility
Aaron, if the style is not specified in the basic HTML for the page,
then it's likely coming from a resource such as a .CSS file, or could
be
Small critique to the test you are doing.
What's the inner if' statement supposed to be doing for you? why
return the browser to the page you are testing after the first link
you check, but not after any others?
From the looks of your code, your intent is to 'spider' each link on
the pages you
most of the attachements appear to be empty. (nor for that matter, am
I sure that Elcom would be terribly happy if you posted all the code
for their app.)
Unless there is a test or demo site that could be accessed via the
internet to sort of 'play' with the application we may be limited here
to
Firstly, please do not ask two questions that are not related in a
single thread. This is no different than asking a new unrelated
question in an existing thread. it makes things much too confusing
for everyone, and harder for anyone coming here and searching for
answers to find what they need.
Watir drives the browser. there are little if any plans for anything
outside that scope. If your stuff has a browser UI then likely Watir
can be used to automate it. if it's running outside of a browser,
then Watir is not the tool you seek.
On Jul 22, 3:37 am, khaja shaik
You probably need to take this to one of the more mainstream ruby
discussion lists. This is really outside the scope of Watir since
it's really more of a general ruby language question, and also we seem
to have reached the limits of the folks here who are familiar with
this since they have told
try it manually from a IRB console session,
Get the element selected in firebug so you can see it's properties
then try firing first the onmouseover event as that is specifically
what the element is set to trigger on.
have a close look in firebug at how the item was modified by the code
that
This is a question for the WET mailing list. The vast majority of
folks here just code directly and don't bother with recorders.
On Jul 21, 6:37 am, Monali Patil monali.pa...@sqs-india.com wrote:
Hi All,
I am working on Automation Project where I am using Open Source tool ‘Wet
Watir’ for
On Jul 21, 12:12 am, Dheeraj Gambhir checktestingthi...@gmail.com
wrote:
Is there any command to get text from web page like my requirement is to get
order-no from thank you page.
Please search the group for an answer first, I'm pretty sure this
topic has been covered. If you dont' find an
have a look at the task manager when this happens and see if IE seems
to have consumed an inordinately large amount of memory, or is using
tons of CPU cycles.
IE can be a bit of a pig at times, and several of us have found that
if you try to run prolonged scripts in them that it can get a bit
'flash-form', 'swf', 'ismultiflash' I see a whole lotta flash stuff
here, so you might have to look at flashwatir
In the meantime, did you try
ie.button(:class, 'flash-upload-button').click
On Jul 18, 2:54 am, Raveendran P jazzezr...@gmail.com wrote:
Hi,
html CODE:
div
You may also find a lot more folks who know about doing this sort of
thing in the main ruby forums than you will here where many of the
folks have never needed to connect to a db (or if they did it was
mysql or ms-sql) in order to test against a web UI.
On Jul 21, 8:36 am, karim rayani
On Jul 13, 3:41 am, Brautigam Gergely skarlso...@yahoo.com wrote:
He says that the file he is using does not contain which Checkbox INDEX he
has to set... Only the ID which is that of all of the check boxes and not an
Index i guess..
But why not? Simply add it to the file or ask the Devs
')
browser.div(:class,'mainCartists').link(:text, 'Argentina').click
Good luck.
On Jul 21, 11:06 am, Chuck van der Linden sqa...@gmail.com wrote:
try it manually from a IRB console session,
Get the element selected in firebug so you can see it's properties
then try firing first the onmouseover event
of the
other ruby libraries, or they build their tools in their main production
language (ie. Java).
Jaredhttp://www.software-testing.com.au/blog/
Chuck van der Linden wrote:
You may also find a lot more folks who know about doing this sort of
thing in the main ruby forums than you will here where
On Jul 10, 9:06 am, karim rayani karim@gmail.com wrote:
if one has knowledge of automation then learning watir should only
take around 1 month.
However if automation/programming background then it can take a fair bit of
time
I could not agree more.
A lot also has to do with aptitude.
On Jul 9, 10:58 am, Dylan mej...@gmail.com wrote:
Does anyone know of a good tutorial/step-by-step instructions for how
to integrate watir/ruby into a cruise control build cycle. I have 1
xml output file (from ci_reporter) and I want my script to run after
the build and then integrate the xml
Generally the functionality you describe is event based..
So there's an element on the page (we'll call this the 'trigger') that
is set to call some client side script when an event like
'onMouseOver' occurs, that client side scripting then re-renders a
part of the webpage causing the thing you
Well if those were normal text boxes and such, you'd be fine, even
with events like 'onchange' or whatever associated with them.
Watir doesn't know what to do with a gMed:Control element, so you'd
have to write custom code to interact specifically with that.
The stuff inside it is fairly
IE can be a memory pig.. it like tries to remember and cache nearly
everything you've done.
next time this happens have a look at taskman and see how much memory
IE is using..
Others that have encountered this have found it beneficial to have
their tests periodically close and re-open the
why are you firing the 'ondblclick' method?
Normally if text in a cell is able to be clicked, it is because of one
of two things are happening
1) the text is a link. in which case just use the .click method on
the link element and it normally works
2) a container in the cell such as a div,
require is a pretty fundimental part of Ruby. it's not a Watir
function.
I doubt it has changed, so you should be looking elsewhere (path
settings perhaps?) for the cause of your error.
Providing actual errors you are getting instead of just saying 'not at
all working' would be highly useful
you can even execute that same script bit manually by entering a
command in the browser's URL entry box.
I have favorites setup with 'URL' values like
javascript:window.resizeTo(1024,768)
never tried using that as a parameter for a browser.goto but in
theory it would work (although Micheal's
I agree with George, I think you have more current tech and support
with Watir.
As far as the Object Repository idea goes, at least two frameworks for
Watir (Taza and Watircraft) support this notion via 'page' files you
can use to define logical names for the elements on a page that you
need to
I'm testing against 'fancy .net active pages' and so far Watir is
working fine for this. of course each site is different and YMMV.
I think in large part Watir works well for this because no-matter what
insane 'magic' the devs do on the back side, ultimately it's all HTML
sent over HTTP when it
Well personally I like the 01 site a bit better..
That being said, I did like the 'watir buzz' section on the first
one, and it would be neat to see something like that incorporated into
the 01 page.
The one thing I think needs to be said that isn't on either of those
pages is something about
This is more of a generalized ruby question than watir specific. So
you might get better answers from the ruby forum.
This thread over there from a few years back might also be of use
getting you headed the right direction
http://www.ruby-forum.com/topic/76585
On Jun 10, 8:59 pm, dt_nz
/).style.invoke('left')
when I try it in firefox I get Exception: undefined method `invoke'
for [object CSSStyleDeclaration]:String has Occurred
I feel as though I'm close I'm just missing something simple. Am I
using style correctly for firefox
On Jun 8, 5:02 pm, Chuck van der Linden
It sounds like you are doing a remote desktop type of connection.
In that case Ruby, Watir, etc would need to be installed on the remote
system. Perhaps they can give you a special desktop (tied to a
particular login) which had those things installed.
Automating anything 'through' remote
On Jun 9, 3:49 am, Rahul Ahuja mightyah...@gmail.com wrote:
Due to security reasons I can share the snapshot.
Tip: use Snag-it. trial install is available and the license is
cheap for the tremdeous utility it offers in doing screen captures and
markups. then use blur feature to make any
On Jun 8, 4:51 am, Željko Filipin zeljko.fili...@wa-research.ch
wrote:
On Mon, Jun 8, 2009 at 1:48 PM, Chethan chethan2...@gmail.com wrote:
img class=collapseImg src=themes/leadforce1/images/expand.gif/
browser.image(:src, /expand/).click
div class=collapseHeaderTextView More Details
, Chuck van der Linden sqa...@gmail.com
mailto:sqa...@gmail.com wrote:
On Jun 5, 5:07 am, Željko Filipin zeljko.fili...@wa-research.ch
mailto:zeljko.fili...@wa-research.ch
wrote:
On Thu, Jun 4, 2009 at 11:36 PM, Chuck van der Linden
sqa...@gmail.com mailto:sqa
You had just asked in the other thread if there were workarounds..
so why are you an hour later starting a new thread asking the very
same thing?
On Jun 8, 11:55 am, Loft_Tester aaronr...@gmail.com wrote:
I have a question already posted about using currentstyle in Firefox
and the fact that it
have you tried just using the .style method on the specific object?
On Jun 8, 11:00 am, Loft_Tester aaronr...@gmail.com wrote:
Is there another workaround for this? Thanks
On Jun 8, 10:38 am, Loft_Tester aaronr...@gmail.com wrote:
OK, I tried working on this for sometime but I haven't
I would also make sure you have all the proper gem's installed and
updated. This sounds similar to some other issues people have had
with some win32 related stuff that Watir needs..
If you search the group for Win32 you'll find some threads related
to that, might want to peruse them and try
if it's not specific to your company, I think a script like this would
make an EXCELLENT addition to the examples in the Watir Wiki. I'd
like to strongly encourage you to consider 'sanitizing' what you end
up with (removing any company specific stuff) and posting it as an
watir code example
install watir becasue it requires a windows environment - or
I am I missing somthing here too?
please let me know.
thanks a million
jason.
On 3 Jun., 21:00, Chuck van der Linden sqa...@gmail.com wrote:
Hey I know you want to look for the select_list INSIDE the form,
(perhaps to verify
could you just use .exists?==false where you have .exists?
On Jun 5, 1:19 am, Jerry Lane lane...@gmail.com wrote:
I have the following now:
assert(@@ie.div(:class, ext-el-mask-msg x-mask-loading).exists?,Test
passes as 'Loading...' is not present on screen)
This prints when the assert is
Thanks also from myself, co-worker and company.. We're using the
framework (I wish we could have afforded to have you train us) and
it's great stuff. I'm sorry it didn't work out, but I think it will
be a great contribution to the Watir community as a whole.
I hope you enjoy going back to
On Jun 5, 5:07 am, Željko Filipin zeljko.fili...@wa-research.ch
wrote:
On Thu, Jun 4, 2009 at 11:36 PM, Chuck van der Linden sqa...@gmail.com
wrote:
Has Google Code been considered?
also Github?
Both Google Code and Github have wiki and bug tracking. The problem with
changing software
Has Google Code been considered?
they provide a wiki and issue tracking..
also Github? I believe they also have wiki, not sure about issue
tracking..
On Jun 3, 9:23 pm, Alister Scott alister.sc...@gmail.com wrote:
Hi Everyone,
I have looked into many options and can't find a free/cheap
A thanks for clearing that up. makes a lot more sense now
On Jun 3, 2:19 am, aidy lewis aidy.le...@googlemail.com wrote:
Chuck
2009/6/2 Chuck van der Linden sqa...@gmail.com:
Have you reviewed the general info on the types of popups and how to
handle them? http
Hey I know you want to look for the select_list INSIDE the form,
(perhaps to verify it's in the right 'place' within the dom etc) but
if the intent is to manipulate the list, and you are able to identify
it by ID value, then as a workaround until this problem is corrected,
why not just leave
Think of a frame as an entirely seperate web-page, embedded within
another web page. it is such a distinct body that it's really not
practical to think of it as a 'nested container' they way you would a
div, table, or form.
Due to this and other restrictions, many web-devs I know consider
701 - 800 of 941 matches
Mail list logo