Hi Friends,
we have developed nearly around 200 scripts witth WATIR. The
applicaiton is a web applicaiton for a credit card domain.
We have extensively used all IE objects and methods in the scripts.
The pop up message are handled with @@autoit addin software. The
reports are prepared with
HI,
In my application, to enter a date for a field, we need to do it using
the calendar icon. This is the only option to enter data in that
field. The code i wrote for this is
$ie.image(:src, /calendar/).click
sleep(7)
$ie2 = Watir::IE.find(:title, /Calendar/)
$ie2.select_list(:id,
Hi, please help I'm getting an error when trying to open a new
browser.
class TSuite Test::Unit::TestCase
def test_testcase1
$ie = Watir::IE.new
end
def test_testcase2
$ie = Watir::IE.new error here
end
def teardown
$ie.close
end
end
Error:
WIN32OLERuntimeError:
Problem solved.
found the solution here: http://jira.openqa.org/browse/WTR-304
edited ie-class.rb with this:
def close
return unless exists?
@closing = true
@ie.stop
wait
chwnd = @ie.hwnd.to_i
@ie.quit
while Win32API.new(user32,IsWindow, 'L', 'L').Call(chwnd) == 1
sleep 0.3
Hi Raveendran,
It works.. Thanks a lot..
Regards
Durgesh.
--- On Thu, 13/8/09, Raveendran P jazzezr...@gmail.com wrote:
From: Raveendran P jazzezr...@gmail.com
Subject: [wtr-general] Re: How to click the link in dynamically generated ajax
content?
To: watir-general@googlegroups.com
Date:
Hi Durgesh,
Cool !
Let me know which code solved your issue ?
On Fri, Aug 14, 2009 at 4:06 PM, Durgesh Nadkarni fordurg...@yahoo.co.inwrote:
Hi Raveendran,
It works.. Thanks a lot...
Regards
Durgesh.
--- On *Thu, 13/8/09, Raveendran P jazzezr...@gmail.com* wrote:
From: Raveendran P
Hi,
The same code which you have given in the previous mail.
check=browser.link(:id,PageLinkDisabled).enabled?
if check == true
It is Enabled. Continue your work
else
It is Disabled
end
Regards
Durgesh.
--- On Fri, 14/8/09, Raveendran P jazzezr...@gmail.com wrote:
From: Raveendran P
Fine.
On Fri, Aug 14, 2009 at 5:48 PM, Durgesh Nadkarni fordurg...@yahoo.co.inwrote:
Hi,
The same code which you have given in the previous mail.
check=browser.link(:id,PageLinkDisabled).enabled?
if check == true
It is Enabled. Continue your work
else
It is Disabled
end
Regards
Hello,
using firewatir, ff.link(:text = foo,:index = 2).click works fine
but I would like to click on the last link found on the page.
Then ff.link(:text = foo,:index = 0).click should work.
But firewatir can not find this element.
Do you have another solution ?
Thank you.
--
Alexandre Delanoƫ
: index= 0 is not the last item.
- Original Message
From: Alexandre neonoe123...@gmail.com
To: WATIR watir-general@googlegroups.com
Sent: Friday, August 14, 2009 5:40:55 AM
Subject: [wtr-general] :index = 0 with firewatir
Hello,
using firewatir, ff.link(:text = foo,:index =
It did not help.
Any other ideas? I have not such a problem in the past.
Thanks in advance.
Anna
2009/8/10 Charley Baker charley.ba...@gmail.com
The most likely situation is that you're behind a proxy server:
On Fri, Aug 14, 2009 at 5:49 PM, Michael Hweemichael_h...@yahoo.com wrote:
: index= 0 is not the last item.
Well, that depends on how the 1-indexed Watir collections are implemented. :)
The best solution for getting the last item in this case is:
browser.links.select { |l| l.text ==
Run the following at the command line:gem sources
This will list out the sources configured on your system.
And, if that fails, then try the following:
gem env
This lists out your current RubyGems environment.
And if all of those fail, then I'd be willing to hazard a guess that you may
want to
I wish you had posted this months ago :-)
I had to do exactly what you did but had to figure it all out myself.
Sadly, this solution does not work in IE8 standard mode. It works
fine in IE7 and IE8 complaint mode but not in standard mode. The right
click still works fine in IE8 standard mode
thanks i will try that.
2009/8/14 Jason Trebilcock jason.trebilc...@gmail.com
Run the following at the command line: gem sources
This will list out the sources configured on your system.
And, if that fails, then try the following:
gem env
This lists out your current RubyGems environment.
Actually, it does seem that this method does work in IE8 standard
mode, just that the pixels were slightly off. I did not have the
extra push of two pixels in my code that you had in yours and this
seemed to be the difference between IE7/IE8 complaint mode and IE8
standard mode.
BTW, 1 pixel
Hi,
I just want to ask how can I get all the links inside an object (ex.
table) using ie.links?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Watir General group.
To post to this group, send email to
17 matches
Mail list logo