Try kicking out the current activesupport and installing an older
version of it.
I'm using the Watircraft framework, and when installing on a
Server2008R2 box (very much like Win7) I got similar errors when
trying to use the older ruby 1.8.6 where it wanted to run nmake etc
I ended up having to
are from httpwatch tool.
As Chuck suggested, I will dig in and try to use waiting option.
Thanks,
On Mar 17, 10:17 pm, Chuck van der Linden sqa...@gmail.com wrote:
I think the issue is that since it's being invoked by client-side
code, watir doesn't really know to expect a page load
Credit goes to Bret and Brian for choosing Ruby as the language when
they first set about to create watir..
However the .parent method is purely a Watir thing, I don't know who
came up with the idea of doing that, but it's a GREAT addition to
Watir.
and just call me Chuck
('van der Linden
I think the issue is that since it's being invoked by client-side
code, watir doesn't really know to expect a page load at that time
Have you by any chance tried to click that div as if it was a button,
using the ID to identify it?
Since I see some ajax in there, I guess the first question is,
Can you show me the code for the click?
from the looks of the dom, the original link you click to see the sub-
menu, and those menu items, are all 'inside' that table row. I
suspect that the challeng is that there are other similar hidden links
(at that point) on each of the other table rows,
On Mar 17, 5:41 am, Aravind aravindredd...@gmail.com wrote:
thanks for the suggestion and this is the code i used
def clickaction(table_id)
table = $b.table(:id,table_id)
if table.row_count 2
for i in 3..table.row_count - 1
if table[i][8].text == APV
Care to share it with us so other users can benefit from it?
On Mar 16, 8:17 am, Aravind aravindredd...@gmail.com wrote:
Hi
Thanks for the reply.
I got the solution for that.
thanks
aravind
On Wed, Mar 16, 2011 at 7:04 PM, Željko Filipin
zeljko.fili...@wa-research.ch wrote:
On
).fireEvent(onmouseup)
Regards,
vin
On Mar 3, 11:14 pm, Chuck van der Linden sqa...@gmail.com wrote:
'access' appears to be text.. do you see it on the page as text next
to a 'FolderOpen image? Is that text unique on the screen, or does
it appear in other places as well
On Mar 16, 3:55 am, Željko Filipin zeljko.fili...@wa-research.ch
wrote:
http://stackoverflow.com/questions/5317433/ruby-stops-after-first-loop
DO NOT assist this guy.
a) what he's trying to do specifically violates the terms of service
for the site he linked in his code. (cramster)
b) what
working with fireevent.
ie.div(:id, configure_access_left).fireEvent(onmouseup)
Regards,
vin
On Mar 3, 11:14 pm, Chuck van der Linden sqa...@gmail.com wrote:
'access' appears to be text.. do you see it on the page as text next
to a 'FolderOpen image? Is that text unique on the screen
On Mar 15, 12:29 am, meaculpa harismah...@gmail.com wrote:
For a MNC, that guy was into QTP, in QTP we can identify it with
rpository.
and how exactly would you do that if in truth every property that
could used to identify the thing is changing?
The QTP repository is not PFM (pure freakin
an undiscovered sweet spot somewhere there
where the cost per vuser shifts in favour of protocol level (when using
commercial licensed tools) testing.
Cheers,
Tim
@90ktshttps://github.com/90kts/watirgrid/blob/master/EXAMPLES.rdoc
On Tue, Mar 15, 2011 at 4:21 AM, Chuck van der Linden sqa
Generally speaking, in order to handle a large pool of threads and be
able to scale the load, most loadtesting is done at the protocol
(HTTP) level, not using full blown browser based clients.
Since most load is not from simple page hits against static or cached
pages, you need to actually be
I agree. The other possibility is that the server is sending
different HTML, perhap using an older technique like frames etc, to do
something that is done another way in FF, but can't be done that way
in IE, because IE doesn't support it.
You might want to view source, and save it for both
:/Documents and Settings/tcsadmin/Desktop/
check_changecounter.rb:9
On Mar 4, 10:23 pm, Chuck van der Linden sqa...@gmail.com wrote:
If I read you correctly, the challenge is get the contents of the
second cell on the table row where the first cell is 'change counter'
is that right
operating select tag.
Thanks.
在 Fri, 04 Mar 2011 02:29:54 +0800,Chuck van der Linden
sqa...@gmail.com 写道:
have you tried scripting a firing of the onchange event against the
element after you have done the select?
browser.frame(mainFrame).select_list(:name,servname).fire_event
Monitoring HTTP traffic between the client and server is a completely
separate issue, and yes there are tools for that (including Fiddler2
on windows), but I don't think that's what the OP was asking about.
On Mar 3, 2:28 am, Danijel danijel.vuko...@gmail.com wrote:
In one way you can use
'access' appears to be text.. do you see it on the page as text next
to a 'FolderOpen image? Is that text unique on the screen, or does
it appear in other places as well?
The problem we are faced with here is that there are several
overlapping HTML elements here, and none of the HTML types
have you tried scripting a firing of the onchange event against the
element after you have done the select?
browser.frame(mainFrame).select_list(:name,servname).fire_event(onchange)
On Mar 2, 6:52 pm, WinDy lyfi2...@sina.com wrote:
I have a web page to test.
The page like this:
select
try this manually with IRB and see if the browser object still seems
to be connected to the actual web browser after you've gone to the
apple page.
My bet is that that the two pages are seen as being in different
security contexts (one is perhaps 'trusted') and that's causing an
issue with the
When you asked about this sort of thing in this thread
http://groups.google.com/group/watir-general/browse_thread/thread/aa2701aa919b948b
I said to you:
If your question is how to use ruby to do HTTP requests directly (as
opposed to using Watir to drive a web-browser that sends/receives
those
generally I find xpath useful only when I can't find an elegant way to
identify and element using watir's normal means. it's harder to read
code using it (to tell what you are doing) and it's slower, so it's
not my first line of advance.
On Mar 1, 12:06 pm, Michael Sillers msill...@pollydude.com
Concur with Jarmo.
as further proof, I challenge the OP to respond to this thread to
prove he's not just a drive-by spammer who isn't even monitoring the
forums to which he posts his announcements.
If we don't see a response in a day or two, I nominate nuking the
thread and banning the poster.
On Jan 13, 2:00 am, Željko Filipin zeljko.fili...@wa-research.ch
wrote:
http://stackoverflow.com/questions/4675500/if-there-are-two-links-wit...
answered
--
Before posting, please read http://watir.com/support. In short: search before
you ask, be nice.
watir-general@googlegroups.com
Feel free to use any or all of that in a FAQ entry on 'captcha'
stuff. as they come more and more into prevalence I suspect we're
going to want one.
On Feb 25, 3:24 am, Željko Filipin zeljko.fili...@wa-research.ch
wrote:
On Fri, Feb 25, 2011 at 9:12 AM, Chuck van der Linden sqa...@gmail.com
On Feb 27, 8:44 pm, Ashu ashay.n...@gmail.com wrote:
Yes,
as the script is running on the IP address, so a webpage opens that is
in PHP.
Watir can detect the text that is written in td[2]
xpath - /html/body/div/div/div[5]/div/div[7]/table/tbody/tr/td[2]
But,
There is an image file in the
and was tempted to put more thought
into it. Maybe next time =)
Cheers,
Tim
On Fri, Feb 25, 2011 at 6:23 PM, Chuck van der Linden sqa...@gmail.com
wrote:
Tim,
I'm not saying he's a spammer.. (but one could be watching)
I'm applying the LART with such vigor because he's been told
Like Z I think I'm perplexed here as to exactly what it is you are
wanting to do.
If the problem is elements not found on the page, and it works
'manually' from an IRB prompt, but not when you run the script, you
might need to insert a few sleep statements here and there in your
code to allow
On Feb 24, 1:34 am, Aditya vaditya2...@gmail.com wrote:
Any specific process to install the specific gem.
How do i?
the same way you install any gem.
http://lmgtfy.com/?q=how+to+install+ruby+gems
--
Before posting, please read http://watir.com/support. In short: search before
you ask, be
Yes as others have pointed out, theres no watir in anythng you
provided, what you have are questions regarding how to use ruby..
a few small tips in terms of (at least from what I've seen) are the
ruby way of doing some of the code you have
if nu=region
This is asking if setting nu equal to
As charlie said it's just a div that shows up for a while. if you
know the properties of the div then you can check to see if it's
there.
Likely it's just being switched by some client side javascript from
being visible to not being visible. If that's the case, again if you
know enough
learn to assist yourself.
http://lmgtfy.com/?q=flash+watir
On Feb 24, 4:15 am, V vaditya2...@gmail.com wrote:
How do i identify flash objects as my firebug does not display
those.Any add-on for flash objects?
Say Ex: I opened app. A welcome screen came. Down the line there is I
AGREE
/
Good luck with that!
Cheers,
Tim
On Wed, Feb 23, 2011 at 8:07 PM, Chuck van der Linden sqa...@gmail.comwrote:
THERE IS NO SUCH GEM.
NO. HELL NO. and a Thousand Times I tell you NO.
The purpose of a captcha is a challenge to prove that it is a human at
the computer
On Feb 24, 10:28 pm, Rajiv Nanduani rajivkumarnandv...@gmail.com
wrote:
Hi All,
I am facing a problem with watir for list box object. I have to extrach the
value of select item in list box instead of text value Like..
select size=1 name=phone_type
option value=- Select One
THERE IS NO SUCH GEM.
NO. HELL NO. and a Thousand Times I tell you NO.
The purpose of a captcha is a challenge to prove that it is a human at
the computer, to prevented scripted attacks on the site from spammers
and the like. The site cannot tell a scripted interaction from a
tester from a
You're trying to script against a captcha?
LOL. do you understand the phrase 'tilting at windmills'?
have fun storming the castle. v
On Feb 22, 12:13 am, V vaditya2...@gmail.com wrote:
Hi,
My Source is :
img style=color: Red; height: 60px; width: 165px; border-width:
0px;
not without a better example of the source for the page you are trying
to automate and exactly what it is you are trying to do
On Feb 21, 6:23 am, mike_sukhi sukhija...@gmail.com wrote:
ANY BODY CAN HELP PLZ
On Feb 20, 9:41 pm, mike_sukhi sukhija...@gmail.com wrote:
ok I found a example
when interacting manually how do you know what to click on? ae you
looking for the text? if so, maybe you could use a combination of the
class and the text to identify the div?
also there are three divs in your code below, but you do not indicae
which of them you are trying to click on, which
are there Frames on the page perhaps?
On Feb 17, 11:41 pm, Ashu ashay.n...@gmail.com wrote:
On trying the above line of code
irb displays
irb(main):045:0 ie.image(:alt, 'Open SDP file').wait_until_present
Watir::Exception::UnknownObjectException: Unable to locate element,
using :alt,Open SDP
I've been setting up a VM to do testing on our product and the easiest
thing for me to do is to have the automation code running on the same
system were we install the product (and database etc). Hence the use
of Server2008 as the platform since that is official supported (and I
figured would
can take notes, which you might be planning
already. :)
Cheers,
Charley
On Wed, Jan 19, 2011 at 10:16 PM, Chuck van der Linden sqa...@gmail.com
wrote:
well it's not as if things were working that wonderfully so I'm not
too terribly concerned.
I made a snapshot of the VM just
Glad you got it working.
You do realize that this is the first time you mentioned you were
running on a Mac, despite Z's asking you for details that included
your OS.
Given most folks here are working on PC's using Windows (or a flavor
of Linux) that little detail may be something you need to
The other thing to be aware of is that with Win7 it helps to run the
command line window as an admin (right click and pick run as
administrator). This gets around some of the IE cross site scripting
security that causes 'churn' of browser objects when the site changes
security zones (from
are you opening up the CMD window you are using 'as
administrator' ?? that seems to help immensely with Windows 7 and
IE8's propensity to 'churn' the instances of the browser.
It also seems (at least to me) to help to set the browser homepage to
about:blank, and add that page to the same
if it's an image and it's clickable, you can often access it as a
button element.
That or look at what element is wrapped around the image.
As with almost all questions here, you are going to get the best
response if you
1) show us relevent page source.
2) show us the code you have tried so far
You really have to wonder how that business model flies.. doesn't
seem like it would even come close to paying for the hardware alone,
much less license fees for licensed OS's
On Jan 13, 11:14 pm, Dave McNulla mcnu...@gmail.com wrote:
For $.50 a day we can run a VM in the cloud? I can hear
Do we have a version that has everything already compiled for Windows?
I'm trying to get a windows server 2008 system setup to run watir
scripts, and when I try to install anything newer than 1.6.2 it starts
trying to find nmake.exe and cl.exe which are not anywhere on this
box as it is setup
Are we truly at a point where this is actually possible, or are there
still differences such as zero based vs one based indexing that are
going to cause scripts to malfunction from time to time? when you run
them on the platform that is other than where they were developed?
On Jan 5, 7:36 am,
Doesn't appscan have the ability to save the navigation you
demonstrated to it, so that you can run it automatically on newer
builds?
On Dec 29 2010, 7:05 am, Dan dfra...@gmail.com wrote:
Good Morning. Anyone used Watir with appscan? Basically, for those who
don't know Appscan is a tool by
I'm a bit stumped on why you are using 'enable?' as your method.. I'd
think you'd be wanting to use exists? instead.
have you changed the text you are trying to match to force a failure,
and verified that your test reports fail?
On Dec 29 2010, 11:49 pm, Irfan Ahmed irfan...@gmail.com wrote:
wouldn't it take more time to create the automation to have water
navigate every page on the site than it would for a person to just
walk through it manually?
I guess I can see the point if you had existing automation, but I'd
think that would be doing a LOT more than just clicking on all the
.
Charley Baker
Lead Developer, Watir,http://watir.com
On Wed, Jan 19, 2011 at 6:54 PM, Chuck van der Linden sqa...@gmail.com
wrote:
Do we have a version that has everything already compiled for Windows?
I'm trying to get a windows server 2008 system setup to run watir
scripts
to the newer paradigm and the mingw tool chain. Just a thought
anyhow.
Charley Baker
Lead Developer, Watir,http://watir.com
On Wed, Jan 19, 2011 at 6:54 PM, Chuck van der Linden sqa...@gmail.com
wrote:
Do we have a version that has everything already compiled for Windows?
I'm trying
.
On 1/19/2011 1:42 PM, Chuck van der Linden wrote:
You really have to wonder how that business model flies.. doesn't
seem like it would even come close to paying for the hardware alone,
much less license fees for licensed OS's
On Jan 13, 11:14 pm, Dave McNullamcnu...@gmail.com
Why not do it as a scenario outline, Then in the examples specify two
or more filenames that point to files of known size that allow you to
explore the boundaries
You could for readability even include the size of the files in the
feature, but just ignore it other than paying attention to it when
ok so wait, Dave, that was from two years ago, saying they didn't
support IE, but were hoping to fix that bug as soon as possible.. so
does that link reflect the current state?
In any event all the errors I see there appear to be pointing into the
FunFX code, and not at any of the Watir code, so
so i unistalled firewatir and then reinstall it with
http://wiki.openqa.org/display/WTR/FireWatir+Installationpage help
and also installed JSSH firefox extension for FF3.6 as i am using
FF3.6.
But still i am getting same error in main thread .
thanks
Abhirevo
On Dec 16, 5:28 am, Chuck van
I'm wondering is this is perhaps a firebug problem??
when I search the group for (JsshSocket JSSyntaxError) I find some
other threads where people are trying to do much the same thing
browser.div(how,what).text_field(:id,something).set(somevalue) and
getting an error similar to yours.
a few
in IE 6...
Why in the world would you test using IE6?
Seriously in the developed world, the percentage of folks still using
IE6 is lower than even Opera. It's a miniscule portion of any
potential market for just about any product except freeware.
(yes there are a lot of people still using
rspec uses a .should method to do validation (aka 'assertions'). so
rather than trying to re-create a validation wheel, you should use the
existing paradigm that is a part of rspec/cucumber
browser.link(:how, what).should exist
browser.title.should equal the expected page title
I'd suggest
http://www.pragprog.com/titles/achbd/the-rspec-book
buy and read
On Dec 12, 4:39 pm, Basim Baassiri ba...@baassiri.ca wrote:
Have you read any information herehttp://www.cuke4ninja.com/
On Sun, Dec 12, 2010 at 12:40 PM, Irfan Ahmed irfan...@gmail.com wrote:
Hi,
Anybody here who can
(The OP appears to have deleted their original message.. not sure why,
but since others may havesimilar issues, I'll respond anyway)
What you have there is not a select list. It's an unordered list,
that is made to look and behave like a select list via extensive
Javascript reacting to events
Presuming you have the company name in there as a variable (read from
a data file or whatever) you could do the following
cpname = Regexp.new(companyName)
celltext = browser.table(:class, 'box3').cell(:text, cpname).text
Then parse the celltext to grab the characters you want.
In my tests I
The other one to try would be
ie.div(:class=mainModule).link(:href=#).click
You tried something similar, but with .div as your second level
element, and :href isn't a supported means to identify divs, just
links and new browser windows
I mention it because usually there's more than one means,
Would a normal user be able to select the items that way? why not
interact with the page in the way a user would, choosing the options
on the select according to the displayed text?
Given you can't interact as a user would, then in terms of getting the
options, you could try using the
You are still trying to attach to the page before it is opened.
1) Do not confuse the The Title TAG which is part of the page header
and sets the title of the webpage (which is usually displayed as the
title of the browser window) with a 'title' Attribute, which can be
set for any number of
I'd suggest looking at some of the other solutions listed here:
http://wiki.openqa.org/display/WTR/JavaScript+Pop+Ups perhaps one of
them will work better.
Otherwise specific answers to each step of the IRB process that Jarmo
suggests, (are you getting the right hwnd, etc) might help to figure
Another option might be to use the 'select_item_in_select_list'
method but from what I'm seeing that only lets you select it by
either the displayed label (:text) or the underlying value (:value)
see
http://rdoc.info/gems/watir/1.6.7/Watir/SelectList#select_item_in_select_list-instance_method
Let me add my voice to Dave's here. You need to take this problem to
the devs, and explain your need to have some way to reliably identify
elements on the page. It needs to be something that doesn't get
changed if they re-design the page. ID values work great if they are
unique within the page
tell the browser to go to this 'URL' or one like it:
javascript:window.resizeTo(1024,768)
(hopefully the site won't think I'm trying to do some kind of cross
site attack)
I have some favorites of that sort setup so I can resize the browser
when doing manual testing, most of the time i find
unlucky :(
Thanks again,
Chethan
--- On Fri, 12/11/10, Chuck van der Linden sqa...@gmail.com wrote:
From: Chuck van der Linden sqa...@gmail.com
Subject: [wtr-general] Re: Unable to call ruby script multiple times!!
To: Watir General watir-general@googlegroups.com
Date: Friday, 12 November
You realise that what you just asked amounts to 'I need help, please
help me'
and doesn't provide near enough detail for anyone to offer any level
of assistance.
what specifically isn't working?
Provide a sample of your code
Provide an example of the output
Provide error text if an error is
On Nov 10, 2:39 am, vasu br.vas...@gmail.com wrote:
Please help me in this issue.
you've not provided enough details for anyone to help you.
at the very minimum you'd need to do something like provide some
sample code both for your tests, and of the report class if you've
made ANY changes to
Generally I look at the code to see what kinds of events it is looking
for. there will usually be something like say an 'onChange' event
that is being monitored that is causing some javascript or jquery code
to be executed.
If you really need to simulate something that is responding literally
Disk and RAM tend to be the two big resource contention areas, along
at times with CPU (or number of cpu's) You need FAST disks, and it's
good to spread the VM's across a few differnt disks if you can affort
it. RAM ends up being very critical to what you can run at any one
time, and the problem
That project is 4 years old and it does not appear to have had any
updates since it originally went up on Rubyforge. Not sure if that's
a good thing (code is solid) or a bad thing (developer lost interested
and moved on to other things).
This group is specific to Watir, not general Ruby
Sorry but in terms of having the information needed to troubleshoot
this with you, the description of behavior not working is
insufficient for me or almost anyone else to have any kind of guess as
to what you might need to do.
Please provide URL (if public)
Sample of code where the issue is
Also bear in mind that the list 'container' the OL tag isn't normally
itself rendered on the screen in a visible way.. so users don't
normally interact with it. The 'guts' of the list (li tags) is
where the interaction normally happens, and also what most commonly
verified or acted on in
Without knowing more about how you express and manage tests it's hard
to make specific recommendations.
For teams that are using BDD (Behavior Driven Development, think of it
as the next generation of TDD) the Cucumber tool works well to execute
the BDD plain language stories, and the steps for
This is probably a good tip for us to add to the FAQ.. it can be used
for all sorts of 'partner' content that might be on or within page
code:
analytics
banner ads (which you don't want to be charged for)
or anything else that might either throw off numbers, or result in
some kind of chargeback
_
any thoughts?
On Sep 15, 11:41 am, Chuck van der Linden sqa...@gmail.com wrote:
If Z's approach below doesn't work (first thing I would have
suggested) you could also try something along these lines (especially
the first one if you know that a single cell
testable, but
would make the test code a lot more readable.
On Sep 16, 10:13 am, Chuck van der Linden sqa...@gmail.com wrote:
I'll wager the ID value 'Table_01' is not unique within the document,
and some other element that is NOT a table is being returned when
Watir goes out and tries to get
http://wiki.openqa.org/display/WTR/Pop+Ups
http://wiki.openqa.org/display/WTR/JavaScript+Pop+Ups
Or use the 'search this group' box at the top of the page and search
for 'javascript popup'
On Sep 14, 8:16 am, balexis bale...@gmail.com wrote:
Hello,
I'm running Firewatir 1.6.5 on Ubuntu
Makes complete sense.
Normal HTML select list controls don't support a 'double-click'
function (nothing on the web normally does doubleclicks). Ergo the
functionality you are seeing must be implemented with javascript,
which is activated when it see's the doubleclick event occur within
the
Is this some kind of activeX control that appears like a native
windows control? If so it makes sense to use AutoIT
if it's implemented in a browser, as some kind of normal input field
you'd think that it would be easy enough to set the field and then
fire whatever event (or use submit
Another possiblity would be to take a slightly more functional
approach
Click the link, or fire the onclick method, and then test that the
right thing happened as a result.
surely there's some way (either by the resulting page, data on the
resulting page, or perhaps looking at a backend db) to
strange it looks like the OP deleted their message, we now have a
thread that basically starts in the middle
On Sep 6, 1:37 am, Željko Filipin zeljko.fili...@wa-research.ch
wrote:
On Sun, Sep 5, 2010 at 7:56 PM, nix amritd...@gmail.com wrote:
Iam unable to click on a dynamically generated
On Aug 25, 1:44 pm, Shlomit Gazit shlomitpatr...@gmail.com wrote:
I will give you exact examples:
I want to click on this html tag:
a href=/c2p/imperativeMain.do?navTrailRequired=falseamp;id=1
class=linkList onmouseover=TagToTip('ID_SPAN_CONTEXT_NOTE__1', WIDTH,
-240, SHADOW, true,
That won't ever work Basim, because per HTML standards ID values are
supposed to be unique within a page.
In this case the page has malformed HTML, it's not valid. That's a
bug that should be filed and the page code corrected so that ID values
are not repeated within the page. It's ok to
The problem is that the link above has the same url, but I dont want to
click on the link in that table since it will take me to a dead end.
HUH? If THE URL IS THE SAME, then how can one link lead you somewhere
the other link does not? If both links point to the same URL, they
should both
').select_list(:name,level).select(bu)
Thanks for ur help
On Aug 23, 10:36 pm, Chuck van der Linden sqa...@gmail.com wrote:
b.frame(:name, 'rightFrame2').select_list(:name,level).set(bu)
1) You might want to try using .select instead of .set You might
also want to first clear any selected
Yeah, learning how to use Rdocs (allmost all ruby gems use them) is
critical for working with ruby.
The Watir Wiki also is useful
http://wiki.openqa.org/display/WTR/FAQ
http://wiki.openqa.org/display/WTR/How+to+wait+with+Watir
Lastly, did you try searching this group on 'wait_until' ?? that's
to
access the site?
Regards
Pallavi.
On Tue, Aug 17, 2010 at 4:37 AM, Chuck van der Linden
sqa...@gmail.comwrote:
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 sounds almost like the frame has come disconnected and you need to
re-attach. Remember that the objects in your code are pointing at
objects in the DOM of the browser. when you create an object in your
code like 'main_frame' it's pointing to a specific instance of the
object in the DOM that
Or if there is a specific means given for support of the oci8 gem,
post your message there.
A majority of the folks here will have zero experience using that gem
to connect to an oracle db.
On Aug 20, 7:54 am, Basim Baassiri ba...@baassiri.ca wrote:
On Thu, Aug 19, 2010 at 10:24 AM, Wang,
With such generic code the best I can do is give you a similarly
generic answer.
use the form
browser.frame(:how, what).element(:how, what).method
1) to get a useful response, provide more details as to the html that
defines the iframe at the very least. and also tell us the specific
element
:
Hai Chuck,
Thanks for ur reply we can add id or name for this element but why
is element by xpath is not working for me can u help me on this
Thankyou,
Goutham
On Tue, Aug 17, 2010 at 8:48 PM, Chuck van der Linden
sqa...@gmail.com wrote: As an alternativ...
--
Before
There you go. that's what I was about to suggest.
as long as you're able to create a regex that won't match more than
one classname, you are in business.
Another alternative (if you have control over what's being created)
might be to also have the jQuery code assign a 'name' to the element,
please give me an example
Thanks,
Goutham
On Tue, Aug 17, 2010 at 8:39 PM, Chuck van der Linden sqa...@gmail.comwrote:
The most likely explanation when you see 'undefined method' (and you
haven't mispelled the method or something like that) is that the
browser object is no longer pointing
The most likely explanation when you see 'undefined method' (and you
haven't mispelled the method or something like that) is that the
browser object is no longer pointing at an instance of a web browser.
That can happen in IE when the security context of the site changes
(e.g. the browser starts
601 - 700 of 941 matches
Mail list logo