[wtr-general] Re: Weird timing behavior when using assert(object.exists?) when widgets exist.

2009-05-13 Thread Moochie
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

[wtr-general] Weird timing behavior when using assert(object.exists?) when widgets exist.

2009-05-07 Thread Moochie
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

[wtr-general] Re: Does Watir 1.6.2 install on Mac OS X?

2009-04-26 Thread Moochie
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

[wtr-general] Re: What editor should I use for mac?

2009-04-23 Thread Moochie
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

[wtr-general] What editor should I use for mac?

2009-04-21 Thread Moochie
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

[wtr-general] Re: firewatir and jssh

2009-04-14 Thread Moochie
#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?

[wtr-general] Firefox: Unable to set listbox that exist in a thickbox\modal

2009-04-10 Thread Moochie
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

[wtr-general] Re: Firefox: Unable to set listbox that exist in a thickbox\modal

2009-04-10 Thread Moochie
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

[wtr-general] Re: FireWatir 1.6.2 unittests don't run

2009-04-09 Thread Moochie
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

[wtr-general] How do you recommend working with table THEAD or TFOOT?

2009-03-13 Thread Moochie
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

[wtr-general] Get Row Number using cell information

2009-03-11 Thread Moochie
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

[wtr-general] Comparing Tag Text when a BR Exists

2009-03-04 Thread Moochie
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

[wtr-general] Re: slice question

2009-02-27 Thread Moochie
-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

[wtr-general] Re: Issue converting strings

2009-02-25 Thread Moochie
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

[wtr-general] slice question

2009-02-25 Thread Moochie
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

[wtr-general] Re: msvcr80-ruby18.dll was not found error troubles

2009-02-23 Thread Moochie
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

[wtr-general] Issue converting strings

2009-02-20 Thread Moochie
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

[wtr-general] Error Handling Help

2009-02-11 Thread Moochie
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 =

[wtr-general] Re: Error Handling Help

2009-02-11 Thread Moochie
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

[wtr-general] exists? with multiple identifiers

2009-02-03 Thread Moochie
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

[wtr-general] Re: exists? with multiple identifiers

2009-02-03 Thread Moochie
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

[wtr-general] How can I use a variable in the following $ie.div(:text,/variable_name/)

2009-01-21 Thread Moochie
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

[wtr-general] Re: How can I use a variable in the following $ie.div(:text,/variable_name/)

2009-01-21 Thread Moochie
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

[wtr-general] Why doesn't this work put table_id.body(:index, 1).row_count

2009-01-21 Thread Moochie
#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

[wtr-general] Drag and Drop with widgets

2009-01-15 Thread Moochie
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

[wtr-general] Unable to click link that contains a BR tag between the text

2009-01-13 Thread Moochie
#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.

[wtr-general] blur

2009-01-09 Thread Moochie
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

[wtr-general] if $ie.label(:text,label.to_s).exists? - Assertion Error

2009-01-08 Thread Moochie
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

[wtr-general] Re: browser.attach

2008-12-04 Thread Moochie
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

[wtr-general] Re: Excel Ranges and Ruby

2008-12-01 Thread Moochie
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

[wtr-general] Unable to find the value blah... within a listbox. Value is retrieved from excel cell

2008-12-01 Thread Moochie
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

[wtr-general] Re: Page Loading Issues

2008-11-25 Thread Moochie
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

[wtr-general] Re: Looping through LI elements within a specific DIV tag

2008-11-24 Thread Moochie
#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

[wtr-general] Re: Using multiple attribute type to locate label tags?

2008-11-04 Thread Moochie
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

[wtr-general] Re: table row_count incorrect

2008-10-24 Thread Moochie
, 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

[wtr-general] Re: check the pagetext

2008-10-13 Thread Moochie
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?