[wtr-general] Re: trying to access onclick property in a td using xpath
this worked now... i used syntax ie.frame(:name, 'toc').cell(:text, 'Areas And Branches').click :) thanks for your help..the initial barrier is overnow to the next level. On Sep 9, 10:33 am, rs77 rishaind...@gmail.com wrote: now this is getting really weird. I do a show_frames and it gives me names of 3 frames. when i used the comman you suggested. ie.frame(:name, ['toc']).cell(:text, /Areas/).click .. it simply denies that the frame exists? In the code the frames are defined in the main menu as frameset rows=50px,* cols=* frameborder=NO border=0 framespacing=0 frame scrolling=NO noresize src=TopLogo.html name=top id=top frameset cols=152px,* frameborder=NO border=0 framespacing=0 id=mainframeset frame scrolling=NO noresize src=SideMenu.htm name=toc frame src= WelcomeMsg.html name=content scrolling=NO /frameset /frameset i am trying to access cell 'Areas And Branches' from SideMenu.htm which is in frameset named 'toc' here is the error Started there are 3 frames frame index: 1 name: top frame index: 2 name: toc frame index: 3 name: content E Finished in 1.734 seconds. 1) Error: test_TCrecorded(TCrecorded): Watir::Exception::UnknownFrameException: Unable to locate a frame with name toc C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/frame.rb: 40:in `locate' C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/frame.rb: 47:in `initial ize' C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/container.rb: 102:in `ne w' C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/container.rb: 102:in `fr ame' On Sep 8, 8:25 pm, Angrez Singh ang...@gmail.com wrote: try ie.frame(:name, [frame name]).cell(:text, /Areas/).click - Angrez On Tue, Sep 8, 2009 at 7:17 PM, rs77 rishaind...@gmail.com wrote: yes , its in a frame toc the whole page has 3 frames top frame toc frame - sidemenu.htm (where Areas and Branches is a cell) and content frame...which has further htm pages. On Sep 8, 6:38 pm, Angrez Singh ang...@gmail.com wrote: Is this cell is inside a frame? 2009/9/8 rs77 rishaind...@gmail.com here is the html code body topmargin=5 leftmargin=3 onLoad=loadDefaultMenu(); onkeydown=keydowncheck(); !-- Main Menu -- table width=100% border=0 cellpadding=0 cellspacing=0!-- Originally there was no height -- !--DWLayoutTable-- !-- Tabs -- tr td width=25 height=32 colspan=2 valign=topa href=# onClick=img id=Pic1 src=./images/menuWindow/tabs/ 1.jpg_selected.jpg width=30 height=32 title=Self Drive/a/ td td width=25 valign=topa href=# onClick=img id=Pic2 src=./images/menuWindow/tabs/2.jpg width=30 height=32 title=Chauffeur/a/td td width=25 valign=topa href=# onClick=img id=Pic3 src=./images/menuWindow/tabs/3.jpg width=30 height=32 title=Cashier/a/td td width=25 valign=topa href=# onClick=img id=Pic4 src=./images/menuWindow/tabs/4.jpg width=30 height=32 title=Foreign/a/td td width=25 valign=topa href=# onClick=img id=Pic5 src=./images/menuWindow/tabs/4.jpg width=30 height=32 title=SetUp/a/td /tr !-- End Tabs -- !-- User Info Section -- tr td width=9 valign=top background=./images/ menuWindow/main_menu_left_border.jpg style=background-repeat:repeat- y !--DWLayoutEmptyCell--nbsp;/td td height=25 colspan=5 valign=top class=menuDivider SUPERVISOR Supervisor/td td width=9 background=./images/menuWindow/ main_menu_rigth_border.jpg style=background-repeat:repeat-y nbsp;/td /tr !-- End User Info -- tr td valign=top background=./images/menuWindow/ main_menu_left_border.jpg style=background-repeat:repeat-y !-- DWLayoutEmptyCell--nbsp;/td td colspan=5 height=569 valign=top background=./images/menuWindow/menu_layer_bg.jpg !-- Originally Height=410 -- !-- Tab1 Menu -- div id=Menu1 style=visibility:hidden; position:absolute; top:64px table width=100% border=0 cellpadding=0 cellspacing=0 style=behavior:url(./styles/tablehl.htc);background- color:#dededc; slcolor=#8297C4 hlcolor=#8297c4 !--DWLayoutTable-- !-- Menu Table 2 -- !-- Menu Header--
[wtr-general] How to read an xml file using watir scripts
Hi, We have an .NET application for which the UI labels can be configured/changed using an xml file provided inside code. There are xml tags inside the file as below data name=CompanyText xml:space=preserve valueCompany/value /data If i change the above value tag from Company to FIRM, then the application UI would change the label from company to FIRM. There are lot of other tags like DepartmentText, PasswordTextetc exist in that xml file This needs to be automated like watir script should read this file to the specific xml tag and change its value tag to desired new value and verify in the UI for the same. I need to know, how do i read an xml file using watir scripts? Do we have any class in watir ? Could you please help me on this Thanks in advance. Regards Syed --~--~-~--~~~---~--~~ 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: Watir Logo Refresh Competition
On Wed, Sep 9, 2009 at 7:35 AM, Tony ynot...@gmail.com wrote: Are you still accepting logos ... ?? I can not speak for Alister, but I am sure he is still accepting logos. :) Ž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 read an xml file using watir scripts
On Wed, Sep 9, 2009 at 8:54 AM, msazeez28july sabdulkha...@gmail.com wrote: how do i read an xml file using watir scripts? Watir is _just_ a Ruby library for driving browsers. If you want to read/edit xml files, there are Ruby libraries for that. I am not familiar with xml parsing, but I think you should take a look at one of these: http://wiki.github.com/hpricot/hpricot http://nokogiri.rubyforge.org/nokogiri/ http://www.germane-software.com/software/rexml/ Ž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: How to handle Modal Dialog Box
On Wed, Sep 9, 2009 at 7:02 AM, Rajat Singhal coolraja...@gmail.com wrote: how to attach modal dialog box This could help: http://wiki.openqa.org/display/WTR/Pop+Ups http://wiki.openqa.org/display/WTR/Modal+Dialogs Ž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: How to read an xml file using watir scripts
Hi, Hpricot -- This article will help you http://markmail.org/message/x56irjeq2bv37z23 Thanks On Wed, Sep 9, 2009 at 12:24 PM, msazeez28july sabdulkha...@gmail.comwrote: Hi, We have an .NET application for which the UI labels can be configured/changed using an xml file provided inside code. There are xml tags inside the file as below data name=CompanyText xml:space=preserve valueCompany/value /data If i change the above value tag from Company to FIRM, then the application UI would change the label from company to FIRM. There are lot of other tags like DepartmentText, PasswordTextetc exist in that xml file This needs to be automated like watir script should read this file to the specific xml tag and change its value tag to desired new value and verify in the UI for the same. I need to know, how do i read an xml file using watir scripts? Do we have any class in watir ? Could you please help me on this Thanks in advance. Regards Syed -- Regards, P.Raveendran http://raveendran.wordpress.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: How to handle Modal Dialog Box
Hi i have tried the script given on this link but ie.attach is unable to attach modal dialog Thanks On Wed, Sep 9, 2009 at 1:49 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Wed, Sep 9, 2009 at 7:02 AM, Rajat Singhal coolraja...@gmail.com wrote: how to attach modal dialog box This could help: http://wiki.openqa.org/display/WTR/Pop+Ups http://wiki.openqa.org/display/WTR/Modal+Dialogs Željko -- http://watirpodcast.com/ -- Regards Rajat Singhal +919718729742 --~--~-~--~~~---~--~~ 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 Modal Dialog Box
Hi Željko i got no solution on the link you provided its just explains how modal dialog can be created. kindly let me know a proper solution for the same . Thanks in advance. On Wed, Sep 9, 2009 at 2:50 PM, Rajat Singhal coolraja...@gmail.com wrote: Hi i have tried the script given on this link but ie.attach is unable to attach modal dialog Thanks On Wed, Sep 9, 2009 at 1:49 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Wed, Sep 9, 2009 at 7:02 AM, Rajat Singhal coolraja...@gmail.com wrote: how to attach modal dialog box This could help: http://wiki.openqa.org/display/WTR/Pop+Ups http://wiki.openqa.org/display/WTR/Modal+Dialogs Željko -- http://watirpodcast.com/ -- Regards Rajat Singhal +919718729742 -- Regards Rajat Singhal +919718729742 --~--~-~--~~~---~--~~ 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 Modal Dialog Box
Unfortunately, all I know about modal dialogs is there. I think I have even never seen one. Somebody else will have to help you, and maybe even post a solution to the mentioned page. Ž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] How to veify text using FireWatir
Hi Can anyone here please tell me how can i verify text using FireWatir. .text?include is not working with Firewatir 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 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 Modal Dialog Box
Hi Zeljko Thanks for the response, Can anyone here please help with the same. How to handle web dialog boxes with Watir. Thanks On Wed, Sep 9, 2009 at 6:20 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: Unfortunately, all I know about modal dialogs is there. I think I have even never seen one. Somebody else will have to help you, and maybe even post a solution to the mentioned page. Ž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: Ci_reporter on watircraft
It appears there's a forked version of ci_reporter on github that adds support for cucumber output, find out more here: http://github.com/rubaidh/ci_reporter/tree/master I'm not using ci_reporter any longer, just straight html output for cuke and rspec, but the general idea is to set it up in your rake file with the appropriate requires; there's info in the readme on that github repo. According to the 1.6.0 announcement of ci_reporter on rubyforge this appears to be the version they've uploaded as the latest gem. hth, Charley On Tue, Sep 8, 2009 at 11:21 PM, pallavi shashidhar pals.sha...@gmail.comwrote: Hi there, I am looking at using Ci_reporter in watircraft framework. Has anyone tried to use it. ? We use cucumber on watircraft and has a set of features that needs to be run and publish results. Basically i have to publish the watircraft results on CI server which understands the xml format which is given out by Ci_reporter. Regards, Pallavi --~--~-~--~~~---~--~~ 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] Help Required in Converting IE Watir to FireWatir
Hi Everyone I have an implementation of watir lib with the IE and now i have to convert the same to Firefox. i am facing these issues: 1. I used to get the IE by using the hwnd property, but its not present with Firefox 2. When i use title with Firefox it works sometimes but fails also sometime, i dont understand why is this happening. 3. Text verification ie.text?include doesn;t work with FireFox. I am in need of the answers to the above mentioned issues on a urgent basis. Would really appreciate a quick helpful response. Please. Thanks Pallavi. --~--~-~--~~~---~--~~ 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: I'm looking for a way to count all PageTo(*) elements or to loop until the bullet_search_white_small.gif doesn't exist in the page
This will give you the number of links: browser = [your browser of choice] puts browser.links.length --- To create the loop: while browser.image(:src, /bullet_search_white_small.gif/).exists? puts 'exists' sleep 2 browser.refresh end Hope that helps. orde On Sep 9, 7:56 am, Guy guy.kid...@gmail.com wrote: Hello All, I'm New with watir but appreciate how good it is. I'm looking for a way to count all PageTo(*) elements or to loop until the bullet_search_white_small.gif ('Next' image) doesn't exist in the page Follows is the html code from the site div class='searchPagination'dl class='jobSearchPagination' a class='nextPage btn pinkbtn_small' href=javascript: PageTo (4)strongNextimg src='/general_ID_items/images/other/ bullet_search_white_small.gif'/strong/adtPage/dt dda href=javascript: PageTo(1)1/a/dd dda href=javascript: PageTo(2)2/a/ class='currentPage'span3/span/dd dda href=javascript: PageTo(4)4/a/dd dda href=javascript: PageTo(5)5/a/dd dda href=javascript: PageTo(6)6/a/dd dda href=javascript: PageTo(7)7/a/dd dda href=javascript: PageTo(8)8/a/dd dda href=javascript: PageTo(9)9/a/dd dda href=javascript: PageTo(10)10/a/dd/dl/div /div Cheers, Guy --~--~-~--~~~---~--~~ 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: Save As File Dialog
Jackie - I have had problems with the Save As dialog box not accepting long strings. Apparently there is a length restriction on this field that you may be running into (somewhere around 120 characters). Alan On Thu, Sep 3, 2009 at 8:10 AM, JackieH jkulb...@juno.com wrote: Bill, Thanks so much for the ideas...The environment I need is currently being used for some other testing, but as soon as I can get to it, I will give them a shot! Appreciate it! --Jackie On Sep 2, 8:15 pm, Bill Agee billa...@gmail.com wrote: Maybe sometimes the click gets sent to the save button before all the filename data is in place in the edit field... A couple of things to try: - Right after the ControlSend() call, and before clicking the save button, use the AutoIt ControlGetText() function to verify that the edit field has the correct filename value - Lengthen the Opt(SendKeyDelay) value (in milliseconds) to add a little more time between keystrokes Thanks Bill On Wed, Sep 2, 2009 at 1:48 PM, JackieH jkulb...@juno.com wrote: I have a very strange issue with a Save As File Dialog. I have a loop that is looping through many files that need to be savedThe code uses the below routine to handle the Save As Box: (the file name is built and passed in) ai = WIN32OLE.new(AutoItX3.Control) ai.Opt(WinWaitDelay, 1000) ai.WinWait(windowname, , 10) ai.WinActivate(windowname) ai.WinWaitActive(windowname, , 10) ai.ControlSend(windowname, , Edit1, filename) ai.ControlClick(windowname, , button, left) The majority of the time I see the filename(which contains the path) being entered into the filename area of the Save As Box...Certain files I do not see the name getting entered...The box still gets closed and the file is save, but it does not populate the filename with a the correct information...the file just gets save to the default location and the default name the program populated. I confirmed that the filename is getting built correctly. Are there any thoughts as to why this would work 95% of the time and not the other 5%? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---