code for your stuff and the html
for the app.
Charley Baker
blog:http://blog.charleybaker.org/
Lead Developer, Watir,http://wtr.rubyforge.org
QA Architect, Gap Inc Direct
On Thu, May 7, 2009 at 1:53 PM, Moochie dduph...@redbrickhealth.com
wrote:
When I open a page that has widgets
When I open a page that has widgets it hangs on assert(object.exists?)
I've tried.
Added a long wait to make sure the page is fully loaded. Which did
nothing.
I've minimized the page - which worked
When it's running, and it starts to hang, I open another browser/or
click different page ot
when I run this:
sudo gem install safariwatir
I get this?
Building native extensions. This could take a while...
ERROR: Error installing safariwatir:
ERROR: Failed to build gem native extension.
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
extconf.rb
can't
list to someday
get the scripts running in Firewatir. But I just use Eclipse to edit my
Watir scripts on either box. Works well.
-- Lisa
On Tue, Apr 21, 2009 at 3:14 PM, Moochie dduph...@redbrickhealth.comwrote:
I was just give a mac and I've attempted to get watir working
I was just give a mac and I've attempted to get watir working on it,
but it said I couldn't save a file as .rb I could only save it
as .rtb.
Also, should I install ubuntu?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
#open first occurance of FF
$ie = Firefox.new :attach = true
#Navigate it to cnn.com
$ie.goto cnn.com
#This now works (Doesn't Hang)
system(C:\\Program Files\\Mozilla Firefox\\firefox.exe -
jssh)
#This still fails
$ie = FireWatir::Firefox.attach(:title,Google)
puts $ie.title
Any suggestions?
I'm using listbox_id.set(excel_value.to_s)
And it just doesn't seem to populate the listboxs in the modal.
Has anyone else seen this?
Thanks,
Darin
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Watir General
the listbox.
Is it because of the modal/thickbox?
-Original Message-
From: watir-general@googlegroups.com
[mailto:watir-gene...@googlegroups.com] On Behalf Of Moochie
Sent: Friday, April 10, 2009 11:05 AM
To: Watir General
Subject: [wtr-general] Firefox: Unable to set listbox
Paul,
Did you ever update the wiki? I'm not finding you direction sto get
passed this issue, and since I'm hitting the issue, and believe others
will. It would be nice to help other so the will not get a
frustrated.
Many thanks,
Darin
On Apr 7, 12:14 am, Paul Carvalho tester.p...@gmail.com
TBODY works nice
table_id.body
How could I create
THEAD
table.head
TFOOT
table.head
I looked for it in table.rb, I was going to see what it took to mimic
table_id.body, but I could even find that.
--~--~-~--~~~---~--~~
You received this message because you
Is there a way to get the row number when you know where the cell is?
$ie.cell(:text='blah',:index=2).rownbr?
Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Watir General group.
To post to this group, send
html
P
#text - 123 fake street
BR
#text - Crookston, MN 56716
From Excell
text = 123 fake street
Crookston, MN 56716
$ie.p(:text=text,:index=index).exists?
puts Pass
else
puts Failed - Makes it here.
end
So I had the function insert the text into excel using: to see
-general] Re: slice question
.slice(/\*.*\*/)
On Feb 25, 9:30 am, Moochie dduph...@redbrickhealth.com wrote:
I want to slice around tow * *, but the following doesn't work.
.slice(/*.**/)
I belive it because of the two * next to each other. Is thier a way I
can make this work
Still cannot figure this one out.
On Feb 20, 1:39 pm, Moochie dduph...@redbrickhealth.com wrote:
I'm writing code to be able to mask out a portion of the strings.
excel_value = testops on 02/19/2009*
if excel_value.index(*) != nill #Equals 21
puts excel_value
puts excel_value[0
I want to slice around tow * *, but the following doesn't work.
.slice(/*.**/)
I belive it because of the two * next to each other. Is thier a way I
can make this work?
Thanks,
Darin
--~--~-~--~~~---~--~~
You received this message because you are subscribed
I'm getting this same error.
I'm also unable to gems update because I get the following.
Error Failed to build gem native extension
rake blah blah blah
Gem::manage_gems is deprecated and will be removed on or after March
2009
I've search around to fix this, but I'm unable to.
if key in
I'm writing code to be able to mask out a portion of the strings.
excel_value = testops on 02/19/2009*
if excel_value.index(*) != nill #Equals 21
puts excel_value
puts excel_value[0,excel_value.index(*).to_i].to_s.strip
puts label_id.document.lastChild.nodeValue.to_s.strip
puts
def get_active_Element()
active_element =
current = $ie.document.activeElement
props = ['id','name','value']
props.each do |prop|
p = current.invoke(prop)
if current.invoke(prop) != nil
case current.invoke(type) #Error Here
when text
active_element =
to different types of elements.
Im guessing that maybe a link as the focus when you run this code and
type does not apply to links, hence the error
Paul
On Wed, Feb 11, 2009 at 10:14 AM, Moochie dduph...@redbrickhealth.com wrote:
def get_active_Element()
active_element =
current
get_button_properties(button_name)
Case button_name
when Add Dependent
button_id = $ie.div(:id,TB_ajaxContent).button
(:id,addDependent_submit)
end
return button_id
end
#Start of code
object_id = get_button_properties(Add
Got it!
require 'test/unit/assertions'
include Test::Unit::Assertions
get_button_properties(button_name)
Case button_name
when Add Dependent
button_id = $ie.div
(:id,TB_ajaxContent).button(:id,addDependent_submit)
end
return
I have a message that appears with a different number at the end,
(*) wild cards - where the number would be
Message = You have successfully saved the new screening data. (ID =
***)
#Check to see if * (wild card exist)
if message.index(*) != nil
#Formats string to ignore wild card text
I got it.
if message.index(*) != nil
myvar = message[0,message.index(*)].to_s
regxmyvar = Regexp.new myvar
puts $ie.div(:text,regxmyvar)
end
It failed if If my string end with '(' so I'm guessing special
characters have to be substituted.
On Jan 21, 11:37 am, Moochie dduph
#Doesn't work
table_id = $ie.table(:id,'value).body(:index,1)
put table_id.row_count
#Works
row_counter = 0
table_id.body(:index,1).each do | row |
row_counter = row_counter + 1
end
puts row_counter
--~--~-~--~~~---~--~~
You received this message because
Does anyone know how to move widgets on a page?
The class is ui-sortable.
I've search all over and I'm unable to find any helpful information
about drag and drop.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
#This doesn't work to click the below link.
$ie.link(:text,Total Cholesterol).click
Any suggestions?
A
#text (Total)
BR
#Text (Cholesterol)
I looked in to replacing BR tags with \/n\, using hpricot, but I
couldn't figure it out.
I've got a test case that enters a value in a text_field. I then
click next and I'm expecting a message to appear.
The problem is that when I populate the test and click the button it
puts the focus back on the text field and the message never appears.
I talked to a developer and he said it
if $ie.label(:text,label.to_s).exists?
I'm getting assert_exists: Unbale to locate element, using :text,
Text Value
Are you unable to check if a label exists using text attribute?
Thanks,
DD
--~--~-~--~~~---~--~~
You received this message because you are
I've been using 1.6.2 and I use this browser.attache method with know
problems.
On Dec 4, 1:46 pm, Bret Pettichord [EMAIL PROTECTED] wrote:
Where do you see that it is not supported?
aidy lewis wrote:
Hi,
On the wiki I am informed that the browser.attach method is not
supported in
Try using value at the end
Blah = excel.worksheets(4).Range(B2:J2).Value
puts Blah
On Dec 1, 12:46 pm, [EMAIL PROTECTED] wrote:
All,
I am trying to enter the contents of an array into an excel range.
Here is a sample of what I am doing now:
array = (0,1,2)
excel.Range(A1::A3) = array
For some reason when I attempt to find a value in a listbox that
contains three dots it doesn't find the value.
Has anyone else seen this?
Thanks,
Darin
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Watir
Like this?
http://blog.headius.com/2008/02/rubys-threadraise-threadkill-timeoutrb.html
On Nov 25, 3:57 pm, Moochie [EMAIL PROTECTED] wrote:
How did you create a separate thread?
Thanks,
Darin
On Nov 25, 1:37 pm, JArkelen [EMAIL PROTECTED] wrote:
Hi,
I have the same issue on our
#Cycles through all the li Tags
counter = 0
$ie.div(:attribute,attribute_valu).lis.each {|li|
counter = counter + 1
}
On Nov 24, 10:48 am, Natasha [EMAIL PROTECTED] wrote:
Hi all,
Is there a shortcut code for looping through all the LI elements
within a DIV tag?
I want to find number
Yep, that worked.
It appears that using :text and :index together is the issue.
I can user :id and :index together.
On Nov 4, 11:23 am, Michael Hwee [EMAIL PROTECTED] wrote:
Make sure this works:
$ie.label(:text,Reported by).exists?
- Original Message
From: Moochie [EMAIL
, but if it is using tables for layout,
then
that's invalid HTML according to W3C.
Just some thoughts.
Nathan
On Fri, Oct 24, 2008 at 6:48 AM, Moochie [EMAIL PROTECTED]wrote:
Someone posted this code and it worked really well for me.
#Get actual row count when enbedded tables
Bret,
When you user browser.text, can you figure out if the text is visible?
I used the pagecontainstext to start with, but it would identify text
that was invisible on the page.
Thanks,
On Oct 13, 9:45 am, Bret Pettichord [EMAIL PROTECTED] wrote:
Have you looked at browser.text?
36 matches
Mail list logo