[wtr-general] Re: Unable to Click Submit button
I tried in IRB, but I am getting the same exception. I tried with Link also, its giving the same error. On May 10, 9:15 pm, Tiffany Fodor tcfo...@comcast.net wrote: Hi Vishal! The error message you're getting suggests that Watir can't find the button with id 'showSearchCriteriaButton'. Have you verified that your browser is on the page you expect and that you get the same error when you attempt to perform the action in an irb session? Sometimes elements that appear as buttons are actually links. Have you tried the following? $ie.link(:text, 'Show Search Criteria').click Hope this helps! -Tiffany On May 10, 4:55 am, Vishal bvkon...@gmail.com wrote: My program it unable to click on Submit button. Below is the Code My code : def Click_Show_Criteria $ie.button(:id,'showSearchCriteriaButton').click end HTML: TABLE cellpadding=0 cellspacing=0 style='width:100%'TR class='action_button_area'TD style='width:99%'BUTTON id='hideSearchCriteriaButton' onclick='hideSearchCriteria()'Hide Search Criteria/BUTTONBUTTON id='showSearchCriteriaButton' onclick='showSearchCriteria()' onmouseover='showFriendlySearchCriteriaText(this)' style='display:none'Show Search Criteria/BUTTONnbsp;TD NOWRAPDIV NOWRAP id='_datasetNavArea'/DIVTD style='text- align:right' NOWRAPa id='subSearchNavArea' style='display:none;color:black' href='#' onclick='popSearch();return false;'lt;lt;Back/anbsp;TD style='text-align:right' NOWRAPTD style='text-align:right' NOWRAP id='optionsArea'TD style='text- align:right' NOWRAPGroup By: SELECT onchange='handleGroupBy(this);'OPTION m_index='-1'No GroupingOPTION m_Index='2' m_DateGranularity='1'Status/SELECT/ TABLE I am getting following error d:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:52:in `assert_ex ists': Unable to locate element, using :id, showSearchCriteriaButton (Watir::E xception::UnknownObjectException) -- Before posting, please readhttp://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed tohttp://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com -- Before posting, please readhttp://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed tohttp://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com- Hide quoted text - - Show quoted text - -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com
[wtr-general] Unable to Click Submit button
My program it unable to click on Submit button. Below is the Code My code : def Click_Show_Criteria $ie.button(:id,'showSearchCriteriaButton').click end HTML: TABLE cellpadding=0 cellspacing=0 style='width:100%'TR class='action_button_area'TD style='width:99%'BUTTON id='hideSearchCriteriaButton' onclick='hideSearchCriteria()'Hide Search Criteria/BUTTONBUTTON id='showSearchCriteriaButton' onclick='showSearchCriteria()' onmouseover='showFriendlySearchCriteriaText(this)' style='display:none'Show Search Criteria/BUTTONnbsp;TD NOWRAPDIV NOWRAP id='_datasetNavArea'/DIVTD style='text- align:right' NOWRAPa id='subSearchNavArea' style='display:none;color:black' href='#' onclick='popSearch();return false;'lt;lt;Back/anbsp;TD style='text-align:right' NOWRAPTD style='text-align:right' NOWRAP id='optionsArea'TD style='text- align:right' NOWRAPGroup By: SELECT onchange='handleGroupBy(this);'OPTION m_index='-1'No GroupingOPTION m_Index='2' m_DateGranularity='1'Status/SELECT/ TABLE I am getting following error d:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:52:in `assert_ex ists': Unable to locate element, using :id, showSearchCriteriaButton (Watir::E xception::UnknownObjectException) -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com
[wtr-general] Re: Exception thrown while iterating table
Yes, X is intialised to 1. On Nov 6, 7:17 pm, Super Kevy kpe...@scholarshipamerica.org wrote: And what is x initialised to? I assume it has to be 1 when it begins the top of the loop. On Nov 5, 3:52 am, Vishal bvkon...@gmail.com wrote: Alan, Before the loop I am initiating 'x'. I am refering the rows thru 'x'. There is one more table nested in Table, whether the Error might be because of it? Thanks, Vishal On Nov 4, 7:37 pm, Alan Baird alan.ba...@riskmetrics.com wrote: Vishal - Normally, I get this error when the table I'm accessing changes during iteration. For example, if you are iterating through a table and some interaction with it adds a row. I can't tell if that's what you are doing here. It seems like you left some things out in the code below (where does x get set?, why are you iterating through the table rows if you never refer to row?). But if you are modifying the table in your while loop or in sel_trading_partner then I would expect you to get that error. Alan -Original Message- From: watir-general@googlegroups.com [mailto:watir-gene...@googlegroups.com] On Behalf Of Vishal Sent: Wednesday, November 04, 2009 3:08 AM To: Watir General Subject: [wtr-general] Exception thrown while iterating table I am encountering exception while iterating table. Below are the details. Let me know if anymore information is required Code: table3.each do |row| if table3[x][1].text ==Booking ID while (input = f.gets) $ie.text_field(:index,2).set(input) $ie.button(:value,Search).click report_page() end end if table3[x][1].text == Booking Trading Partner Role and Code sel_trading_partner() end x+=1 end ------ Exception : d:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/table.rb:159:in `invoke': u nknown property or method `rows' (WIN32OLERuntimeError) HRESULT error code:0x80070005 Access is denied. from d:/ruby/lib/ruby/gems/1.8/gems/ watir-1.6.2/lib/wati r/table.rb:159:in `_row' from d:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ table.rb:91:in `each' from d:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ table.rb:90:in `upto' from d:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ table.rb:90:in `each' ---- HTML Code: TABLE col=2 width=100% cellspacing=2 cellpadding=0 COLGROUP COL width=1 COL width=100% /COLGROUP TRTD colspan=2 class=rightPad input type=submit class=formbutton value=Search name=Booking_Query449.My_Criteria_Panel3.layout0.override0.SearchButtons5 nbsp; input type=submit class=formbutton value=Clear name=Booking_Query449.My_Criteria_Panel3.layout0.override0.SearchButtons5 id=resetButton onClick=this.hasFocus=true nbsp; input type=submit class=formbutton value=Export to File name=Booking_Query449.My_Criteria_Panel3.layout0.override0.SearchButtons5 nbsp;/TD /TR TRTD class=rightPad FONT class=inputLabel Booking ID /FONT/TDTD class=rightPadINPUT TYPE=TEXT VALUE= NAME=Booking_Query449.My_Criteria_Panel3.layout0.override1.Booking_ID5/ TD /TR TRTD class=rightPad BR/TDTD class=rightPad BR/TD /TR TRTD class=rightPad FONT class=inputLabel Booking Trading Partner Role and Code /FONT/TDTD class=rightPadTABLE BORDER=1TR valign='top'TDa name=go/a TABLE BORDER=0 CELLSPACING=4 TR TD VALIGN=CENTER SELECT NAME=Booking_Query449.My_Criteria_Panel3.layout0.override2.Trading_Partner5.tpAndRole10.roleList0 SIZE=1 OPTION VALUE=-1 OPTION VALUE=0Bill To/OPTION OPTION VALUE=1Carrier/OPTION OPTION VALUE=2Consignee/OPTION OPTION VALUE=3Forwarder/OPTION OPTION VALUE=4Market/OPTION OPTION VALUE=5NVO/OPTION OPTION VALUE=6Ship From/OPTION OPTION VALUE=7Ship To/OPTION OPTION VALUE
[wtr-general] Exception thrown while iterating table
I am encountering exception while iterating table. Below are the details. Let me know if anymore information is required Code: table3.each do |row| if table3[x][1].text ==Booking ID while (input = f.gets) $ie.text_field(:index,2).set(input) $ie.button(:value,Search).click report_page() end end if table3[x][1].text == Booking Trading Partner Role and Code sel_trading_partner() end x+=1 end -- Exception : d:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/table.rb:159:in `invoke': u nknown property or method `rows' (WIN32OLERuntimeError) HRESULT error code:0x80070005 Access is denied. from d:/ruby/lib/ruby/gems/1.8/gems/ watir-1.6.2/lib/wati r/table.rb:159:in `_row' from d:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ table.rb:91:in `each' from d:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ table.rb:90:in `upto' from d:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ table.rb:90:in `each' HTML Code: TABLE col=2 width=100% cellspacing=2 cellpadding=0 COLGROUP COL width=1 COL width=100% /COLGROUP TRTD colspan=2 class=rightPad input type=submit class=formbutton value=Search name=Booking_Query449.My_Criteria_Panel3.layout0.override0.SearchButtons5 nbsp; input type=submit class=formbutton value=Clear name=Booking_Query449.My_Criteria_Panel3.layout0.override0.SearchButtons5 id=resetButton onClick=this.hasFocus=true nbsp; input type=submit class=formbutton value=Export to File name=Booking_Query449.My_Criteria_Panel3.layout0.override0.SearchButtons5 nbsp;/TD /TR TRTD class=rightPad FONT class=inputLabel Booking ID /FONT/TDTD class=rightPadINPUT TYPE=TEXT VALUE= NAME=Booking_Query449.My_Criteria_Panel3.layout0.override1.Booking_ID5/ TD /TR TRTD class=rightPad BR/TDTD class=rightPad BR/TD /TR TRTD class=rightPad FONT class=inputLabel Booking Trading Partner Role and Code /FONT/TDTD class=rightPadTABLE BORDER=1TR valign='top'TDa name=go/a TABLE BORDER=0 CELLSPACING=4 TR TD VALIGN=CENTER SELECT NAME=Booking_Query449.My_Criteria_Panel3.layout0.override2.Trading_Partner5.tpAndRole10.roleList0 SIZE=1 OPTION VALUE=-1 OPTION VALUE=0Bill To/OPTION OPTION VALUE=1Carrier/OPTION OPTION VALUE=2Consignee/OPTION OPTION VALUE=3Forwarder/OPTION OPTION VALUE=4Market/OPTION OPTION VALUE=5NVO/OPTION OPTION VALUE=6Ship From/OPTION OPTION VALUE=7Ship To/OPTION OPTION VALUE=8Supplier Contact/OPTION /SELECT /TD TD VALIGN=CENTER input type=submit class=formbutton value=Get Role-Codes name=Booking_Query449.My_Criteria_Panel3.layout0.override2.Trading_Partner5.tpAndRole10.fetchTradePartners1 /TD /TR /TABLE/TDTD --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[wtr-general] Re: How to handle Exceptions in Watir
I am getting the following error d:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:52:in `assert_ex ists': Unable to locate element, using :text, Return to Previous Page (Watir:: Exception::UnknownObjectException) from d:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ element.rb:284 :in `enabled?' from d:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ element.rb:56: in `assert_enabled' from d:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ element.rb:229 :in `click!' from d:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ element.rb:215 :in `click' On Sep 17, 9:19 pm, Mark Anderson mander...@drillinginfo.com wrote: What exception are you seeing? What would you like to do when you encounter it? Without more information, it will be hard to give you more than basic information about exception handling. Here is the link to a page about ruby exception handling that I refer to when working in this area:http://ruby.activeventure.com/usersguide/rg/rescue.html /\/\ark -Original Message- From: watir-general@googlegroups.com [mailto:watir- gene...@googlegroups.com] On Behalf Of Vishal Sent: Thursday, September 17, 2009 2:02 AM To: Watir General Subject: [wtr-general] How to handle Exceptions in Watir While running the testcase in Watir if an Exception is encountered, I program quits at that point. How can we handle exception in Watir Thanks, Vishal __ Information from ESET NOD32 Antivirus, version of virus signature database 4432 (20090917) __ The message was checked by ESET NOD32 Antivirus. http://www.eset.com __ Information from ESET NOD32 Antivirus, version of virus signature database 4434 (20090917) __ The message was checked by ESET NOD32 Antivirus. http://www.eset.com __ Information from ESET NOD32 Antivirus, version of virus signature database 4434 (20090917) __ The message was checked by ESET NOD32 Antivirus. http://www.eset.com- 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 -~--~~~~--~~--~--~---
[wtr-general] How to handle Exceptions in Watir
While running the testcase in Watir if an Exception is encountered, I program quits at that point. How can we handle exception in Watir Thanks, Vishal --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[wtr-general] Re: How to compare Text in Links
Sorry , Actually it was using only one = instead of two == while comparing. Now i changed it and it is working fine. Thanks for you help Željko. Vishal On Jun 18, 4:00 pm, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Thu, Jun 18, 2009 at 12:56 PM, Vishal bvkon...@gmail.com wrote: It doesn't work. I hope this will not sound rude, but how do you expect me to help you now? Saying `it does not work` does not give me any information what could be wrong. What did you do? What happened when you did it? Any error messages? Željko --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[wtr-general] Re: How to compare Text in Links
Thanks, In my application link text is dynamically generated . These the two links whose text value I need to compare $ie.div(:id,center).link(:index,21) $ie2.link(:index,31) On Jun 15, 6:58 pm, Wesley Chen cjq@gmail.com wrote: Sorry, please try: assert $ie.link(:text, ***1).value.eql?($ie.link(:text, ***2).value) Thanks. Wesley Chen. On Mon, Jun 15, 2009 at 9:58 PM, Wesley Chen cjq@gmail.com wrote: assert $ie.link(:text, ***).value.eql?($ie.link(:text, ***2))- 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 -~--~~~~--~~--~--~---
[wtr-general] How to compare Text in Links
Hi, I have to 2 web pages, I need to compare values of Link text between two pages. Please suggest how to do this. Thanks Vishal --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[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(d: \testcase.txt) Exception which i am getting is d:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/windowhelper.rb: 44:in `check_autoit_installed': The AutoIt dll must be correctly registered for this feature to work properly (Watir::Exception::WatirException) Please let me know how to fix this. Thanks, Badri On Apr 28, 10:11 pm, «°¤§ømåtïçCðrp§ë¤°» john.bai...@unisys.com wrote: 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 I can't, currently, view the entire source of the page, I would suggest using something like: browser.button(:id, ext-comp-1002__ext-comp-1006).click Granted, I know they aren't buttons; I'm just using sample code to illustrate how you could fire off an event, without explicitly using an assertion to call on the event. On Apr 28, 5:06 am, Vishal bvkon...@gmail.com wrote: I checked few other discussions on similar issues. But in none of them there is a solution available. Is this Issue can't be fixed? On Apr 27, 12:29 pm, Shweta nagman...@gmail.com wrote: Hi I tried like this,But it does not clicks on tab,I need toclickhere on Selection tab,Can anyone suggest me the solution for this. ie.cell(:class,tab).image(:src,../images/tabBetween.jpg).click HTML Code: TR TD NOWRAP STYLE=cursor:hand; ONCLICK=goToUrl('/ quoteShellValidationAction.do?dispatch=ShellInfo'); CLASS=tabSelectednbsp;nbsp;nbsp;nbsp; Infonbsp;nbsp;nbsp;nbsp;/TD TDIMG SRC=../images/tabBetween.jpg BORDER=0/TD TD NOWRAP STYLE=cursor:hand; ONCLICK=goToUrl('/ ShellValidationAction.do?dispatch=CarrierInfo'); CLASS=tabnbsp;nbsp;nbsp;nbsp;Selectionnbsp;nbsp;nbsp;nbsp;/ TD TDIMG SRC=../images/tabBetween.jpg BORDER=0/TD TD NOWRAP STYLE=cursor:hand; ONCLICK=goToUrl('/ ShellValidationAction.do?dispatch=ShellCoverageInfo'); CLASS=tabnbsp;nbsp;nbsp;nbsp;Quote Coveragenbsp;nbsp;nbsp;nbsp;/TD TDIMG SRC=../images/tabBetween.jpg BORDER=0/TD TD NOWRAP STYLE=cursor:hand; ONCLICK=goToUrl('/ ShellValidationAction.do?dispatch=ShellProducerInfo'); CLASS=tabnbsp;nbsp;nbsp;nbsp;Producernbsp;nbsp;nbsp;nbsp;/ TD TD width = 99%IMG SRC=../images/tabBetween.jpg BORDER=0/TD /TR TR On Apr 27, 12:09 pm, Vishal bvkon...@gmail.com wrote: I asked the developers, we checked the in websitehttp://extjs.com/deploy/dev/docs/ documents onTabpanel. We think following event is fired i)activate : ( Ext.Panel p ) Fires after the Panel has been visually activated. Note that Panels do not directly support being activated, but some... Fires after the Panel has been visually activated. Note that Panels do not directly support being activated, but some Panel subclasses do (like Ext.Window). Panels which are child Components of a TabPanel fire the activate and deactivate events under the control of the TabPanel. Listeners will be called with the following arguments: * p : Ext.Panel The Panel that has been activated. ii)beforetabchange : ( TabPanel this, Panel newTab, Panel currentTab ) Fires before the activetabchanges. Handlers can return false to cancel thetabchange. Fires before the activetabchanges. Handlers can return false to cancel thetabchange. Listeners will be called with the following arguments: * this : TabPanel * newTab : Panel Thetabbeing activated * currentTab : Panel The current activetab When we implement this in our code $ie.span(:text ,Documents).span(:index,1).fire_event(activate) I get an exception D:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:257:in `method_m issing': fireEvent (WIN32OLERuntimeError) OLE error code:80070057 in htmlfile Invalid argument. I guess there is no such Event, thats why I am getting this message. Let me know if we test do this in a different way. On Apr 24, 5:55 pm, Željko Filipin zeljko.fili...@wa-research.ch wrote: 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 opentabwhen firing that event. Željko- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You
[wtr-general] Re: Unable to click an element in table/grid
Try ie.table.fire_event(onmousedown) ie.table.fire_event(onmouseup) ie.table.fire_event(onclick) On Apr 27, 10:19 am, Shweta nagman...@gmail.com wrote: Hi In my application after i search for an id from serach page it displays the result in a grid/table,There i need to click on the result.later it navigates to other page there i need to perform the actions. I used something like this code: ie.table(:index,1).click It dint work out. Can anyone suggest solution for this html code is like this: ONCLICK=window.location='/VBU/market/viewid.do?Id=13133'; STYLE='cursor:hand;backgroundColor:white' ONMOUSEOVER=this.style.backgroundColor='#BC9898'; ONMOUSEOUT=this.style.backgroundColor='white'; td John /td td 132133 /td td QS /td td N /td td N/A /td td Smith /td td AR /td td John Marketing brokers /td td nowrap $123,456 /td td nowrap 04-23-09 /td td nowrap 04-24-09 /td td /td td ABCD 4343 /td /tr /table /td /tr tr td colspan=4 br /td /tr tr td table border=0 width=100% cellpadding=2 cellspacing=2 --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[wtr-general] Re: Unable to click on Tabs
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 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 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 -~--~~~~--~~--~--~---
[wtr-general] Re: Unable to click on Tabs
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: $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. Željko --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[wtr-general] Re: Unable to click on Tabs
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: 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 fired? Željko --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[wtr-general] Re: Unable to click on Tabs
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. You need more detailed answer. Which javascript event is fired when tab is clicked? Answer could be something like: onclick, onmousedown... Željko --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[wtr-general] Re: Unable to click on Tabs
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, and it did not open tab. Željko --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---