I suspect that your problem is in the path + filename definition. On
Windows I have always had to use / or \\ instead of the \ in defining
paths. I also advise not using directories with spaces in the names. You
may also under certain circumstances need to escape the . in .xls with a
\
HTH
exist method does not work, because the control exist but its hidden, and there
is not a hidden? methodthat the reason for what ive asked if how i can find
out that a control is hidden or not..
___
Wtr-general mailing list
Wtr-general@rubyforge.org
Try the following
Category is holding an array and not just a single variable. Thereby each
value needs to be picked up and then assigned.
category.each do |cat|
ie.text_field(:name,ctl00$ContentPlaceHolder1$txtCategory).set(cat.to_s)
___
Step 1:
Since it is a dialog box, Attach the focus to this page by using the following:
ie = Watir::IE.attach(:title, Web Page Dialog)
Step 2:
Do a puts ie.show_all_objects
This will give the various objects and their identification attributes.
Step 3:
Based on the above output, perform the
Hi Sapna,
The HTML code was not there , But you can try this
string=ie.link(:id,'yourlink'sID').text
mytext=string.split(' ') #Separated by space
yourtext=mytext[mytext.length - 1]
For more help you can refer array class in ruby
Let me know if it is helpful
Ajitesh
Thanks it is working fine.
thanx for ur help
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
Hi all,
Please tell me how to count link from a table.
Regards
shalini gupta
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
Hi,
Could anyone give or point me to branches of Watir?
I currently have:
1. FireWatir - runs tests within FireFox
2. Watij - Java API that is not bound to IE and can run on various
operating systems
Thanks
Aidy
___
Wtr-general mailing list
Hi Aidy,
There is a wiki page called Alternative Tools For Web Testing.
http://wiki.openqa.org/display/WTR/Alternative+Tools+For+Web+Testing
Zeljko
--
ZeljkoFilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
ie.links.length # show how many links are on the
page.
May be u can use this (or modify it to access table)method for links in table
___
Wtr-general mailing list
Wtr-general@rubyforge.org
Hi there,
Is there somebody hwo can tell me how can I make a IE window active in order to
make some changes to its objects...So my script clicks on a button that opens a
new IE window, more like a pop-up, and should fill some fields in this new
window. I have tryied makeWindowActive() but no
Hi Claudiu,
If pop up window is new Internet Explorer window, you can attach to it with
eiher of this.
ie = Watir::IE.attach(:title, title)
ie = Watir::IE.attach(:url, url)
Zeljko
--
ZeljkoFilipin.com
___
Wtr-general mailing list
I think this is in contrib:
http://jira.openqa.org/browse/WTR-53
On 7/10/07, mihai [EMAIL PROTECTED] wrote:
exist method does not work, because the control exist but its hidden, and
there is not a hidden? methodthat the reason for what ive asked if how i
can find out that a control is
str = tdWhat was your first pet's name?/tdtdAnother sentence here/td
sentences = str.scan(/td([^]*)/)
last_words_arr = []
for arr in sentences
sentence = arr.first
sentence.gsub!('?', '')
sentence.gsub!('.', '')
sentence.gsub!('!', '')
last_word = sentence.split.last
last_words_arr
The error pretty much tells you the story. You're taking an array: category=
worksheet.Range('a2:a4') ['Value'] and pushing it into a method that
accepts a string. If you want the whole array to be a string then convert it
to a string:
category=worksheet.Range('a2:a4') ['Value']
category.to_s
Hm...how about this:
sentences =eof
some words and more words then some more words and the last one word in a
sentence1.
Next sentence and more words and the last one word in a sentence2.
and here too
and then some more here
and last word of the last sentence.
eof
words = sentences.split # or
have you looked at the modal_dialog stuff in watir? Ive never used it so cant
help you much, but its there.
- Original Message -
From: Matt Berney [EMAIL PROTECTED]
Date: Tuesday, July 10, 2007 12:10 pm
Subject: Re: [Wtr-general] Selecting controls in a dialog box
To:
Paul Rogers wrote:
have you looked at the modal_dialog stuff in watir? Ive never used it
so cant help you much, but its there.
+1
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
We have some code that on a MouseOver sets the window.status field. Is there a
way to access this in Watir?
HTML Code:
td class='fnt' valign=bottom
a href=javascript:show_calendar('frmDateRange.txtbegin_date');
onmouseover=window.status='Date Picker';return true;
ie.status
- Original Message -
From: marty [EMAIL PROTECTED]
Date: Tuesday, July 10, 2007 2:08 pm
Subject: [Wtr-general] How to access the window.status pane
To: wtr-general@rubyforge.org
We have some code that on a MouseOver sets the window.status
field. Is there a way to access
I apologize. I found it about 5 minutes after posting. This will teach me to go
through ALL of my resources before bothering the group. Thanks for your support.
___
Wtr-general mailing list
Wtr-general@rubyforge.org
I did recently install Visual Studio, so I could track down some issues
with an MS application. I wonder if some of the environment variables
it set could be interfering?
Pardon my inclusion of previous quotes last time. That was accidental.
Here is my environment:
Hi Bret,
here's my 2 New Zealand cents worth on the issue tempered somewhat by
experiences I've had over the past week or so.
Our situation:
1. Our web application uses Javascript dialogs, modal dialogs and occasionally
raises extra browser windows.
2. In order to aid the continuous testing of
23 matches
Mail list logo