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

2009-05-13 Thread Moochie

The issue I was having had to do with an error on the page within one
of the widgets.

It was a struts error (whatever that is)

Once I removed that widget, it ran without hanging.



On May 7, 4:33 pm, Darin Duphorn dduph...@redbrickhealth.com
wrote:
 Have you been to igoogle?  Those information boxes are widgets.

 The html is basically Div(:id,widget_blah), but when a page open they
 use ajax to load the information on the widgets separately from the rest
 of the page.

 As for button_id is the a variable I use for a button button_id =
 $ie.button(:text,blah)

 I think I might have figured out a solution.

 Thanks for the reply

 

 From: watir-general@googlegroups.com
 [mailto:watir-gene...@googlegroups.com] On Behalf Of Charley Baker
 Sent: Thursday, May 07, 2009 3:17 PM
 To: watir-general@googlegroups.com
 Subject: [wtr-general] Re: Weird timing behavior when using
 assert(object.exists?) when widgets exist.

 What's a widget? My search on Wikipedia turns up 
 this:http://en.wikipedia.org/wiki/Widget. I also have no clue as to what
 button_id or object_id are - though I can take guess, but it's custom
 code. Simplify and post some real live 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 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 tab and it no longer hangs.

 I've put timers in and realized it freezes on the follow:

 assert(object_id.exists?) #Any object

 if button_id == nil

 I opened in Firefox and the page doesn't display errors when using
 Firebug. I'm actually testing using IE 7.0.

 Has anyone run into this or does anyone have a suggestions?

 Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



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

2009-05-07 Thread Charley Baker
What's a widget? My search on Wikipedia turns up this:
http://en.wikipedia.org/wiki/Widget. I also have no clue as to what
button_id or object_id are - though I can take guess, but it's custom code.
Simplify and post some real live 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 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 tab and it no longer hangs.

 I've put timers in and realized it freezes on the follow:

 assert(object_id.exists?) #Any object


 if button_id == nil

 I opened in Firefox and the page doesn't display errors when using
 Firebug. I'm actually testing using IE 7.0.

 Has anyone run into this or does anyone have a suggestions?

 Thanks
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



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

2009-05-07 Thread Darin Duphorn
Have you been to igoogle?  Those information boxes are widgets.

 

The html is basically Div(:id,widget_blah), but when a page open they
use ajax to load the information on the widgets separately from the rest
of the page.

 

As for button_id is the a variable I use for a button button_id =
$ie.button(:text,blah)

 

I think I might have figured out a solution.

 

Thanks for the reply

 

 

 



From: watir-general@googlegroups.com
[mailto:watir-gene...@googlegroups.com] On Behalf Of Charley Baker
Sent: Thursday, May 07, 2009 3:17 PM
To: watir-general@googlegroups.com
Subject: [wtr-general] Re: Weird timing behavior when using
assert(object.exists?) when widgets exist.

 

What's a widget? My search on Wikipedia turns up this:
http://en.wikipedia.org/wiki/Widget. I also have no clue as to what
button_id or object_id are - though I can take guess, but it's custom
code. Simplify and post some real live 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 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 tab and it no longer hangs.

I've put timers in and realized it freezes on the follow:

assert(object_id.exists?) #Any object


if button_id == nil

I opened in Firefox and the page doesn't display errors when using
Firebug. I'm actually testing using IE 7.0.

Has anyone run into this or does anyone have a suggestions?

Thanks





--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---