[wtr-general] Re: Unable to click on Tabs

2009-05-29 Thread Chuck van der Linden
Yeah dealing with stuff like this where it's all dynamically driven, events based, and there are many many nested objects on the screen is a challenge. Especially since it looks like the events and other things are defined in entirely different areas of the code.. For example at the URL given

[wtr-general] Re: Unable to click on Tabs

2009-05-28 Thread Mark Anderson
:36 AM To: Watir General Subject: [wtr-general] Re: Unable to click on Tabs I am getting the following message when I try to click on the tabs. this is the code $ie.span(:text ,Documents).span(:index,1).fire_event ('onclick') $ie.div(:id,tabContent5).file_field(:name, theFile).set

[wtr-general] Re: Unable to click on Tabs

2009-05-27 Thread Vishal
I am getting the following message when I try to click on the tabs. this is the code $ie.span(:text ,Documents).span(:index,1).fire_event ('onclick') $ie.div(:id,tabContent5).file_field(:name, theFile).set(d: \testcase.txt) Exception which i am getting is

[wtr-general] Re: Unable to click on Tabs

2009-04-28 Thread «°¤§ømåtïçCðrp§ë¤°»
I'm a no0b, when it comes to things like this, but if the tabs exist in frames, then you can use the id to drill down to the section you want. i.e.: browser.frame(:id, tabs).button(:id, tab1).click Using this method, you don't need to explicity call out the onClick or onFire methods. Given that

[wtr-general] Re: Unable to click on Tabs

2009-04-24 Thread Željko Filipin
On Fri, Apr 24, 2009 at 12:32, Vishal bvkon...@gmail.com wrote: Please let me know how to click on these tabs What have you tried so far? Željko -- http://watirpodcast.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[wtr-general] Re: Unable to click on Tabs

2009-04-24 Thread Vishal
I tried i) $ie.span(:text ,Documents).span(:index,1).fire_event('onMouseDown') The control is focusing on The tab but its not clicking. On Apr 24, 3:36 pm, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Fri, Apr 24, 2009 at 12:32, Vishal bvkon...@gmail.com wrote: Please let me know

[wtr-general] Re: Unable to click on Tabs

2009-04-24 Thread Željko Filipin
On Fri, Apr 24, 2009 at 12:47, Vishal bvkon...@gmail.com wrote: $ie.span(:text ,Documents).span(:index,1).fire_event('onMouseDown') Try this: $ie.span(:text ,Documents).span(:index,1).click Did you ask a developer which event should be fired? That is usually the quickest way to find it out.

[wtr-general] Re: Unable to click on Tabs

2009-04-24 Thread Vishal
I tried that too, Its not clicking. Our application has implemented the Tab feature from below link. http://extjs.com/deploy/dev/examples/tabs/tabs.html On Apr 24, 3:49 pm, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Fri, Apr 24, 2009 at 12:47, Vishal bvkon...@gmail.com wrote:

[wtr-general] Re: Unable to click on Tabs

2009-04-24 Thread Željko Filipin
On Fri, Apr 24, 2009 at 13:04, Vishal bvkon...@gmail.com wrote: http://extjs.com/deploy/dev/examples/tabs/tabs.html Now you are talking. :) I have played a bit with the page, but clicking link via click or firing onclick event does not open tab. Did you ask a developer which event should be

[wtr-general] Re: Unable to click on Tabs

2009-04-24 Thread Vishal
I asked the Developers they are saying when we click on Tabs , javascript from Extjs is called and tab contents are displayed. On Apr 24, 4:12 pm, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Fri, Apr 24, 2009 at 13:04, Vishal bvkon...@gmail.com wrote:

[wtr-general] Re: Unable to click on Tabs

2009-04-24 Thread Željko Filipin
On Fri, Apr 24, 2009 at 14:26, Vishal bvkon...@gmail.com wrote: I asked the Developers they are saying when we click on Tabs , javascript from Extjs is called and tab contents are displayed. You need more detailed answer. Which javascript event is fired when tab is clicked? Answer could be

[wtr-general] Re: Unable to click on Tabs

2009-04-24 Thread Vishal
Onclick event is fired. On Apr 24, 5:34 pm, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Fri, Apr 24, 2009 at 14:26, Vishal bvkon...@gmail.com wrote: I asked the Developers they are saying when we click on Tabs , javascript from Extjs is called and tab contents are displayed.

[wtr-general] Re: Unable to click on Tabs

2009-04-24 Thread Vishal
Yes, I too had tried Onclick event. Its not working. Do you have any other suggestions? On Apr 24, 5:41 pm, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Fri, Apr 24, 2009 at 14:39, Vishal bvkon...@gmail.com wrote: Onclick event is fired. I tried to fire onclick event on one tab,

[wtr-general] Re: Unable to click on Tabs

2009-04-24 Thread Željko Filipin
On Fri, Apr 24, 2009 at 14:53, Vishal bvkon...@gmail.com wrote: Do you have any other suggestions? Ask your developer(s) are they sure that onclick is fired. If the answer is yes, show them how your code can open tab when firing that event. Željko