Re: [Wtr-general] FireWatir release alpha v1.0
I installed watir from tarball, but now I have another problem.When I start firefox from cmd C:\Program Files\Mozilla Firefoxfirefox.exe -jssh JSSH: A Java Secure Shell client library page opens(http://www.pitman.co.za/projects/jssh/index.html). Then I check if JSSh is listening on port 9997 but I get error message. C:\Program Files\Mozilla Firefoxtelnet localhost 9997Connecting To localhost...Could not open connection to the host, onport 9997: Connect failed I remember this also happened several times yesterday. Is this becausewww.croczilla.com/jssh is unavailable? On 3/15/06, Angrez Singh [EMAIL PROTECTED] wrote: Hi Zeljko, You are not doing anything wrong here. The current version for Firefox is in sync with what is available on the tar ball. So the 'watir.rb' in Firefox extension is refactored version of 'watir.rb' file that is available on the HEAD. So I think that is the source of error. So, what you should do is download the latest tar ball, install watir from that tar ball then apply the Firefox extension. Let me know if this works. ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] FireWatir release alpha v1.0
Of course, when I start unit tests, I get this error message. C:\watir\mozilla_unittestsmozilla_all_tests.rbC:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1263:in `initialize': Bad filedescriptor - connect(2) (Errno::EBADF)from C:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1263:in `initialize'from C:/watir/mozilla_unittests/../mozilla_unittests/setup.rb:35:in`start_ie_with_logger' from C:/watir/mozilla_unittests/../mozilla_unittests/setup.rb:49 from C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in`require' from C:/watir/mozilla_unittests/mozilla_all_tests.rb:6 ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Fwd: Accessing HTML Source
I downloaded watir-1.4.1.exe windows executable last night, and still was not able to access the information. As I understood it, Bret wrote that this but had been resolved AFTER1.4.1. was released (This is indeed a bug that has been fixed since1.4.1.) Until they release a new version, you can download latest commit fromhere (there may be something even fresher at http://svn.openqa.org/,but ignore that for now) http://rubyforge.org/cgi-bin/viewcvs.cgi/root.tar.gz?root=wtrview=tar Unzip it, run install.rb and you will have the newest watir. Can you tell me the command I can enter into irb to confirm the version of Watir? You can do it from command prompt ruby -e 'require watir; puts Watir::IE::VERSION' and from irb irb(main):002:0 require watir= trueirb(main):003:0 Watir::IE::VERSION= 1.4 While I am in the there, can you tell me the command to get the Ruby version number? From command prompt ruby -v ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Fwd: Accessing HTML Source
http://wiki.openqa.org/display/WTR/FAQ#FAQ-RubyandWatirversionOn 3/16/06, Bret Pettichord [EMAIL PROTECTED] wrote: Could someone please post this to the FAQ? ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] FireWatir release alpha v1.0
Yes, I can see DOM Inspector 1.8.0.1 at extensions.telnet localhost 9997 worked for me two days ago, but then Firewatir did not work because I had watir 1.4.1.On 3/16/06, Angrez Singh [EMAIL PROTECTED] wrote: Hi, Did you install the XPI that is included in the package? ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Regarding Hidden Select Boxes
Well, I think it is because your code is all wrong. :)Your html does not show hidden type select box (I think it even does not exits). But, you could have just typed hidden by mistake (instead of disabled). But, just in case... Your html shows a hidden input fieldinput type=hidden name=anSortValues[field1] value=2and a disabled select boxselect name=bPlaceholder disabled style=font-size: 9 pxoption1option selected2option3option4option5option6option7option8/selectPlease do check this site http://www.w3schools.com/ (for html visit http://www.w3schools.com/html/default.asp) for more info.If you have this html select name=bPlaceholder disabledoption1option selected2option3option4option5option6option7option8/select and you would like to know what is selected, this will do itirb(main):014:0 ie.select_list( :name, bPlaceholder).getSelectedItems= [2]It does not matter that it is disabled. If you would like to get all options, try thisirb(main):015:0 ie.select_list( :name, bPlaceholder).getAllContents= [1, 2, 3, 4, 5, 6, 7, 8] I hope I answered your question. -- http://www.testingreflections.com/blog/3071http://iskusivac.blog.hr/ ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Bad Bug Reports
I think we should put something like this at some visited place: We would like to help you, but we are very busy. We answer e-mails inour free time, so please help us help you. We will first answere-mails that follow this simple rules. From The Basics of Bug Tracking (FogBugz Documentation): Every good bug report needs exactly three things.1. Steps to reproduce,2. What you expected to see, and3. What you saw instead. We should also add: 4. Please provide your script and html. Please make it as short aspossible. Remove all code and html that is not necessary to reproducethe problem.5. Please search mail archive and faq. Your problem may be alreadysolved. Wa are very sad when we see a question that is alreadyanswered (and we can not answer your question with eyes full oftears). If you find an answer in mail archive and not in faq, pleaseadd it to faq. We should also link to http://www.catb.org/~esr/faqs/smart-questions.html I am not a native speaker. I tried to use style that is friendly, butI am not shure if I did a good job. On 3/17/06, Bret Pettichord [EMAIL PROTECTED] wrote: Frankly i have been surprised at how poor many of the bug reports on this list have been. They routinely omit key information. For a while, i thought that testers knew how to write good bug reports, but i actually see better bug reports on the mailing lists for open-source developer tools. Are developers better than testers are reporting problems? I'm considering refusing to try and speculate and suggest possible solutions when reports fail to provide the full error information and actual scripts. And i'm considering asking the other active answer providers on this list (like Zeljko and Michael and Chris) to follow the same policy. Now that the web recorder has lowered the bar for many people to start using Watir, i'm thinking we need to raise the bar for what information needs to be provided to get out attention. Comments please. It's been a very busy week at work and i'm tired and am unsure of my judgement ! here. Does this sound reasonable? Bret ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general --http://www.testingreflections.com/blog/3071http://iskusivac.blog.hr/ ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Bad Bug Reports
http://www.fogcreek.com/FogBugz/docs/40/Articles/TheBasicsofBugTracking.html From The Basics of Bug Tracking (FogBugz Documentation): (presumably that isn't on line?It would be useful to know...) ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] FireWatir release alpha v1.0
I tried re-installing jssh (and I remembered to restart Firefox after the install) and even reinstalling Firefox. No luck. Am I the only one with this problem (or even the only one that tried to do it?)?After I perform firefox.exe –jssh, http://www.croczilla.com/jssh opens with error page The connection has timed outThe server at www.croczilla.com is taking too long to respond.Is this causing the problem? On 3/17/06, Dave Liebreich [EMAIL PROTECTED] wrote: No.The current version of jssh, when installed, is not listed in theextension manager.I suggest you try re-installing jssh, and rememberto restart Firefox after the install.Has anyone else tried using this and run into problems? ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] FireWatir release alpha v1.0
Tried. No luck. The same behaviour.On 3/17/06, Dave Liebreich [EMAIL PROTECTED] wrote: Hmm.Maybe Angrez's version of the jssh xpi is broken.Can you tryagain with the versions in http://people.mozilla.com/~davel/jssh/ ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] FireWatir release alpha v1.0
One. I copy/pasted it from Installation guide for FireWatirfirefox.exe –jsshAnd the solution is here! I copy/pasted it from the Installation guide for FireWatir!And it seems that Word transforms -jssh to –jssh. Replaces hypen (-) with dash (–). Something likeWord (2003 sp2) Tools AutoCorrect Options... AutoFormat Replace Hypens (--) with dash (–).But two hypens should be replaced with one dash.When I replaced firefox.exe –jsshwithfirefox.exe -jssheverything worked fine.It does not work with two hypens (firefox.exe --jssh).Thank you all for helping me.What have I learned? Never write documentation in Word. Do it in Notepad. On 3/17/06, Bret Pettichord [EMAIL PROTECTED] wrote: Are you putting one hyphen or two before jssh? ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] FireWatir release alpha v1.0
I have just run mozilla_all_tests.rb and got only two failures (just to let you know). It took just a few seconds over three hours. :)Finished in 10892.833 seconds. 1) Failure:test_file_field_Exists(TC_FileField_XPath) [C:/watir/mozilla_unittests/../mozilla_unittests/filefield_xpath_test.rb:27]: false is not true. 2) Failure:test_simply_attach_to_new_window(TC_NewWindow) [C:/watir/mozilla_unittests/../mozilla_unittests/attach_to_new_window_test.rb:17]:false is not true. 100 tests, 520 assertions, 2 failures, 0 errors ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] How do you attach to a Tab in IE 7?
+1 :)On 3/21/06, Chris McMahon [EMAIL PROTECTED] wrote: We're scared.:) ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] FireWatir release alpha v1.0
I think it is my mistake. My Firefox opens new windows in new tab, and I think there is some pop-up blocker hiding.On 3/22/06, Angrez Singh [EMAIL PROTECTED] wrote:I'll try to run these test on some other machine let you know if there are any failures. One thing that you can check is that your Firefox settings for opening new window. Don't open new window in a tab. Make the settings to open new window in new window. ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Problem installing Watir 2.0
Watir 2.0 is still experimental, as far as I know. The latest working version should be here http://svn.openqa.org/svn/watir/trunk/watir On 3/23/06, Rodrigo Julian Martin [EMAIL PROTECTED] wrote: Please install latest version of WATiR from SVN. AngrezI'm now trying to install Watir2.0 (which I guess is the latest version) ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Undefined Method Error
Add this at the beggining of your script:require test/unit/assertionsinclude Test::Unit::AssertionsOn 3/23/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I want to make assertions in test_myTestCase. ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Send results to console and text file
I also do not understand what do you want to do. How do you manually click on a webpage?On 3/24/06, Bill Agee [EMAIL PROTECTED] wrote:On 3/23/06, Padhma N [EMAIL PROTECTED] wrote:Not sure of a way to do your question (2). ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] possible bug / Shift_jis encoding error
Maybe this would help. http://www.mail-archive.com/wtr-general@rubyforge.org/msg02811.html ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Right-click menu.
Maybe this would help.http://wiki.openqa.org/display/WTR/FAQ#FAQ-TriggeringJavaScriptevents On 3/28/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: This email is to be read subject to the disclaimer below. Hello guys, I imagine this question has been ask a number of times, but I couldn't find any clear references on the Web, so... How do I automate a click in a context menu (ie. right-click on a page and click on a menu item)? thank you very much. Best Regards Leon ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] running ruby developement branch code when 1.4.1 is also installed
Visit http://openqa.org/watir/cvs.actionOn 3/28/06, Manish Sapariya [EMAIL PROTECTED] wrote:There was thread but I cant find it in archives... Could somebody please tell me how do I run code checkoutfrom SVNI am not sure what Path varibale i need to change...Thanks,Manish ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Where should we discuss bugs in Watir 1.5?
I would also read both.On 3/30/06, Bret Pettichord [EMAIL PROTECTED] wrote: I have a question for the list.I'm working pretty hard on Watir 1.5 and there is a lot of discussion around bugs, etc in it.Would it be better to have a separate list to discuss this effort, so that wtr-general could focus more on supporting the released code? I'd read both, so it would make no difference for me, but i'm concerned that this may be confusing for others.Bret ___Wtr-general mailing listWtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general -- http://www.testingreflections.com/blog/3071http://iskusivac.blog.hr/ ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Where should we discuss bugs in Watir 1.5?
-1 for wtr-announce (new releases announced)I think announcements can stay at wtr-general (there are not so much of them, for now).On 3/30/06, Linda Derezinski [EMAIL PROTECTED] wrote: +1 for wtr-general (released issues) wtr-dev (development build issues) wtr-announce (new releases announced) ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Update opens up another window with updated page butcontrol stays in the orginal window and not able to move tonext page in the flow from orginal window
+1On 3/30/06, Cain, Mark [EMAIL PROTECTED] wrote: If you could post [...] the HTML page your testing that would be helpful. ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Files as argument when running a suite
Try yaml, I am using it.http://yaml4r.sourceforge.net/On 4/1/06, Deepa Mallapareddy [EMAIL PROTECTED] wrote:Hi all, I have to give a config file( file withvariables like username and pwd and URL ) as an argument when running a suite. and I should be able to use the variables in this entire test suite Im eunning. Can you please suggest Any input on this will be appreciated. Thanks in Advance! Deepa Whatever you can do or dream you can, begin it. Boldness has genius, power, and magic in it. --Johann Wolfgang von Goethe Deepa Mallapareddy, 4981,Catoctin Drive, Apt#15,San Diego CA - 92115 How low will we go? Check out Yahoo! Messenger's low PC-to-Phone call rates. ___Wtr-general mailing listWtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general -- http://www.testingreflections.com/blog/3071 ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] changing watir versions
I can tell you what I did. I uninstalled ruby. That uninstalls all versions of watir. Then I installed new and improved ruby. Then installed watir gem.From command line:gem install watir ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] When is Watir 1.5 going to be available?
http://wiki.openqa.org/display/WTR/Development+BuildsOn 4/21/06, Matthias Malek [EMAIL PROTECTED] wrote: Is there a alfa or beta version I can dowload? ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] How to get value from textfield of the webpage using Watir/Ruby?
if ie.textField(:name, 'cust_name').value == TATA IRON AND STEEL COMANY puts 'customer name is correct' else puts 'customer name is incorrect'end ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] OLE error code:0 exception?
http://wiki.openqa.org/display/WTR/FAQ#FAQ-Accessdeniedwhentryingtoaccessaframe On 4/25/06, Paatsch, Bernd [EMAIL PROTECTED] wrote: Access is denied. ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] How can I read alternate field attributes into a variable?
I guess that you will know how to assign it to variable and use thatvariable (if I am wrong, let me know). :) irb(main):006:0 ie.text_field(:name, /UserName/).maxLength= 50 On 4/25/06, Paul Carvalho [EMAIL PROTECTED] wrote: I would like to know if it is possible to have Ruby/Watir automatically read the 'maxLength=##' attribute ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Using the OpenQA Forums
Sounds good to me. On 4/29/06, Bret Pettichord [EMAIL PROTECTED] wrote: I suggest that we make use of the Open QA Forums. The details of this suggestion are below. But first, some background. The wtr-general mailing list On several occassions the Watir community has clearly indicated that it did not want to see separate lists for users and developers. Instead we have a common mailing list called wtr-general hosted at Rubyforge.org. This mailing list is open to anybody and only accepts posts from members. It is very active and encourages discussions of testing with Ruby whether or not Watir is specifically being used. List maintenance is minor; mostly it consists of approving occassional posts that have either large attachments (over 40 KB) or are from members who are using a different email address from their subscription (although i wouldn't mind another volunteer to help with this). The biggest drawback to the list is the difficulty of searching the archives. Howeve! r, this is a less of a problem than it used to be because we've added a search feature to the project web page, and the list is also mirrored to another site with better archiving. For further details, see http://rubyforge.org/mailman/listinfo/wtr-general The Current OpenQA Watir Forums The standard Open QA hosting arrangement includes two web-based forums, one for users and one for developers. These were set up for Watir when we first set up at Open QA, but they have gone largely unused and neglected. According to the Open QA website, there are also corresponding mailing lists for these forums, but in my discussions with Patrick, I understood that these haven't actually been set up. He also tells us that he can synchronize forums with existing email lists hosted at other sites. These forums have the advantage of being easy to browse and search for casual users. They also have an interesting feature that allows tracking which questions have been answer! ed and who is answering the most questions. And they offer RSS feeds, which offers an alternative way of tracking a discussion without subscribing. For details, see http://forums.openqa.org/category.jspa?categoryID=4 The Proposal I am proposing that the current wtr-general mailing list be mirrored at OpenQA. The Watir community has recently requested that we create a new mailing to handle support of the Watir code currently in development (namely Watir 1.5 and FireWatir). I am proposing that a new list be created at Rubyforge (wtr-development) and that it be mirrored by a new forum at OpenQA (Watir Development). The following is a detailed action plan for how to make this all happen. If this plan is approved by the community, i will work with Patrick and Charley on the implementation. Setting Up Watir General 1. Delete the Watir Users and Watir Developers Forums. 2. Create a new Forum called Watir General. 3. Set up Watir General to include the traffi! c from wtr-general. 4. Get the pre-transfer archives of wtr-general from rubyforge andhave these placed in the Watir General Archives. Setting Up Watir Development 1. Create a new mailing list wtr-development at Rubyforge. 2. Create a new Forum at OpenQA called Watir Development. 3. Open up the list to new subscribers. ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general --http://www.testingreflections.com/blog/3071 ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Access Denied with Frames
Maybe this will help.http://wiki.openqa.org/display/WTR/FAQ#FAQ-Accessdeniedwhentryingtoaccessaframe On 4/30/06, George Flaherty [EMAIL PROTECTED] wrote: I am currently evaluating Watir for one of our web based applications. The application I am using for evaluation of watir contains quite a bit of frame sets. Now when I try to determine the HTMLinks within the frames I get --Access Denied--? Am I doing something wrong, or missing? Maybe and outdated version of Watir? Thanks -george Version Info: === Watir 1.4.1 Ruby 1.8.2 IE 6.0.2900. Here is my simple test: === require 'watir' ie = Watir::IE.attach(:title,/Marketmax - Integrated Mer/) ie.show_frames Here is the error I am receiving: === W, [29-Apr-2006 08:51:34#3756] WARN -- : frame error in waitdocument OLE error code:80070005 in Unknown Access is denied. HRESULT error code:0x80020009 Exception occurred. C:/usr/ruby/lib/ruby/site_ruby/1.8/watir.rb:1405:in `method_missing' C:/usr/ruby/lib/ruby/site_ruby/1.8/wati! r.rb:1405:in `wait' C:/usr/ruby/lib/ruby/site_ruby/1.8/watir.rb:1404:in `upto' C:/usr/ruby/lib/ruby/site_ruby/1.8/watir.rb:1404:in `wait' C:/usr/ruby/lib/ruby/site_ruby/1.8/watir.rb:1113:in `attach_init' C:/usr/ruby/lib/ruby/site_ruby/1.8/watir.rb:1104:in `attach' C:/georgef/work/MATS2.1-Ezrah/scripts/watir/IMPS-Web61/Sandbox.rb:3 there are 2 frames frame index: 1 --Access Denied-- frame index: 2 --Access Denied-- ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general --http://www.testingreflections.com/blog/3071 ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] The Watir Installer
+1 On 4/29/06, Bret Pettichord [EMAIL PROTECTED] wrote: This is a proposal for packaging Watir 1.5. Watir will be distributed as two files. 1. watir-1.5.0.gem - A gem that can be downloaded and installed locally or remotely installed over the internet (as always). 2. watir-bonus.zip - A zip file containing the user guide, the examples, and notes on where to find the unit tests and API docs (which are already in the gem). The gem would be required on any machine running Watir tests. The bonus zip would be recommend for any users learning Watir. Specifically, i am proposing that we stop distributing the one-click installer. Why? - The one-click installer installs the watir library and other files in different locations than the gem. This can lead to confusion. - The gem is becoming the standard method of installing Ruby libraries. - The one-click installer could be updated to make it more consistent with the gem, but no one has signed up to do this. - It ! is simpler to just have one method of installing Watir. I've discussed this off line with several people, but feel like this is something that requires official community review. Please vote on this proposal. Bret ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general --http://www.testingreflections.com/blog/3071 ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Tracking down xpath bug
I had to disable Display a notification about every script error(Tools Internet Options Advanced Browsing) because several errorreporting pop-ups appeared. irb(main):004:0* p Watir version: + Watir::IE::VERSIONWatir version: 1.5.0.973irb(main):005:0 p Rexml version: + REXML::VersionRexml version: 3.1.4irb(main):006:0 p Platform: + PLATFORMPlatform: i386-mswin32 C:\ruby\lib\ruby\gems\1.8\gems\watir-1.5.0.973\unittestsdiv2_xpath_test.rbLoaded suite C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.0.973/unittests/div2_xpath_testStartedEFFinished in 5.404 seconds. 1) Error:test_div_with_contains(TC_Divs_XPath2):NoMethodError: undefined method `include?' for nil:NilClass c:/ruby/lib/ruby/site_ruby/1.8/rexml/functions.rb:142:in `contains' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:451:in `send' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:451:in `expr' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:438:in`each_with_index' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:438:in `each' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:438:in`each_with_index' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:438:in `expr' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:387:in `expr' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:283:in `expr' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:277:in`each_with_index' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:277:in `each' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:277:in`each_with_index! 'c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:277:in `expr' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:488:in `d_o_s' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in `each_index' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in `d_o_s' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:490:in `d_o_s' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in `each_index' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in `d_o_s' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:490:in `d_o_s' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in `each_index' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in `d_o_s' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:490:in `d_o_s' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in `each_index' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in `d_o_s' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath! _parser.rb:490:in `d_o_s' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in `each_index' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in `d_o_s' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:490:in `d_o_s' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in `each_index' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in `d_o_s' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:490:in `d_o_s' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in `each_index' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in `d_o_s' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:490:in `d_o_s' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in `each_index' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in `d_o_s' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:490:in `d_o_s' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in `each_index' c:/ruby/lib/! ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in `d_o_s' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:490:in `d_o_s' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in `each_index' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in `d_o_s' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:490:in `d_o_s' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in `each_index' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in `d_o_s' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:490:in `d_o_s' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in `each_index' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in `d_o_s' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:490:in `d_o_s' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in `each_index' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in `d_o_s' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:490:i! n `d_o_s'c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in `each_index'c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in `d_o_s'c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:490:in `d_o_s' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in `each_index' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in `d_o_s'
Re: [Wtr-general] Ruby IDE
There is beta version of new arachno at http://www.ruby-ide.com/forum/showthread.php?t=179I remember Lothar said that new version would support Ruby 1.8.3. and higher (but I do not know if this is already implemented).On 5/3/06, Adrian Rutter [EMAIL PROTECTED] wrote:I downloaded Arachno Ruby, but its debugger only supports upto Ruby 1.8.3. ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] IE Dev toolbar
I guess that all of you also know that there is Web Developer extension for FireFox at https://addons.mozilla.org/firefox/60/.Very useful. On 5/11/06, Michael Moore [EMAIL PROTECTED] wrote: Everyone else probalby knows about this already, but I discovered it acouple weeks ago, and it's been very usefulll. It's the IE dev toolbarfrom Microsoft: http://www.microsoft.com/downloads/details.aspx?FamilyID=E59C3964-672D-4511-BB3E-2D5E1DB91038displaylang=enWhile it's got some good stuff like clearing the cache and outliningtables and stuff, the most usefull feature I to me is the Select Element by Click option when using the View DOM view. You clickanything on the page, and the ID, name, and other attributes are shownto you. You can easily copy and paste those attributes into your editor. When clicking items, they are outlined, so it's easy to grabthe right nested table or button or whatever.Anyways, maybe it'll help someone besides me.Thanks,--Michael Moore--- www.stuporglue.org -- Donate your used computer to a student that needs it.www.ubuntu-utah.org -- In Utah? Interested in Ubuntu? Come join us. ___Wtr-general mailing listWtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general-- http://www.testingreflections.com/blog/3071 ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Need Help clicking on a link?
If your table looks like this:table tr td > Open Account /td /tr /table you can fire event that will navigate to '/register/personal.do' like this:ie.table(:index, 1)[1][1].fireEvent(onclick)On 5/12/06, David Solis [EMAIL PROTECTED] wrote: How do I click on '/register/personal.do'-- http://www.testingreflections.com/blog/3071 ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] link.to_s fails with NoMethodError
It looks to me that you have found a bug. Method innertext is notdefined for Watir::Link. If you want it fixed it would be the best tosubmit it to bug database at http://jira.openqa.org/browse/WTR On 5/22/06, Manish Sapariya [EMAIL PROTECTED] wrote: NoMethodError: undefined method `innertext' for #Watir::Link:0x35aafb8 ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] FireWatir
It took me just a few seconds over three hours. :) Finished in 10892.833 seconds. On 5/22/06, gege qian [EMAIL PROTECTED] wrote: could anyone tell how long does it take for running the mozilla_all_tests.rb on firefox? ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
[Wtr-general] how to test e-mail applications
As many web applications do, one that I am testing also sends e-mails. Also, it can receive e-mails.I started testing e-mail functionality. I found Net::SMTP ( http://www.ruby-doc.org/stdlib/libdoc/net/smtp/rdoc/index.html) for sending and Net::POP3 (http://www.ruby-doc.org/stdlib/libdoc/net/pop/rdoc/classes/Net/POP3.html ) for receiving. They both work just fine.I also found RubyMail (http://www.lickey.com/rubymail/) and TMail (http://i.loveruby.net/en/projects/tmail/ ) that should make my testing easier (parsing e-mails mostly).But...I could not install Tmail because I have problems with C compiler.RubyMail does not recognize body of e-mails I am testing with: message.from, message.to and message.subject returns strings that I need, but message.body always returns nil.I will try to contact authors of Tmail and RubyMail. I also started making my own ruby application for sending, receiving and parsing e-mails (my first TDD project!). I just wanted to ask if somebody has any experience with testing e-mail part of your (mostly web) applications and can suggest some tools? Thanks.Željko-- http://www.testingreflections.com/blog/3071 ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Refresh button works only for few fields.
Somebody could actually help you if you had provided your code and html. ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] how to test e-mail applications
I will let you know when I have something to show.On 5/30/06, Bret Pettichord [EMAIL PROTECTED] wrote: Zeljko,I also will be needing to automate the verfication that my application sent correct emails. I appreciate your sharing what you find in this area. Bret ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] How can I open and attach file using file_field method?
If you want it fixed, enter a new case at Jira (http://jira.openqa.org/browse/WTR), so it would not be forgotten. ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Determine HTML property
ie.radio(:id, id).readonly?On 6/1/06, Adrian Rutter [EMAIL PROTECTED] wrote: Hi,I have an HTML field that once saved becomes read-only [readonly=true].Apart from doing a regex on the source how can I determine this property?CheersAidy--- This message and any attachment are confidential and may be privileged or otherwise protected from disclosure.If you are not the intended recipient, please telephone or email the sender and delete this message and any attachment from your system. If you are not the intended recipient you must not copy this message or attachment or disclose the contents to any other person.--- ___Wtr-general mailing listWtr-general@rubyforge.orghttp://rubyforge.org/mailman/listinfo/wtr-general -- http://www.testingreflections.com/blog/3071 ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Quoting previous messages
+1On 6/3/06, Lonny Eachus [EMAIL PROTECTED] wrote: Folks, I have to ask again: PLEASE trim what you include in yourreplies. ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Proposal for supporting multiple attributes
On 6/7/06, Bret Pettichord [EMAIL PROTECTED] wrote: I am planning to add multiple attribute support to Watir. +1 In effect, set of attributes would have an :index of 1 unless something else werespecified.Are you going to make :index 0 based? I remember there was a discussion about it. ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] clicking a link in a javascipt array
This will show you links at your page:ie.show_linksindex name id hreftext/src1 _javascript_:PC_7_0_G1_selectEmployee('0',%20'amend') Amend 2 _javascript_:PC_7_0_G1_selectEmployee('1',%20'amend') Amend3 _javascript_:PC_7_0_G1_selectEmployee('2',%20'amend') AmendThis will click second link: ie.link(:url, _javascript_:PC_7_0_G1_selectEmployee('1',%20'amend')).flashIt worked for me.Željko ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] clicking a link in a javascipt array
That would actually flash the second link. :)This will click the second link:ie.link(:url, _javascript_:PC_7_0_G1_selectEmployee('1',%20'amend')).clickOn 6/7/06, Zeljko Filipin [EMAIL PROTECTED] wrote: ie.link(:url, _javascript_:PC_7_0_G1_selectEmployee('1',%20'amend')).flash ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] WATIT with AJAX.
http://wiki.openqa.org/display/WTR/Comparison+of+Watir+with+Silk+TestOn 6/9/06, Prashanth Krishnamurthy [EMAIL PROTECTED] wrote: 2.Has anyone done any comparison amongst products likeQTP, SIlktest, WATIR etc. ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Hi - New to Watir, need more document information about Watir
Take a look at these:http://openqa.org/watir/ (new home page)http://wtr.rubyforge.org/ (old home page) ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] nil is not true with assert(ie.contains_text)
Try to changeif assert(ie.contains_text(Watir))toif ie.contains_text(Watir) ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] how to test e-mail applications
Chris, Bret,it took me a few days, but now I can send, receive and parse e-mails. I have tried several solutions and ended with these:- receive e-mail - Net::POP3 ( http://www.ruby-doc.org/stdlib/libdoc/net/pop/rdoc/index.html)- send e-mail - Net::SMTP ( http://www.ruby-doc.org/stdlib/libdoc/net/smtp/rdoc/index.html)- create (before sending) and parse e-mail (from file, after receiving) - TMail ( http://i.loveruby.net/en/projects/tmail/)Net::POP3 and Net::SMTP are included in Ruby, TMail needs instalation. I had a problem with TMail installation, and I contacted author. He recommended this procedure, and now it works. ruby setup.rb config --without-extruby setup.rb setupruby setup.rb install ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Problem finding a link URL with RegEx
Try this:$ie.link(:url, /http:\/\/gbahevm07l15:9081\/wps\/myportal.*7_0_12P/).clickOn 6/13/06, Adrian Rutter [EMAIL PROTECTED] wrote:I have got 2 'New' links in one HTML page. The second link has a URL as this: http://gbahevm07l15:9081/wps/myportal/!ut/p/kcxml/04_Sj9SPykssy0xPLMnMz0vM0Y_QjzKLN4i3dAHJgFjGpvqRqCKOcAFfj_zcVKBwpDmQ726kH5abmZeZm1mVmgITdAvDImjoFIBN1MhbPywvvygX6IoQuKGG2AwNRRYMQhgQoO-tH6BfkBsaUW6ca2GcG-BnWubsCADEVrkI/delta/base64xml/L0lDVE83b0pKN3VhQ1NZSkNncFJDZ3BSQS9ZSVVJQUFJSUlJSUlJTU1JSUlNSUlDQ0lHRUVBSktPQk9CS09KRkpGS0pBIS80QjFpY29uUVZ3R3hPVVRvSzc5WVFyTmh6RGNJN0RsRzR4QSEvN18wXzEyUC8xMTQyNS9zcGZfQWN0aW9uTmFtZS9zcGZfQWN0aW9uTGlzdGVuZXIvc3BmX3N0cnV0c0FjdGlvbi8lMG5ld1RlcnJpdG9yeUJJQy5kbw!!#7_0_12P The beginning and end will always be the same whatever environmentsi.e.http://gbahevm07l15:9081/wps/myportal7_0_12P This is the regex I have used without successhttp://gbahevm07l15:9081/wps/myportal\/.*/7_0_12P$ie.link(:url, ' http://gbahevm07l15:9081/wps/myportal\/.*/7_0_12P').clickCould anyone help?Aidy--- This message and any attachment are confidential and may be privileged or otherwise protected from disclosure.If you are not the intended recipient, please telephone or email the sender and delete this message and any attachment from your system. If you are not the intended recipient you must not copy this message or attachment or disclose the contents to any other person.--- ___Wtr-general mailing listWtr-general@rubyforge.orghttp://rubyforge.org/mailman/listinfo/wtr-general ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Drop Down Lists (li)
If you want to click the first link (List Learning Accounts) you can do it like this:ie.link(:text, List Learning Accounts).click ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Problem finding a link URL with RegEx
http://openqa.org/watir/cvs.actionOn 6/14/06, Adrian Rutter [EMAIL PROTECTED] wrote:How could I get hold of this version. Is there a CVS repo I can download from? ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] how to test e-mail applications
If I understood you correctly you want to1. check for e-mail every 10 minutes2. if there is any, download it3. parse e-mails4. using watir, report issues to defect tracking systemand you are wondering if that is possible. I think it is. If you need any help, let me know. ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Can I access caption attribute of a checkbox?
You have input type=checkbox caption=Check Here /? It is not valid html. Check it for yourself at http://validator.w3.org/. ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] how to test e-mail applications
No, you can also parse e-mail and send e-mail.On 6/14/06, Daniel Browne [EMAIL PROTECTED] wrote: I take it has the ability to onlydownload new mail? ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] how to test e-mail applications
No, pop only. Good luck with MS Exchange Server! :)On 6/14/06, Daniel Browne [EMAIL PROTECTED] wrote: I don't suppose you have had anyexperience using Net::POPMail to connect to an MS Exchange Server? ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Trouble with links in a div
You do not have to wait. Get development build from here:http://wiki.openqa.org/display/WTR/Development+BuildsOn 6/14/06, kwan l [EMAIL PROTECTED] wrote: Ok, I guess just have to wait for 1.5. ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] tag a name to an assertation
Try this:assert($ie.select_list(:name, 'criteria.countryId').exists?, select_list(:name, 'criteria.countryId') does not exist) ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] CVS download
You have to downoload TortoiseSVN (not TortoiseCVS) from http://sourceforge.net/project/showfiles.php?group_id=138498package_id=151948 Install it.Create new folder.Right click it.Select SVN Checkout... from context menu.At URL of repository enter http://svn.openqa.org/svn/watir/trunk Click button OK. ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] CVS download
Bret,at http://openqa.org/watir/cvs.action it is stated that watir can be checked out from http://svn.openqa.org/svn/watir/trunk . You should change it to http://svn.openqa.org/svn/watir/trunk/watir.ŽeljkoOn 6/16/06, Bret Pettichord [EMAIL PROTECTED] wrote: Better is to use http://svn.openqa.org/svn/watir/trunk/watirThere are two other projects in this Repo -- Scripting101 and IE Controller. This way you'll only get watir. ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Can I access caption attribute of a checkbox?
That is the latest official version, but I think Angrez was reffering to development build. You can get it here:http://wiki.openqa.org/display/WTR/Development+Builds On 6/19/06, Amitha Shetty [EMAIL PROTECTED] wrote: I am using latest watir version i.e 1.4.1. ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
[Wtr-general] Watir Users forum at forums.openqa.org
Is anybody monitoring Watir Users forum at forums.openqa.org (http://forums.openqa.org/forum.jspa?forumID=5)?Traffic is increasing, and I am replying to questions that I know how to answer, but I can answer only simple questions. For those interested in monitoring that forum, there is rss feed http://forums.openqa.org/rss/rssmessages.jspa?forumID=5.Željko ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Watir Users forum at forums.openqa.org
Bret,I will contact Patrick.On 6/21/06, Bret Pettichord [EMAIL PROTECTED] wrote: I think the only blocker has been that I haven't had the time to follow this up with OpenQA. Would you mind arranging the details with Patrick Lightbody? ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Little Book of Ruby
I just added Programming Ruby and Why's (Poignant) Guide to Ruby.On 6/21/06, Bret Pettichord [EMAIL PROTECTED] wrote:I'd be happy to see other suggestions as well. ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Watir Users forum at forums.openqa.org
Bret,I have contacted Patrick and he said he will do it in day or two. I will keep you posted. ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Issue with gem 1.5.11037
I do not know if this has any value:gem list*** LOCAL GEMS ***[...]watir (1.4.1) Automated testing tool for web applications.ruby -vruby 1.8.4 (2005-12-24) [i386-mswin32] irb(main):001:0 require watir= falseirb(main):002:0 require Watirc:/ruby/lib/ruby/gems/1.8/gems/watir-1.4.1/./Watir.rb:1039: warning: already initialized constant REVISION c:/ruby/lib/ruby/gems/1.8/gems/watir-1.4.1/./Watir.rb:1042: warning: already initialized constant VERSIONc:/ruby/lib/ruby/gems/1.8/gems/watir-1.4.1/./Watir.rb:1045: warning: already initialized constant READYSTATE_COMPLETE c:/ruby/lib/ruby/gems/1.8/gems/watir-1.4.1/./Watir.rb:1048: warning: already initialized constant DEFAULT_TYPING_SPEEDc:/ruby/lib/ruby/gems/1.8/gems/watir-1.4.1/./Watir.rb:1051: warning: already initialized constant DEFAULT_SLEEP_TIME c:/ruby/lib/ruby/gems/1.8/gems/watir-1.4.1/./Watir.rb:1054: warning: already initialized constant DEFAULT_HIGHLIGHT_COLORc:/ruby/lib/ruby/gems/1.8/gems/watir-1.4.1/./Watir.rb:1901: warning: already initialized constant TO_S_SIZE c:/ruby/lib/ruby/gems/1.8/gems/watir-1.4.1/./Watir.rb:2217: warning: already initialized constant TAGc:/ruby/lib/ruby/gems/1.8/gems/watir-1.4.1/./Watir.rb:2225: warning: already initialized constant TAGc:/ruby/lib/ruby/gems/1.8/gems/watir- 1.4.1/./Watir.rb:2232: warning: already initialized constant TAG= true ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Watir Users forum at forums.openqa.org
When talking about forums at openqa.org, what is the purpose of Watir Developers (http://forums.openqa.org/forum.jspa?forumID=6 ). There are only three threads, and I think they all belong to watir general. ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Issue with gem 1.5.11037
David, thanks for the reply, but my post was not clear. The funny thing is that I get false after I type 'require watir'. It should be true, right? And, watir works, as if I did not get false. irb(main):001:0 require watir = false The other thing, I get that warning messages even if I do not type 'require watir' before 'require Watir'. And, of course, watir works that way too. Take a look. C:\Documents and Settings\zfilipin\Desktopirb irb(main):001:0 require Watir c:/ruby/lib/ruby/gems/1.8/gems/watir-1.4.1/./Watir.rb:1039: warning: already initialized constant REVISION c:/ruby/lib/ruby/gems/1.8/gems/watir-1.4.1/./Watir.rb:1042: warning: already initialized constant VERSION c:/ruby/lib/ruby/gems/1.8/gems/watir-1.4.1/./Watir.rb:1045: warning: already initialized constant READYSTATE_COMPLETE c:/ruby/lib/ruby/gems/1.8/gems/watir-1.4.1/./Watir.rb:1048: warning: already initialized constant DEFAULT_TYPING_SPEED c:/ruby/lib/ruby/gems/1.8/gems/watir-1.4.1/./Watir.rb:1051: warning: already initialized constant DEFAULT_SLEEP_TIME c:/ruby/lib/ruby/gems/1.8/gems/watir-1.4.1/./Watir.rb:1054: warning: already initialized constant DEFAULT_HIGHLIGHT_COLOR c:/ruby/lib/ruby/gems/1.8/gems/watir-1.4.1/./Watir.rb:1901: warning: already initialized constant TO_S_SIZE c:/ruby/lib/ruby/gems/1.8/gems/watir-1.4.1/./Watir.rb:2217: warning: already initialized constant TAG c:/ruby/lib/ruby/gems/1.8/gems/watir-1.4.1/./Watir.rb:2225: warning: already initialized constant TAG c:/ruby/lib/ruby/gems/1.8/gems/watir-1.4.1/./Watir.rb:2232: warning: already initialized constant TAG = true irb(main):002:0 ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Issue with gem 1.5.11037
Thanks Bret. I always do 'require watir' but false as a response got me puzzled. I read somewhere (at this list possibly) that I should try 'require Watir' so I tried that too, and than got all that warnings. On 6/27/06, Bret Pettichord [EMAIL PROTECTED] wrote: And you really shouldn't be doing 'require Watir' in the first place. Bret ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Did the implementation for contains_text change?
You can get that warning if you use --verbose parameter: ruby --verbose test.rb On 6/27/06, Bret Pettichord [EMAIL PROTECTED] wrote: The example you provide should not give that warning. (It doesn't for me.) ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Interesting link problem
ie.link(:index, 1).clickOn 6/28/06, David Solis [EMAIL PROTECTED] wrote:Does anybody have any idea how I can click on the first link? ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] to_a method on a table and accessing elements
Try this (but I have not tried it, so I do not know if it works):table = $ie.table(:id, /TerritoryEmployee/).to_atable.each do |element| puts elementendor$ie.table(:id, /TerritoryEmployee/).to_a.each do |element| puts element endOn 6/28/06, Adrian Rutter [EMAIL PROTECTED] wrote: If I use the to_a method on an HTML table,e.g. $ie.table(:id, /TerritoryEmployee/).to_aHow do I access each individual element?ThanksAidy--- This message and any attachment are confidential and may be privileged or otherwise protected from disclosure.If you are not the intended recipient, please telephone or email the sender and delete this message and any attachment from your system. If you are not the intended recipient you must not copy this message or attachment or disclose the contents to any other person.--- ___Wtr-general mailing listWtr-general@rubyforge.orghttp://rubyforge.org/mailman/listinfo/wtr-general ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Need help populating a field array using variables
#{} inside double quoted strings lets you include variables in strings. Like this: irb(main):001:0 a = 1 = 1 irb(main):004:0 a = #{a} = a = 1 I just performed a google search for #{} and #{} (without quotes and with quotes) and got very interesting results. No match. I do not think I have ever seen it before. :) After a quick test, it looks to me that all queries including only punctuation result in no match. Interesting. ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Watir Users forum at forums.openqa.org
Patrick asked what to do with Watir developers. Nobody said that it should not be removed, and I guess that Bret is answering most of the questions there (and he wrote that he would rather see it removed), so I guess it should be removed. Anybody thinks that it should mirror [EMAIL PROTECTED]?Bret, if nobody replies to this in a few days, should I tell Patrick to remove it? ŽeljkoOn 6/27/06, Bret Pettichord [EMAIL PROTECTED] wrote: I have two suggestions.1. Remove it entirely; or2. Rename it to Watir Development and have it mirror [EMAIL PROTECTED].I am currently very behind on replying to emails on wtr-development (my apologies) so i am somewhat reluctant to making it easier for people to post questions there. ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Watir Users forum at forums.openqa.org
Patrick needs[EMAIL PROTECTED] (I guess we should change it to [EMAIL PROTECTED]) subscribed to wtr-general@rubyforge.org. I tried to subscribe it, but that e-mail should be verified, and Patrick said that it is not easy for him to do (but not impossible). He asked if we could somehow force that subscription without that e-mail verified. Can we ask rubyforge to force that subscription? ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] How to handle tab buttons
Your tab is just a cell in a table.ie.cell(:id, tbJobstd0).click ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Just wanted to invoke click event where the button have parameters in it
HTML that you provided is not valid. Three tags have the same id. Ids should be unique.Can you ask your developer to changebutton id=delete 'KH');Delete/button to button id=KH 'KH');Delete/buttonIn short, change id=delete to id=KH.Then you could access it like this ie.button(:id, KH).clickOn 7/19/06, VIKASH KUMAR [EMAIL PROTECTED] wrote: Sir, In my web page there are lots of buttons having same name, they are called using _javascript_. They are as follows: button type=button name=delete id=delete 'BF');Delete/button button type=button name=delete id=delete 'BI');Delete/buttonbutton type=button name=delete id=delete 'KH');Delete/button ie.button(:index,3).click, this works great if we know the index, but if someone just doesn't know the index,knows only the parameter which is ('delete', 'KH'), then what is the solution for it?Please send me the solution for this. Thanks in Advance With Regards Vikash Kumar Find out what India is talking about on Yahoo! Answers India. Send FREE SMS from New Yahoo! Messenger to Mobile: Download NOW! ___Wtr-general mailing listWtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] problem in click event of div
It seems like a spelling error to me, because this works for me (change first id to ie):ie.div(:id,tCt2).clickOn 7/21/06, VIKASH KUMAR [EMAIL PROTECTED] wrote: I wanted to click on div having id=tCt2, the below code is not working: id.div(:id,tCt2).click ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Cancel Subscription
Go to http://rubyforge.org/mailman/listinfo/wtr-general and unsubscribe.ŽeljkoOn 7/25/06, Tess :) [EMAIL PROTECTED] wrote: I do not wish to recieve emails from this network anymore.Please take meoff the list or tell me what I can do.Thanks!Tessa[EMAIL PROTECTED] ___Wtr-general mailing listWtr-general@rubyforge.orghttp://rubyforge.org/mailman/listinfo/wtr-general ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] How to open new IE-window minimized?
It looks like a feature request to me.http://jira.openqa.org/browse/WTROn 7/26/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: But then still the new window appears.I want the same behaviour as if a watir-script is started with -b. ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Just wanted to invoke click event where the button have parameters in it
I knew there must be a way to click that button, I just did not know how. Watir is getting better and better. :)You made a typo, it should beie.button(:html, /'delete', 'KH'/).clickŽeljko On 7/26/06, Bret Pettichord [EMAIL PROTECTED] wrote: ie.button(:html, / 'delete', 'KH')/).click ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Very basic Watir/Ruby question?
This is what watir simple can do: http://wtr.rubyforge.org/rdoc/classes/Watir/Simple.htmlI did not find anything about checkboxes. I guess it is time for you to start using the real watir. You will see it is not that difficult. Just follow user guide: http://www.openqa.org/watir/watir_user_guide.html ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] clicking on a link using sub-text of the link text?
It would be easier if you posted your html so we could try to click that link at our machine instead of guessing. Željko ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] No tests specified
Test::Unit::TestCase must have at least one method which name starts with test_.Changedef centralvision load 'centralvision.rb'endto def test_centralvision load 'centralvision.rb'endand you should be fine.Željko ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Project Map
Patrick from Openqa is trying to merge Watir General forum and this list. There are some problems, but I hope he will resolve them in near future.ŽeljkoOn 7/28/06, Bret Pettichord [EMAIL PROTECTED] wrote: OpenQA provides a web-based forum:http://forums.openqa.org/forum.jspa?forumID=5start=15, but this isn't monitored by as many people. ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Newbie - Ruby dev IDE question
I use Arachno Ruby (http://ruby-ide.com/ruby/ruby_ide_and_ruby_editor.php). Take a look.Željko ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Newbie - Ruby dev IDE question
Did you sent crash reports? Every time I send one, Lothar (developer) quickly fixes it.On 7/31/06, Adrian Lewis [EMAIL PROTECTED] wrote: I use Arachno Ruby ( http://ruby-ide.com/ruby/ruby_ide_and_ruby_editor.php). Take a look.supports only 1.8.2. and the beta for 1.8.4 ([for me] kept crashing). ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Newbie - Ruby dev IDE question
I have ruby 1.8.4 and official version of Arachno works at my windows machine (http://ruby-ide.com/ruby/ruby_ide_and_ruby_editor.php). There is even a Linux version (beta) http://ruby-ide.com/forum/showthread.php?t=589.ŽeljkoOn 7/31/06, Adrian Lewis [EMAIL PROTECTED] wrote:Zeljko Could you give me a link to the Ruby 184 supported version. ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Newbie - Ruby dev IDE question
I do not use debugger a lot, but I just tried it and it works. If you have any problems, contact Lothar or post a question at Arachno forum. What happens when you start debugger? Nothing?Željko On 7/31/06, Adrian Lewis [EMAIL PROTECTED] wrote: But there is no de-bugging with this version and 1.8.4. Am I correct insaying that? ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Newbie - Ruby dev IDE question
Try new and improved Arachno, it will work. And, if it does not, just submit crash report and it will be fixed soon.ŽeljkoOn 7/31/06, Adrian Lewis [EMAIL PROTECTED] wrote: What happens when you start debugger? Nothing? Crashes. But the last time I used it was over a month ago. ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Watir 1.5
You have probably installed watir 1.4.1 with one-click installer. The most simple solution is to uninstall ruby, install it again and then install watir gem.Željko ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Want to run my test in slow speed??
As simple as:ie.set_slow_speedŽeljko ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] AJAX applications.
http://en.wikipedia.org/wiki/AJAXZeljko ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] retrieve data from a specific tags
Tryie.div(:class, tnt-error).textZeljko ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] retrieve data from a specific tags
I guess it would not work without the latest watir.http://wiki.openqa.org/display/WTR/Development+BuildsIt worked for me with watir 1.5.1.1045 .Željko ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Problem in accessing array element
data[2] contains the third element of your array (array counts from zero: 0, 1, 2, 3...).Zeljko ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Facing difficulty in click event of menus
Try:ie.span(:text, View Transactions).flashie.span(:text, View Transactions).clickZeljko ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] problem in opening a file
Or you could put path to a variablepath = C:\demo\workbook = excel.Workbooks.Open (#{path}mation.xls)Zeljko ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general