[wtr-general] Re: currentstyle not working in firefox

2009-06-09 Thread Loft_Tester
Ok, I tried to use style. For IE this works. puts $Browser.text_field(:id,/PART/).style.invoke('left') when I try it in firefox I get Exception: undefined method `invoke' for [object CSSStyleDeclaration]:String has Occurred I feel as though I'm close I'm just missing something simple. Am I

[wtr-general] Re: currentstyle not working in firefox

2009-06-09 Thread Loft_Tester
Is there a differant method other than invoke for style that works? On Jun 9, 11:25 am, Loft_Tester aaronr...@gmail.com wrote: Ok, I tried to use style. For IE this works. puts $Browser.text_field(:id,/PART/).style.invoke('left') when I try it in firefox I get   Exception: undefined

[wtr-general] Re: currentstyle not working in firefox

2009-06-09 Thread Chuck van der Linden
what I've noticed re .style is that for some things that are standard (visibility for example) I can just do browser.element(how,what).style.visibility For some other things we've defined outselves (for example we use 'z- index') we had to remove special characters (the dash) and do it in

[wtr-general] Re: currentstyle not working in firefox

2009-06-09 Thread Loft_Tester
I'm dropping this little chunk of code in there that tries to pull style attributes from fields. What I'm attaching you can copy right into an .rb file and run. You can also toggle from IE to Firefox. I'm not sure if this was the best page to test against but since I'm asking for lots of help

[wtr-general] Re: currentstyle not working in firefox

2009-06-08 Thread Loft_Tester
OK, I tried working on this for sometime but I haven't come up with anything that works. I think my problem is that I am not familiar with jssh command language and how it works. maybe if I get some help with one conversion I'll be able to do the rest on my own. I have this field

[wtr-general] Re: currentstyle not working in firefox

2009-06-08 Thread Loft_Tester
Is there another workaround for this? Thanks On Jun 8, 10:38 am, Loft_Tester aaronr...@gmail.com wrote: OK, I tried working on this for sometime but I haven't come up with anything that works.  I think my problem is that I am not familiar with jssh command language and how it works.  maybe if

[wtr-general] Re: currentstyle not working in firefox

2009-06-08 Thread Chuck van der Linden
have you tried just using the .style method on the specific object? On Jun 8, 11:00 am, Loft_Tester aaronr...@gmail.com wrote: Is there another workaround for this? Thanks On Jun 8, 10:38 am, Loft_Tester aaronr...@gmail.com wrote: OK, I tried working on this for sometime but I haven't

[wtr-general] Re: currentstyle not working in firefox

2009-06-05 Thread Tony
Hi, You could use getComputedStyle. This is similar to currentstyle in IE. Here is a function that is similar to the ie's element.visible function which uses getComputedStyle to get the current visibility style- def visible? assert_exists jssh_command = var val = 'true'; var str = '';

[wtr-general] Re: currentstyle not working in firefox

2009-06-05 Thread Loft_Tester
I'll give it a shot 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

[wtr-general] Re: currentstyle not working in firefox

2009-06-04 Thread Loft_Tester
sorry I got a little click happy I think it's funny that document didn't return anything does anyone know away around this? is there another way to pull style information other than currentstyle? please help --~--~-~--~~~---~--~~ You received this message