[wtr-general] Re: Problems using visible

2008-10-30 Thread Paul Rogers
the html in the app is way to scary to simplify and post ( goto www.tynt.com and use the try it functionality if youd like to see ) I'll try and post a sample of this though Paul On Thu, Oct 30, 2008 at 1:52 AM, Tony [EMAIL PROTECTED] wrote: Hi Bret, Added the updated code to the ticket.

[wtr-general] Re: Problems using visible

2008-10-29 Thread Tony
ahh ... forgot about the visibility attribute. :) The below is the updated code def visible? jssh_command = var val = 'true'; var str = ''; var obj = #{element_object}; while (obj != null) { try { str = document.defaultView.getComputedStyle(obj,null).visibility; if (str=='hidden') { val =

[wtr-general] Re: Problems using visible

2008-10-29 Thread Tony
Was running the tests for some time .. and suddenly i started getting wrong results for visible. Look like the #{element_object} was returning null sometimes. Dont know why Started working after adding assert_exists Heres the updated code - class Element def visible? assert_exists

[wtr-general] Re: Problems using visible

2008-10-29 Thread Bret Pettichord
I opened up a ticket with your suggestion. Would you mind updating it with your latest code? http://jira.openqa.org/browse/WTR-262 Tony wrote: Was running the tests for some time .. and suddenly i started getting wrong results for visible. Look like the #{element_object} was returning null

[wtr-general] Re: Problems using visible

2008-10-29 Thread Paul Rogers
for people in the future searching the archives, its also worth noting that visible? has some other problems. The app i work on 'hides' stuff from the user by moving it to coordinates -1000, -1000. THis way the thing is still in the dom, and can be made to appear quicker by changing its

[wtr-general] Re: Problems using visible

2008-10-28 Thread Tony
Hi All, Here's a solution to find the visible elements in Firefox. Override the Elements class in MozillaBaseElement.rb file to include the below code - require 'firewatir' class Element def visible? jssh_command = var val = 'true'; var str = ''; var obj = #{element_object}; while (obj !=

[wtr-general] Re: Problems using visible

2008-10-28 Thread Paul Rogers
in my implementation I seem to also be checking the value of the visibility css attribute. Paul On Tue, Oct 28, 2008 at 8:04 AM, Tony [EMAIL PROTECTED] wrote: Hi All, Here's a solution to find the visible elements in Firefox. Override the Elements class in MozillaBaseElement.rb file to

[wtr-general] Re: Problems using visible

2008-10-23 Thread al3kc
Should this work for FireWatir? I tried to change it for FireWatir::Element but it doesn't work. Željko Filipin [EMAIL PROTECTED] wrote: On Mon, Sep 8, 2008 at 5:48 PM, Bret Pettichord [EMAIL PROTECTED] wrote: I think you need to require something before using this method. Any one?

[wtr-general] Re: Problems using visible

2008-10-23 Thread Bret Pettichord
This code is IE specific. al3kc wrote: Should this work for FireWatir? I tried to change it for FireWatir::Element but it doesn't work. Željko Filipin [EMAIL PROTECTED] wrote: On Mon, Sep 8, 2008 at 5:48 PM, Bret Pettichord [EMAIL PROTECTED] wrote: I think you need to require