Thanks for all your answers. They were really helpful to me. One small
question, do we need to invoke Garbage Collector explictly and if so, how?
Thanks,
Vijay.
___
Wtr-general mailing list
Wtr-general@rubyforge.org
Thanks Jlolis for your reply. It is exactly what I had wanted.
Thanks,
Vijay.
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
Hello people,
Our application has got several frames. The controls need to be accesses
through these frames like
'$ie.frame('Detail').link(:text,'Disclosure').click'. Before certain
statements of this type, I want to check whether the particular frame is
present in the current page or not.
Thanks for these links helped me verymuch, although I have one problem, last
method ClientToWindow method doen't return anything insted it modifies the
passed arguments with new values, how to handle this situation in ruby ?
___
Wtr-general mailing
Hi people,
I just want to know , how to convert The DOM Tree Structure into a XML file
format..?
And also can we save the DOM tree Structure from the IE's DOM Explorer.?
Thanks,
Vijay.
___
Wtr-general mailing list
Wtr-general@rubyforge.org
Take a look at this thread
http://forums.openqa.org/thread.jspa?threadID=7082tstart=30
I give some ideas on how to approach a very similar problem.
The easy option to catch the specific exception and handle it from there.
___
Wtr-general mailing list
Hey, Able to drag the code up to here.
def get_location_on_screen
assert_exists
rects = ole_object.getClientRects().item
x = rects.left
y = rects.top
width = rects.right - rects.left
height = rects.bottom - rects.top
puts BEFORE #{x}
Thanks for your replies,
The date guide was really good, but as it is only a String comparison, I did
not want to over complicate the code.
I have also tried the other two suggestions, and have still not been able to
get the match to work.
I think that I might have to use an escape. I have tried
Hi,
Am v new to Watir/Ruby, so probably a simple question for someone.
I'm trying to put a loop in a script where it checks for a link on a page, if
the link isn't there, it clicks on the next page button, looks for the link
again, and the process repeats until it finds the link, and then
On 4/3/07, Fletch [EMAIL PROTECTED] wrote:
Thanks for your replies,
The date guide was really good, but as it is only a String comparison, I did
not want to over complicate the code.
I have also tried the other two suggestions, and have still not been able to
get the match to work.
I think
I'm trying to put a loop in a script where it checks for a link on a page, if
the link isn't there, it clicks on the next page button, looks for the link
again, and the process repeats until it finds the link, and then clicks on it.
It'd be easier to help if you would post a) the HTML
I'm not sure how new 'wait_until' is, but if you have it do
wait_until(time_to_wait_in_seconds){ $ie.element(:type,'value').exists? }
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
Sorry, probably my fault for not being clear about how new I am to this.
I want the code to do the following things:
1. Check on page for a link.
2. If link not there, press Next page
3. If link there, click on it.
4. When next page reached (if step 2 followed), repeat the action of looking
for
Aha, so you want to click Google's Next button? Take a look at
this, it might give you some ideas:
http://testingjeff.wordpress.com/2007/01/27/creating-methods-on-the-flyand-bugs-in-google-phonebook/
Also, if you are unsure how to address a particular page element, take
a look at the unittests
Hi,
I am unsure why IE is a nested class of the module watir
I was thinking of creating this object hierarchy
IE
ObjectMap
Test
Inheriting the IE class from the ObjectMap class.
aidy
___
Wtr-general mailing list
Wtr-general@rubyforge.org
isnt Jeffs code kind of over kill for this?
def link_there?
link_text = Click Me
return @ie.link(:text , link_text).exists?
end
while 1 # add something here to stop infinite loop
if link_there?
@ie.link(:text , link_text).click?
else
@ie.link(:text , Next).click
end
end
TW is about to release this thing called Mingle to manage agile
projects. Today they announced an upcoming tool for testers:
http://studios.thoughtworks.com/2007/4/2/how-our-testers-use-mingle
(see the last paragraph).
___
Wtr-general mailing list
You shouldn't have to invoke the garbage collector manually as it runs
automatically, most often when ruby is allocating memory and it's internal
memory tracker says there isn't any available or if allocating memory fails.
-Charley
On 4/3/07, vijay [EMAIL PROTECTED] wrote:
Thanks for all
Hi ,
I had asked for the stable version of Watir and Ruby becuse i was getting
the Access Denied error with the
latest versions .
But when i installed Ruby 1.8.5 and watir 1.5.1.1158 i still keep getting
the same error .
I think i m not installing it the right way ,please go through the
19 matches
Mail list logo