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 method `invoke'
> for "[object CSSStyleDeclaration]":String" has Occurred
>
> I feel as though I'm close I'm just missing something simple.  Am I
> using style correctly for firefox
>
> On Jun 8, 5:02 pm, Chuck van der Linden <sqa...@gmail.com> wrote:
>
>
>
> > 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 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 $Browser.text_field(:id,"part")
>
> > > > In the method I created it pretty much looks like this
>
> > > > fieldID = 'part'
> > > > styleID = 'left'
> > > > attribute  = $Browser.text_field
> > > > (:id,fieldID).document.currentstyle.send(styleID ) #(ruby's send works
> > > > awsome for thie)
>
> > > > "attibute" is equal to lefts value
>
> > > > So what I need to to figure out how to input the field ID and property
> > > > I'm looking for and have it return the correct value.  Thanks again
> > > > for all the help- Hide quoted text -
>
> > > - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to