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.
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 =
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
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
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
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 !=
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
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?
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