[wtr-general] new feature request
hey, all, is there any method like: ie.elements(:text, 'dummytext') It would return all elements with 'dummytext'. abc abc abc helloabc In the above html, it would return a div, p, span and href element. Hoping your reply. Regards, Alex.Dev --~--~-~--~~~---~--~~ 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: new feature request
On Thu, Sep 10, 2009 at 10:48 AM, Alex.Dev wrote: > ie.elements(:text, 'dummytext') It is already in bug tracker: http://jira.openqa.org/browse/WTR-103 You can vote for it. Tickets with more votes get implemented faster. Ž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: Ci_reporter on watircraft
Hi, Our changes to ci_reporter to support cucumber output have been merged back into Nick's upstream version, and released as 1.6.0. No idea why it's not showing up in the master branch, though! We're still using the XML output from ci_reporter for cucumber and rspec features, and it's working well for us. If you have any problems getting it set up, give me a yell and I'll see if I can help. Cheers, Graeme. On Sep 9, 5:43 pm, Charley Baker wrote: > 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 > wrote: > > > > > 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] Re: Ci_reporter on watircraft
Hi, I did update to ci_reporter 1.6.0 and at the command prompt, i give the foll command: "rake ci:setup:cucumber features" and it gives me the foll errors: rm -rf features/reports c:/ruby/bin/ruby -I "c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.91/lib;lib" "c: /ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.91/bin/cucumber" --require c:/ruby/li b/ruby/gems/1.8/gems/ci_reporter-1.6.0/lib/ci/reporter/rake/cucumber_loader.rb - -format CI::Reporter::Cucumber test/features/cc_register_complaint.feature test/ features/cc_update_complaint.feature test/features/cell_operator_view_complaint. feature test/features/citizen_register_complaint.feature test/features/citizen_u pdate_complaint.feature test/features/citizen_view_complaint.feature test/featur es/city_official_login.feature test/features/city_official_register_complaint.fe ature test/features/city_official_update_complaint.feature test/features/city_of ficial_view_complaints.feature test/features/city_official_view_status_reports.f eature test/features/GO_update_complaint.feature test/features/GO_update_users_c omplaint.feature test/features/official_change_password.feature undefined method `testcases' for nil:NilClass (NoMethodError) c:/ruby/lib/ruby/gems/1.8/gems/ci_reporter-1.6.0/lib/ci/reporter/rake/../../../c i/reporter/cucumber.rb:93:in `visit_step' c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.91/bin/../lib/cucumber/ast/step_coll ection.rb:15:in `accept' c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.91/bin/../lib/cucumber/ast/step_coll ection.rb:14:in `each' c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.91/bin/../lib/cucumber/ast/step_coll ection.rb:14:in `accept' c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.91/bin/../lib/cucumber/ast/visitor.r b:75:in `visit_steps' c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.91/bin/../lib/cucumber/ast/backgroun d.rb:30:in `accept' c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.91/bin/../lib/cucumber/ast/visitor.r b:49:in `visit_background' c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.91/bin/../lib/cucumber/ast/feature.r b:23:in `accept' c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.91/bin/../lib/cucumber/ast/visitor.r b:23:in `visit_feature' c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.91/bin/../lib/cucumber/ast/features. rb:25:in `accept' c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.91/bin/../lib/cucumber/ast/features. rb:13:in `each' c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.91/bin/../lib/cucumber/ast/features. rb:13:in `each' c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.91/bin/../lib/cucumber/ast/features. rb:24:in `accept' c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.91/bin/../lib/cucumber/ast/visitor.r b:19:in `visit_features' c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.91/bin/../lib/cucumber/broadcaster.r b:9:in `__send__' c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.91/bin/../lib/cucumber/broadcaster.r b:9:in `method_missing' c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.91/bin/../lib/cucumber/broadcaster.r b:8:in `map' c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.91/bin/../lib/cucumber/broadcaster.r b:8:in `method_missing' c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.91/bin/../lib/cucumber/cli/main.rb:5 8:in `execute!' c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.91/bin/../lib/cucumber/cli/main.rb:2 6:in `execute' c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.91/bin/cucumber:9 rake aborted! Command failed with status (1): [c:/ruby/bin/ruby -I "c:/ruby/lib/ruby/gems...] (See full trace by running task with --trace) Is the usage for rake features correct? Regards, Pallavi On Thu, Sep 10, 2009 at 3:14 PM, Graeme Mathieson, Rubaidh Ltd < mat...@woss.name> wrote: > > Hi, > > Our changes to ci_reporter to support cucumber output have been merged > back into Nick's upstream version, and released as 1.6.0. No idea why > it's not showing up in the master branch, though! > > We're still using the XML output from ci_reporter for cucumber and > rspec features, and it's working well for us. If you have any problems > getting it set up, give me a yell and I'll see if I can help. > > Cheers, > > Graeme. > > On Sep 9, 5:43 pm, Charley Baker wrote: > > 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 > > wrote: > > > > > > > > > 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 h
[wtr-general] Need information on Firewatir
Hi All, I have few clarifications on Firewatir features. Please give detailed information/solution for the following 1. How to close all opened FF browsers in Firewatir. 2. I want to close a Firefox browser by its title when there are multiple browsers exists. How to do this.? 3. I want to point to some specific firefox browser when there are multiple browsers on desktop. Is it possbile? Please share your ideas or give code for this if any one have. Thanks, Vijay --~--~-~--~~~---~--~~ 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] Need info on Threading concept in Watir
Hi, I would like know more information about Threading feature in Watir. Please provide detailed information on this like what is threading, How its useful, when will we go for threading and Firewatir threading concepts. Thanks, Vijay --~--~-~--~~~---~--~~ 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] Require statements in Watir
Hi, Any any one please provide more information on the following require statements. When should we use the following and what type of include files/libraries we need to include at the beginning of Watir script when etc... require 'test/unit' require 'watir' require 'win32ole' require 'rubygems' require 'roo' Thanks, Vijay --~--~-~--~~~---~--~~ 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] Info on Test::Unit::TestCase
Hi All, Could any one please explain about Test::Unit::TestCase. When should we generally use inheritance on super class Test::Unit::TestCase. Thanks, Vijay --~--~-~--~~~---~--~~ 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: Info on Test::Unit::TestCase
On Thu, Sep 10, 2009 at 12:01 PM, dvkbabu wrote: > Could any one please explain about Test::Unit::TestCase. http://www.ruby-doc.org/stdlib/libdoc/test/unit/rdoc/classes/Test/Unit.html Ž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] How to identify pop-up windows using watir tool
Hi All, Can anybody please help me How to identify pop-up windows using watir tool? If it possible give smaple script for this... Thanks/Tester1 --~--~-~--~~~---~--~~ 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 identify pop-up windows using watir tool
On Thu, Sep 10, 2009 at 1:37 PM, tester1 wrote: > Can anybody please help me How to identify pop-up windows using watir > tool? Did you read this? http://wiki.openqa.org/display/WTR/Pop+Ups Ž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 identify pop-up windows using watir tool
I would like to identify 'Error message' pop-up windows in using watir? Thanks/tester1 On Sep 10, 4:39 pm, Željko Filipin wrote: > On Thu, Sep 10, 2009 at 1:37 PM, tester1 wrote: > > Can anybody please help me How to identify pop-up windows using watir > > tool? > > Did you read this? > > http://wiki.openqa.org/display/WTR/Pop+Ups > > Ž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] element focus status
Hi, I am trying to automate the tab navigation in web page. I can focus on the element by element.focus(). But how can i verify that that element has been focused? Please let me know ASAP. Thanks Manoj --~--~-~--~~~---~--~~ 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] Obtaining an element's index
Hi, Is there any way to obtain the index value of an element, given that you have another attribute with which the element can be located? 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: new feature request
I don't think they would be fixed it. Is there any other soultion? On Sep 10, 5:01 pm, Željko Filipin wrote: > On Thu, Sep 10, 2009 at 10:48 AM, Alex.Dev wrote: > > ie.elements(:text, 'dummytext') > > It is already in bug tracker: > > http://jira.openqa.org/browse/WTR-103 > > You can vote for it. Tickets with more votes get implemented faster. > > Ž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: 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
Hi Orde, It is very helpful and I already put that in my script. I would appreciate help with the next (xpath) I try to get the "PEOPLESOFT TEST ANALYST" and the date 'Fri 04 Sep' using xpath without getting the right value. Any ideas would be welcome. 1PEOPLESOFT TEST ANALYST Integrated Business Technologies Pty LtdFri 04 SepImmediate requirement for an experienced PeopleSoft test analyst across HR/PayrollI.T. & T > QA/TestersBrisbane wrote: > 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 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 > > > > NextPage > > 1 > > 2 > class='currentPage'>3 > > 4 > > 5 > > 6 > > 7 > > 8 > > 9 > > 10 > > > > 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
Thanks so much Alan...you hit the nail on the head! Looks like 128 (surprise!) is the magic number...A few of my file names with a long UNC path caused it to be JUST over the limit...with that knowledge I created a truncatino when it gets to long and am off on my way! Appreciate the help!! On Sep 9, 4:46 pm, Alan Baird wrote: > 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 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 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 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 -~--~~~~--~~--~--~---
[wtr-general] Click No Wait Function
Hi Can anyone here help me to understand the "clicknowait" function: def click_no_wait assert_enabled highlight(:set) object = "#{self.class}.new(self, :unique_number, #{self.unique_number})" @page_container.eval_in_spawned_process(object + ".click!") highlight(:clear) end What does "eval_in_spawned_process" does, how exactly is this function working?? I have seen, this doesn't work well if we click on an object which also has an event "onClick" associated with it. Has anyone here experienced the same? Need some info. 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: Click No Wait Function
I can tell you how it works. I use it when clicking on a link/button, etc which may popup a javascript dialog or a modal_dialog. The issue there being that the main Watir process waits for IE to return a ready_state of complete in normal click calls. click_no_wait launches an entirely new ruby process, copying over the required libraries on the load path and does a click on the object in the separate process so that it doesn't hamper the existing process. I believe there have been some threads on adding no_wait to other actions such as fire_event. I've not used them myself, but search the list. hth, Charley Baker blog: http://blog.charleybaker.org/ Lead Developer, Watir, http://wtr.rubyforge.org QA Architect, Gap Inc Direct On Thu, Sep 10, 2009 at 10:44 AM, Pallavi Sharma wrote: > Hi > > Can anyone here help me to understand the "clicknowait" function: > > def click_no_wait > assert_enabled > > highlight(:set) > object = "#{self.class}.new(self, :unique_number, > #{self.unique_number})" > @page_container.eval_in_spawned_process(object + ".click!") > highlight(:clear) > end > > > What does "eval_in_spawned_process" does, how exactly is this function > working?? > > I have seen, this doesn't work well if we click on an object which also has > an event "onClick" associated with it. Has anyone here experienced the same? > > Need some info. > > 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: element focus status
Hi Manoj, You can use .flash in place of the focus Darryl On Sep 10, 9:39 am, manoj wrote: > Hi, > > I am trying to automate the tab navigation in web page. I can focus on > the element by element.focus(). But how can i verify that that element > has been focused? > > Please let me know ASAP. > > Thanks > Manoj --~--~-~--~~~---~--~~ 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: Require statements in Watir
Hello Vijay, Sounds like you're just starting out. If you are using Watir with IE then require 'Watir/IE' will be sufficient for basic scripting. Also take a look at: http://wiki.openqa.org/display/WTR/Watir+in+5+Minutes Darryl On Sep 10, 6:00 am, dvkbabu wrote: > Hi, > > Any any one please provide more information on the following require > statements. When should we use the following and what type of include > files/libraries we need to include at the beginning of Watir script > when etc... > > require 'test/unit' > require 'watir' > require 'win32ole' > require 'rubygems' > require 'roo' > > Thanks, > Vijay --~--~-~--~~~---~--~~ 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 identify pop-up windows using watir tool
Hello, What is the context of the popup that you're trying to handle? Does it have a button - such as 'OK' to make it go away? Darryl On Sep 10, 7:41 am, tester1 wrote: > I would like to identify 'Error message' pop-up windows in using > watir? > > Thanks/tester1 > > On Sep 10, 4:39 pm, Željko Filipin > wrote: > > > On Thu, Sep 10, 2009 at 1:37 PM, tester1 wrote: > > > Can anybody please help me How to identify pop-up windows using watir > > > tool? > > > Did you read this? > > >http://wiki.openqa.org/display/WTR/Pop+Ups > > > Ž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] Unsubscribe
--~--~-~--~~~---~--~~ 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
You should take a look at http://wiki.openqa.org/display/WTR/XPath. Something like this should work: puts browser.link(:xpath,"//a...@href='/job/peoplesoft-b-test-b-b- analyst-b/brisbane/15956235/']/").text Hope it helps. On Sep 10, 8:32 am, Guy wrote: > Hi Orde, > > It is very helpful and I already put that in my script. > I would appreciate help with the next (xpath) > > I try to get the "PEOPLESOFT TEST ANALYST" and the date 'Fri 04 Sep' > using xpath without getting the right value. Any ideas would be > welcome. > > class="jobsearchNumber">1 onClick="UpdateSelectedItems();" value="15956235"> span>PEOPLESOFT TEST ANALYST > Integrated Business Technologies Pty > LtdFri 04 Sep span>Immediate requirement for an experienced PeopleSoft test > analyst across HR/Payroll href="javascript:ClassTree('catindustry=1215')">I.T. & T > > QA/Testers div>Brisbane > Many Thanks, > > Guy > > On Sep 10, 2:21 am, orde wrote: > > > 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 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 > > > > > > NextPage > > > 1 > > > 2 > > class='currentPage'>3 > > > 4 > > > 5 > > > 6 > > > 7 > > > 8 > > > 9 > > > 10 > > > > > > 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] Window Attachment with regular expression in FireWatir
Hi all Can anyone help me how to attach window in firewatir using regular expression(Current window attachment) In Watir i m using: ie = Watir::IE.attach(:title,//) which works perfectly .attach(:title,//) doesn't work with fire watir. Kindly let me know how it is possible with watir. Thanks in advance. --~--~-~--~~~---~--~~ 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: Slider Problem
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 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 > 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 --~--~-~--~~~---~--~~ 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: Window Attachment with regular expression in FireWatir
Does giving full title works with firewatir? On Fri, Sep 11, 2009 at 10:37 AM, Rajat Singhal wrote: > > Hi all > > Can anyone help me how to attach window in firewatir using regular > expression(Current window attachment) > In Watir i m using: > ie = Watir::IE.attach(:title,//) which works perfectly > > .attach(:title,//) doesn't work with fire watir. > Kindly let me know how it is possible with watir. > > Thanks in advance. > > > > --~--~-~--~~~---~--~~ 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 identify pop-up windows using watir tool
Have 'Close' button in that pop-up window. This is just like on-screen notification thing, which is displaying in inner window pop-up. Thanks/Ravi On Sep 11, 5:14 am, Darryl Brown wrote: > Hello, > > What is the context of the popup that you're > trying to handle? Does it have a button - such > as 'OK' to make it go away? > > Darryl > > On Sep 10, 7:41 am, tester1 wrote: > > > > > I would like to identify 'Error message' pop-up windows in using > > watir? > > > Thanks/tester1 > > > On Sep 10, 4:39 pm, Željko Filipin > > wrote: > > > > On Thu, Sep 10, 2009 at 1:37 PM, tester1 wrote: > > > > Can anybody please help me How to identify pop-up windows using watir > > > > tool? > > > > Did you read this? > > > >http://wiki.openqa.org/display/WTR/Pop+Ups > > > > Željko > > > --http://watirpodcast.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] Re: Window Attachment with regular expression in FireWatir
yes it works but i have to attach with current window without specifying any title string, any solution for that. On Fri, Sep 11, 2009 at 11:24 AM, Angrez Singh wrote: > Does giving full title works with firewatir? > > > On Fri, Sep 11, 2009 at 10:37 AM, Rajat Singhal wrote: > >> >> Hi all >> >> Can anyone help me how to attach window in firewatir using regular >> expression(Current window attachment) >> In Watir i m using: >> ie = Watir::IE.attach(:title,//) which works perfectly >> >> .attach(:title,//) doesn't work with fire watir. >> Kindly let me know how it is possible with watir. >> >> Thanks in advance. >> >> >> > > > > -- 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: element focus status
Hi Daary, The flash will just flash off the element. But i need to verify that the perticular element has been flashed/focused. Thanks Manoj On Sep 11, 5:00 am, Darryl Brown wrote: > Hi Manoj, > > You can use .flash in place of the focus > > Darryl > > On Sep 10, 9:39 am, manoj wrote: > > > Hi, > > > I am trying to automate the tab navigation in web page. I can focus on > > the element by element.focus(). But how can i verify that that element > > has been focused? > > > Please let me know ASAP. > > > Thanks > > Manoj --~--~-~--~~~---~--~~ 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 Zeljko, > http://www.germane-software.com/software/rexml/ I tried the above website and followed the example as described which recommends REXML which is inside ruby, however it does not work. No errors even. Do i need to change configuration or make it enable something to use the library REXML. Any idea on this? Could you please let me know? I did use the statements as below in the file. require "rexml/document" include REXML doc = Document.new File.new("mydoc.xml") doc.elements.each("Inventory/section") { |element| puts elements.attributes["name"] } On Sep 9, 1:17 pm, Željko Filipin wrote: > On Wed, Sep 9, 2009 at 8:54 AM, msazeez28july > 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/hpricothttp://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: Window Attachment with regular expression in FireWatir
right now Firewatir only supports adding by URL and title. I look into why regex is not working during attach. - Angrez On Fri, Sep 11, 2009 at 11:31 AM, Rajat Singhal wrote: > yes it works > but i have to attach with current window without specifying any title > string, any solution for that. > > On Fri, Sep 11, 2009 at 11:24 AM, Angrez Singh wrote: > >> Does giving full title works with firewatir? >> >> >> On Fri, Sep 11, 2009 at 10:37 AM, Rajat Singhal wrote: >> >>> >>> Hi all >>> >>> Can anyone help me how to attach window in firewatir using regular >>> expression(Current window attachment) >>> In Watir i m using: >>> ie = Watir::IE.attach(:title,//) which works perfectly >>> >>> .attach(:title,//) doesn't work with fire watir. >>> Kindly let me know how it is possible with watir. >>> >>> Thanks in advance. >>> >>> >>> >> >> >> > > > -- > 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 -~--~~~~--~~--~--~---