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
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
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
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
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
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
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
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 = '';
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
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
10 matches
Mail list logo