Try bellow codes :
               @@m_Br = Watir::IE.new
                win = @@m_Br.document.parentWindow
                sCode = "document.grid = Ext.getCmp(\'#{sGridID}
\');" //javascript code need to run
                win.eval(sCode)

Cheers,
Nghia

On Oct 7, 2:22 pm, Pallavi Sharma <write2pall...@gmail.com> wrote:
> Hi
>
> Can anyone here please tell how can we execute the JavaScript statement
> directly in Watir???
>
>
>
> On Tue, Sep 15, 2009 at 3:30 PM, karim rayani <karim....@gmail.com> wrote:
>
> > well, some javascript script even has not been triggered, you can ask
> > the developer for the javascript event that is being invoked and
> > invoke the same, as we know that in watir we can execute javascript
> > statements as well.
>
> > Regards,
>
> > Karim Rayani
>
> > On Tue, Sep 15, 2009 at 3:18 PM, Rajat Singhal <coolraja...@gmail.com>
> > wrote:
> > > Hi AJ
>
> > > Can you please provide a solution for this ASAP
> > > Thanks
>
> > > Can y
>
> > > On Fri, Sep 11, 2009 at 10:45 AM, Rajat Singhal <coolraja...@gmail.com>
> > > wrote:
>
> > >> Hi AJ
>
> > >> It moves the slider but does not change the time\price value accordingly
> > >> displayed above the slider .
> > >> and results are not filtered on changing style value of div.
> > >> kindly do let me know how it is possible
>
> > >> Thanks
> > >> Rajat Singhal
>
> > >> On Thu, Sep 3, 2009 at 4:03 PM, AJ <ajithoffic...@gmail.com> wrote:
>
> > >>> Hi Ravinder,
>
> > >>> You can automate it as shown below,
>
> > >>> sliderLeft = ie.div(:class => "zpSliderButtonHorizontal", :index =>
> > >>> 1)   // U can identify each slider by providing an appropriate index.
> > >>> sliderLeft.style.value = 10          // Replace 10 with any value. It
> > >>> will move the slider accordingly
>
> > >>> -AJ
>
> > >>> On Sep 1, 4:25 pm, Ravinder Singroha <ravindersingr...@gmail.com>
> > >>> wrote:
> > >>> > Hi,
>
> > >>> > We have a scenario wherein we need to drag and drop a slider in order
> > >>> > to define a filter for a specific range (time/price).
>
> > >>> > Please find attached the screen-shot for the sliders.
>
> > >>> > Steps to reach the concerned screen:-
> > >>> > 1. Gotowww.makemytrip.com
> > >>> > 2. Select one-way trip, fill in details and click on Search button
> > >>> > 3. Find the sliders for Price and Time range filters on the top left
> > >>> > panel "Filter Your Results" of the resulting Listing page.
>
> > >>> > Please do let us know if it would be possible to automate this
> > >>> > scenario using Watir.
>
> > >>> > Thx
>
> > >>> > Ravinder Singroha
>
> > >> --
> > >> Regards
>
> > >> Rajat Singhal
> > >> +919718729742
>
> > > --
> > > Regards
>
> > > Rajat Singhal
> > > +919718729742
>
> > --
> > Regards,
>
> > Alkarim Rayani

--~--~---------~--~----~------------~-------~--~----~
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