400994-406991

400784-401105 subjects 401174-407831

putting values in one lines
400994 [lists@ru y- ] Dont know how to explain this.
+ 400996 [shortcutter@] First I'd start by not using shell tools for this in a Ruby script (and
| 400997 [lists@ru y- ] .  Then we'd need to know the input to come up
+ 400999 [lists@ru y- ] require 'stringio'
| 401000 [lists@ru y- ] only problem is, i want output like
+ 401001 [lists@ru y- ] require 'stringio'
| 401002 [ryand-ruby@z] results = []
+ 401003 [tamouse.list] If you're hoping to do a pure ruby implementation of this, heed the others.
  401005 [tamouse.list] lines = IO.readlines(file)
  401011 [tamouse.list] output = []
  401013 [tamouse.list] puts IO.readlines("data").grep(/up\s+down\s+aenet/).map{|l| l.split[5]}.join " "

[ANN] mysql 2.8.2 Released
400998 [luislavena@g] mysql version 2.8.2 has been released!

2012 Fukuoka Ruby Award Competition - Grand Prize, 1,000,000JPY!
401004 [nakashima-k8] Dear Ruby Enthusiasts,

Ruby Gem Dev IDE or editor?
401006 [lists@ru y- ] I am making a ruby gem but I have to create a project structure and rake
401009 [carlos.agari] From what I've seen, few people in the Ruby community use an IDE. A good
401014 [lists@ru y- ] Bundler looks good! That's what I am looking for. I don't necessarily

Type confusion: Java vs. Ruby
401007 [lists@ru y- ] Today in my computer security class, we talked about Java type confusion
+ 401010 [carlos.agari] I'm sorry, but I don't know much about it. In any case, you might find the
+ 401012 [lists@ru y- ] class Dog
| 401030 [shortcutter@] Since eval is evil there's also
+ 401021 [lists@ru y- ] Mm...meaby that's not what Regina is asking.
+ 401029 [matma.rex@gm] Every variable in your Ruby code in (internally) a C type called
  401038 [lists@ru y- ] That is really helpful! Thank you! I feel like I understand this a lot better.
  401049 [iainspeed@gm] This is a link to a translation of the Ruby Hacking guide http://rhg.rubyforge.org/chapter02.html which I got from this also very useful blog post http://patshaughnessy.net/2012/1/4/never-create-ruby-strings-longer-than-23-characters. There's lots of good stuff in there about how Ruby stores things.

Problem using xmlrpc/client in ruby
401019 [Mohammed-Yas] ...

class variables in Rack middleware
401020 [iainspeed@gm] I see a lot of class variables used in Rack middleware, and this is =

Python Projects
401022 [lists@ru y- ] We've built a site that aims at helping people upgrade their programming
401023 [lists@ru y- ] Python Projects

Site down watir-webdriver
401026 [lists@ru y- ] Whenever a site is down it keeps on looking for it for sometime and
+ 401032 [lists@ru y- ] you want
| + 401041 [lists@ru y- ] but its not catching exception and giving the error what I mentioned.
| + 401042 [lists@ru y- ] child_thread.each do |t|
+ 401050 [lists@ru y- ] The error states line 64. What do you have there?
+ 401051 [lists@ru y- ] Are you sure this is the browser timing out and not the thread? I've
| 401054 [lists@ru y- ] When Can a join statement throw such error?
+ 401060 [lists@ru y- ] Which line is causing the error;
| 401061 [lists@ru y- ] Error is caused by
+ 401063 [lists@ru y- ] Does this help?
| 401064 [lists@ru y- ] No-no, I went to this link, it catches the error, but the thing is I
+ 401069 [lists@ru y- ] I don't know enough about threads to be much help; but I would have
| 401095 [lists@ru y- ] but then why am getting error at 'join'
+ 401109 [lists@ru y- ] You're using Ruby 1.8.7? I think I've seen a few comments online about

Closing popups watir-webdriver
401027 [lists@ru y- ] Sometimes popup comes when a link is clicked, sometimes popup comes when
+ 401033 [lists@ru y- ] Posted via http://www.ruby-forum.com/.
| 401043 [lists@ru y- ] This works when the main window is not closed, but sometimes when you
+ 401052 [lists@ru y- ] I think your best bet is probably to loop through the active windows and
| 401056 [lists@ru y- ] What is this: browser??
+ 401059 [lists@ru y- ] browser or driver is the most common variable name for a webdriver
| 401062 [lists@ru y- ] br=Watir::Browser.new :ie
+ 401068 [lists@ru y- ] Try it this way around
| 401070 [lists@ru y- ] what does this line do?
+ 401076 [lists@ru y- ] It overwrites the JavaScript function on the current page which triggers
| 401084 [lists@ru y- ] Not working!!
+ 401088 [lists@ru y- ] Maybe you could try looking at the source code on the page which is
+ 401094 [lists@ru y- ] I have confirmed.. it is javascript indeed. anyway to catch the issue?
+ 401108 [lists@ru y- ] Are you running that JS overwrite as the last thing before closing the

open-uri, nokogiri and UTF-8 to US-ASCII
401028 [atma@co va e] # encoding: UTF-8
+ 401036 [jh_ruby-lang] #!/usr/bin/ruby
+ 401037 [lists@ru y- ] If one were to examine the ruby URI docs, how would one know that there
  401040 [botpena@gm i] try eg,
  401078 [lists@ru y- ] But to write that, you already have to know there is an escape() method
  401081 [botpena@gm i] URI is big. as if now, we'll have to dig down further.

Please help - new to Ruby - stumped (sql and array returns)
401034 [lists@ru y- ] I am new to the language and trying to add a couple of simple tests on
401035 [lists@ru y- ] I have moved this to the Rails forum.

[Solved]Re: Capturing output from external application results in Errno::EMFILE: Too many open files
401039 [lists@ru y- ] Hopefully I can save someone else 2 weeks of hair pulling with the

rvm broken on mint and cannot log a bug there
401044 [lists@ru y- ] Freshly installed Mint Linux.  Installed RVM using apt-get (command
401045 [lists@ru y- ] DO NOT USE MINT LINUX IF YOU ARE A SERIOUS DEVELOPER IT DOES NOT WORK
401057 [atma@co va e] A little off topic but...

Need help improving this FileUtils.cp of an array of destinations
401046 [lists@ru y- ] Got any suggestion on how to improve this Filecopy code snippet below?
+ 401047 [peterhickman] Well I played a little with the code
+ 401048 [lists@ru y- ] Thanks for quick reply.
  401053 [peterhickman] This is the code you posted
  401067 [shortcutter@] I do especially wonder what val is used for and why there seem to be two

ruby xmlrpc call not working
401055 [Mohammed-Yas] ...
+ 401225 [contact@se o] Could you post the the error you are receiving from the interpreter as a Gist?
+ 401228 [lists@ru y- ] Since this is not encrypted, using tcpdump or wireshark will show you

QuantBet LLP  Web Scraper Role - Leeds
401058 [lists@ru y- ] We are a mathematical and computing consultancy providing bespoke advise

QuantBet LLP - Senior Developer Role - Leeds
401065 [lists@ru y- ] QuantBet LLP is a mathematical and computing consultancy providing

QuantBet LLP - Developer role - Leeds
401066 [lists@ru y- ] QuantBet LLP is a mathematical and computing consultancy providing

fulltextextract boilerpipe
401077 [lists@ru y- ] I am using boilerpipe gem to extract plaintext from a web page, to do so

Ruby script to process html
401079 [lists@ru y- ] What would be the most cool way to process/parse html and write it out
+ 401080 [jonanscheffl] Anytime you're trying to parse HTML you want a gem called nokogiri. There's
+ 401082 [lists@ru y- ] Or maybe you have a hint how to extract value between <td>...</td>,
| 401085 [sto.mar@we .] Depending on the formatting etc. of the real data, this could
| 401086 [shortcutter@] I find processing tag structures with line oriented tools pretty uncool.
| 401096 [sto.mar@we .] Robert, that's exactly what I wanted to convey to the OP,
| 401097 [shortcutter@] irb(main):001:0>  '  <tr>Test</tr>'[%r{<tr>(.*?)</tr>}, 1]
+ 401106 [lists@ru y- ] Thanks, all guys.
| 401112 [sto.mar@we .] Sometimes a little more effort at the beginning pays off
+ 401113 [lists@ru y- ] I also highly recommend Nokogiri. I tried a few different ways to parse

scripting buddies?
401083 [lists@ru y- ] i'm learning ruby to help with an old project. i need someone to
+ 401087 [shortcutter@] What's wrong with posting your questions here?
+ 401110 [lists@ru y- ] well firstly, I'm trying to develop a two player script for an old RMXP

A problem involving each and arrays
401089 [lists@ru y- ] I have a problem with a program I'm writing and I was wondering if
401092 [lists@ru y- ] the method stumbles upon the ['write'] entries being in myblock. A
401093 [lists@ru y- ] Thanks. I will clean up the code and try again.

Watir Webdriver rapidly untick all checkboxes?
401090 [lists@ru y- ] I have to deal with a web page with over 14000 checkboxes. What I was
401198 [lists@ru y- ] FYI I tried extending Firefox's JavaScript timeouts. All it seems to do

Ruby on Rails: serialize Hash incredibly slow
401091 [lists@ru y- ] (cross post from
401107 [ryand-ruby@z] This list is for ruby, not rails...

RSpec question about catching expected exception in class .new
401098 [tamouse.list] class Marker
401103 [eule@sp ce c] context "unequal lengths" do
401122 [tamouse.list] Oh, thanks, yes! I guess I didn't read far enough in the RSpec book; I found it!

[ANN] qemu-toolkit 0.3.0
401102 [eule@sp ce c] qemu-toolkit is a small collection of tools to help with running virtual

[ANN] Ruby 1.9.3 patchlevel 327
401111 [usa@ga ba ec] Ruby 1.9.3-p327 is released.

[ANN] hoe 3.2.0 Released
401114 [ryand-ruby@z] hoe version 3.2.0 has been released!

[ANN] RubyInstaller 1.9.3-p327 released
401115 [luislavena@g] In combination with the rest of the RubyInstaller team, I'm very
+ 401118 [luislavena@g] If you have problems downloading from RubyForge, please use the links
+ 401139 [luislavena@g] Seems lot of folks are having problems with RubyForge (it is down now)

[ANN] hoe-seattlerb 1.2.9 Released
401116 [ryand-ruby@z] hoe-seattlerb version 1.2.9 has been released!

[ANN] ssh 1.1.0 Released
401117 [ryand-ruby@z] ssh version 1.1.0 has been released!

[ANN] ruby2c 1.0.0.8 Released
401119 [ryand-ruby@z] ruby2c version 1.0.0.8 has been released!

[ANN] ruby2c 1.0.0.9 Released
401120 [ryand-ruby@z] ruby2c version 1.0.0.9 has been released!

[ANN] zenweb-template 1.0.0 Released
401121 [ryand-ruby@z] zenweb-template version 1.0.0 has been released!

Heroku question
401123 [lists@ru y- ] Is Heroku for  uploading my pure ruby(not rails) application and letting
401124 [eule@sp ce c] I've done this in the past - it works. I am unsure as to how much CPU
401126 [   ar@le .m ] You can do this; it's just like any other worker process. Per Kaspar's suggestion, put it in the Procfile and away you go. Note that you don't get free dyno hours for non-web process.s

Complete newbie
401125 [lists@ru y- ] Hey guys!
+ 401128 [lists@ru y- ] You have to save the file with the extension *.rb, then open your
+ 401130 [lists@ru y- ] Thanks for your help, however, as I said I am completely new and don't seem to be able to make it work.
| 401131 [hassan.schro] That's wrong; if you want to *run* the program in the file, do exactly
+ 401133 [lists@ru y- ] Thanks so much!!
+ 401134 [lists@ru y- ] Your mac already comes with a computer programming text editor--it's
| 401135 [echristopher] Let's not distract a newbie with a funky editor. I love Vim, but it's
| 401136 [nspryspartan] True. Why not try Gedit or maybe sublime text 2? Just a suggestion.
| 401137 [carlos.agari] Hey Carlos (same name as me :),
| + 401138 [nspryspartan] I really enjoy this mailing list you can really learn a lot, I didn't know
| | 401142 [daniela.robl] It'd be great if someone can forward me this entire thread to see all the
| + 401144 [sto.mar@we .] It's a great book, but maybe rather not for a "complete newbie",
|   401149 [lists@ru y- ] Agree, I was also a newbie like Carlos, what awake me the passion for
+ 401167 [lists@ru y- ] Wow!! This is amazing! That you all for the amazing help/suggestions.

Re: RubyInstaller 1.9.3-p327 released
401127 [lists@ru y- ] Thank you Luis.

Re: [RubyInstaller] Re: [ANN] RubyInstaller 1.9.3-p327 released
401129 [luislavena@g] ls
401155 [luislavena@g] As I said before: it wouldn't. TheCodeShop included Fenix patches

Instance name of a class/object?
401141 [lists@ru y- ] I am in the middle of writing an app that has a good number of
+ 401145 [sto.mar@we .] - the object is created first, before it can be assigned to a variable
| 401147 [sto.mar@we .] If you have lots of config objects you then could also use an array
| 401154 [lists@ru y- ] I started with that, and wondered if there was a "better way". :-)
+ 401146 [lists@ru y- ] In general it doesn't make any sense for an object to know its "name",
  401152 [lists@ru y- ] It just looked cleaner to me! Passing in the same name as the instance

Trouble with http post
401143 [lists@ru y- ] I am trying to create an http post request that sends a series of
+ 401157 [hassan.schro] Those two statements are at odds; adding a parameter to the query
+ 401162 [lists@ru y- ] Thanks for the reply. I have read and re-read the NET::HTTP docs and it
| 401170 [tamouse.list] and it shows that data must be a string. What documentation are you
+ 401172 [lists@ru y- ] I was looking at the examples higher up on the page. The POST and POST

Issue in reading the contents of XLSX using roo gem
401148 [lists@ru y- ] I have to parse through and store the contents of each cell in an array.
401150 [lists@ru y- ] First of all, it's not necessary to pass the third argument to cell()
401151 [lists@ru y- ] Thanks a lot igorjorobus. This worked :)

[ANN] ruby-oci8 2.1.3
401153 [kubo@ji ba .] Ruby-oci8 2.1.3 is released. This is the Oracle module using OCI8 API.

(none)
401156 [csammy@gm il] ...

problem with the mechanize gem
401158 [lists@ru y- ] Right now Im trying to do some screen scraping using the Mechanize gem.
+ 401159 [bradleydsmit] Make sure there is actually an anchor tag named News
+ 401160 [lists@ru y- ] Oh! You are right.

Convert date to string
401161 [lists@ru y- ] i have seen couple of example of convert the date to string. but dont
+ 401163 [hassan.schro] Why would you want to? For your use case it's easier to compare
+ 401164 [fluido@fl id] The time-management functions that are included in Ruby are excellent.
  401165 [lists@ru y- ] you said, Substract a time from another, yes thats one i want ..
  401177 [sto.mar@we .] Simply use `t1 = Time.new', which returns the current system time.
  401178 [hassan.schro] I think that should be DateTime::parse, but ...
  401179 [sto.mar@we .] The OP was using Time.parse from the `Time' library.
  401181 [hassan.schro] Really?
  + 401182 [fluido@fl id] require 'time'
  | 401184 [hassan.schro] OK, that's disturbing. How is it that I can do Time.new without first
  | 401185 [fluido@fl id] Plain time handling is included in the default runtime. Time.rb adds
  + 401183 [sto.mar@we .] Please reread the thread.

Ruby and SciTE
401166 [daniela.robl] Ruby no longer comes together with SciTE, so I had to download the SciTE
+ 401168 [fluido@fl id] I do not know anything about SciTE, but command-line Ruby expects you
+ 401171 [quintus@qu n] In order to run scripts, SciTE executes Ruby as an external process.

question on watir
401173 [lists@ru y- ] I am automating Idit application using Ruby, at one screen I can't feed
+ 401175 [lists@ru y- ] I think it's usually select_list, and you haven't entered an id to look
| 401176 [lists@ru y- ] I just place the syntax, My original line is this
+ 401197 [lists@ru y- ] There are a few reasons it might not work.
+ 401246 [lists@ru y- ] Really so much thank you for your reply, Actually I have already solved
+ 401251 [lists@ru y- ] No problem, I struggled to find documentation when starting out with
+ 401260 [lists@ru y- ] Thank you so much.
+ 401261 [lists@ru y- ] I am using eclipse for automation,when i am executing the program using
+ 401262 [lists@ru y- ] please look at this error,
| 401269 [lists@ru y- ] You may have crashed out without closing the process which is accessing
+ 401272 [lists@ru y- ] I got it, Thank you.
| 401286 [stevedodkin@] unsubscribe
+ 401292 [lists@ru y- ] i don't understand, what do you mean by "unsubscribe"?
| 401293 [   ar@le .m ] People seem to have gotten the idea that they unsubscribe by sending the word "unsubscribe" to the list itself.
+ 401294 [lists@ru y- ] Thank you , I was scared when i saw the word unsubscribe,because i
+ 401386 [lists@ru y- ] I have a question, For an example consider that I have to execute 10
+ 401396 [lists@ru y- ] Firstly, please start any new question as a new thread so others can
+ 401399 [lists@ru y- ] Yeah I will start a new thread if i have question in future, Thank you
+ 403340 [lists@ru y- ] I couldn't create a new thread, If press submit button, it came back to
+ 403341 [lists@ru y- ] But a far better approach is to upgrade to Ruby 1.9.3.
+ 403342 [lists@ru y- ] I used this "gem install watir -v 3.0.0" (the reason I have used is,I
+ 403345 [lists@ru y- ] Without a more descriptive response than "i couldn't succeed" ,it's
+ 403346 [lists@ru y- ] I used 'gem install watir -v 3.0.0' ,But i failed to install this. Error
+ 403382 [lists@ru y- ] we usually run ruby program by giving the command
+ 403385 [lists@ru y- ] If you want to just double click the file and run it then you can
+ 403398 [lists@ru y- ] Ok thank you.
+ 403399 [lists@ru y- ] I am running the 500 test cases. In this, if server has been down for
+ 403402 [lists@ru y- ] Rather than tell you how to fix your specific problem, I'll give you a
+ 403411 [lists@ru y- ] Ok Thank you.
+ 403523 [lists@ru y- ] They have explained how can we handle the exception. Now, my question
+ 403527 [lists@ru y- ] It depends what you mean by "screens". If you're referring to the
+ 403534 [lists@ru y- ] Thank you, I am running in a single machine, For each screen I have
+ 403535 [lists@ru y- ] could you please write the small code about how to write the exception
+ 403536 [lists@ru y- ] You basically have 2 options...
+ 403537 [lists@ru y- ] Posted via http://www.ruby-forum.com/.
+ 403548 [lists@ru y- ] Regarding DRY,
+ 403557 [lists@ru y- ] OK Thank you.
+ 403558 [lists@ru y- ] please consider this code below
+ 403562 [lists@ru y- ] class MyTestClass
| 403567 [lists@ru y- ] It's probably best to put the errorhandler in the script which is using
+ 403563 [lists@ru y- ] You're rescuing the exceptions inside fun1, but your loop inside class
+ 403571 [lists@ru y- ] irb(main):013:0> begin
| 403575 [lists@ru y- ] begin
+ 403573 [lists@ru y- ] If you want the Exception to be passed up to the next level...
+ 403574 [lists@ru y- ] Ok thank you ,it's very helpful.
+ 403578 [lists@ru y- ] Yep, thank you very much, I exactly understood.
+ 403602 [lists@ru y- ] I have some confusion with
+ 403605 [lists@ru y- ] I've never tried this before, but after a little digging I got this to
+ 403606 [lists@ru y- ] I am not sure whether you have answered my question. Actually my
| 403612 [lists@ru y- ] Because you haven't contained it within a method, it'll execute when you
| 403614 [lists@ru y- ] I think you have misunderstood,
+ 403615 [lists@ru y- ] It looks like anything starting with "test" gets executed automatically
+ 403616 [lists@ru y- ] Yes this is what I meant, but now the problem is, how do I write the
+ 403617 [lists@ru y- ] What do you want the handler to do? Skip to the next test, quit the
+ 403620 [lists@ru y- ] when the control in a particular method and server has been failed,
+ 403621 [lists@ru y- ] I'm pretty sure the whole point of using testcase is so that you can
+ 403622 [lists@ru y- ] Yes, you are right , I need to report to the user that how many failures
+ 403623 [lists@ru y- ] I think you'll need to do something specific around each page navigation
+ 403684 [lists@ru y- ] OK thank you.
+ 403687 [lists@ru y- ] tests = method_names.delete_if { |method_name| method_name !~ /^test/ }
+ 403692 [lists@ru y- ] delete_if is an array method, it looks like you're trying to run it
+ 403824 [lists@ru y- ] Yes I got it. Thank you.
+ 403926 [lists@ru y- ] def mymethod
+ 403929 [lists@ru y- ] This was done with Watir-webdriver, not selenium-webdriver, so it
+ 403930 [lists@ru y- ] Timeout.timeout(10) do
+ 403932 [lists@ru y- ] You need to require 'timeout'
+ 403938 [lists@ru y- ] ok ok.
+ 405638 [lists@ru y- ] $browser.text_fields.each {|el| puts el.id }
+ 405640 [lists@ru y- ] You could try "elements" but that'll be quite slow on most pages since
+ 405641 [lists@ru y- ] OK, Thank you.
+ 405683 [lists@ru y- ] I have one text box, another one is combo box, combo box value will be
+ 405686 [lists@ru y- ] Here's something I did to deal with a dynamically updating text field.
+ 405689 [lists@ru y- ] Oh That's good idea, i will try using that.
+ 405693 [lists@ru y- ] can i check whether it is text box or combo box or check box using id?
+ 405696 [lists@ru y- ] I think your best best is to use my_element.html and extract the valid
+ 405705 [lists@ru y- ] Then how can I verify whether it is combo or text box?
+ 405707 [lists@ru y- ] [:text_fields, :select_lists, :checkboxes].each do |type|
| 405708 [lists@ru y- ] bollocks, that puts "checkboxe" instead of "checkbox".
+ 405710 [lists@ru y- ] Thank you very much this would help me,
| + 405711 [zmsquf99@gm ] As far as I know, there is no "order" in hash. If the order matters, you
| + 405745 [sto.mar@we .] then you are using a very old Ruby version.
+ 405712 [lists@ru y- ] [:text_fields, :select_lists, :checkboxes].each do |type|
| 405713 [lists@ru y- ] Hah, doesn't feel like it to me! Thanks anyway :)
+ 405715 [lists@ru y- ] a.sort_by &:first
+ 405716 [lists@ru y- ] a.sort_by &:first
+ 405717 [lists@ru y- ] Ok ok I understood here, But I don't want the sorted order, But I want
+ 405718 [lists@ru y- ] If you know the input order then use your inputs to retreive the values
+ 405721 [lists@ru y- ] It's giving an error to me.
+ 405722 [lists@ru y- ] Still it is printing in the same order it doesn't provide the result in
+ 405726 [lists@ru y- ] Are you trapping the order before you mess with the hash?
+ 405731 [lists@ru y- ] I am using excel sheet to store the values, while I am reading those
+ 405734 [lists@ru y- ] Well, that's a lot of logic to cover with a quick Q&A.
+ 405735 [lists@ru y- ] Yes,
+ 405736 [lists@ru y- ] In that case you may as well use excel's columns and rows to iterate,
+ 405737 [lists@ru y- ] How can you iterate excel column and row,
+ 405738 [lists@ru y- ] How you iterate depends on what you're using to access excel. There's
+ 405739 [lists@ru y- ] Yes that we have already done, from that I was reading my HASH. OK i
+ 405741 [lists@ru y- ] Thank you for your help today, you have taught a lot today to me.
+ 405742 [lists@ru y- ] hash = { 'Name' => { B1: 'James', B2: 'Tiberius', B3: 'Kirk' },
+ 405769 [lists@ru y- ] 1.9.3,I am facing the problem gem installation, So i never go there.
| 405771 [sto.mar@we .] Any support for 1.8.7 (like security fixes) will end this year.
+ 405772 [lists@ru y- ] I have already in a project for automation,now all functions are working
+ 405774 [lists@ru y- ] if a.class.to_s == 'hash'
| 405775 [tamouse.list] Not quite getting what you want, but would === or is_a? work?
+ 405778 [lists@ru y- ] object.is_a?( Hash ) is the one I usually use.
+ 405780 [lists@ru y- ] Yes it's working fine, this i what I want.
+ 405782 [lists@ru y- ] yes it is working for me, this is what I want.And what is the difference
+ 405785 [lists@ru y- ] part of the window. But Now I am automating another screen,here pop up
+ 405787 [lists@ru y- ] Posted via http://www.ruby-forum.com/.
+ 405788 [lists@ru y- ] Ok Thank you very much.
+ 405909 [lists@ru y- ] a="hi how are you
+ 405914 [lists@ru y- ] Inspect the result you get from "SCREEN". You may have different
+ 405915 [lists@ru y- ] Yes thank you, I realized that that character was 13 not 10.10 is for
+ 405916 [lists@ru y- ] what do you meant by this line? I don't understand what you meant by
+ 405917 [lists@ru y- ] It means that 1.8.7 won't receive any more updates, so you need to
+ 405919 [lists@ru y- ] Ok thank you.
+ 405922 [lists@ru y- ] You told me to refer the another discussion for popup, I used your code
+ 405923 [lists@ru y- ] puts $browser.windows.count
+ 405924 [lists@ru y- ] puts $browser.windows.count
+ 405926 [lists@ru y- ] When you say "popup" do you mean a Javascript Alert?
+ 405950 [lists@ru y- ] def modalDialog(flg)
+ 406005 [lists@ru y- ] how can i make my program to wait until it chooses an element from the
+ 406006 [lists@ru y- ] Do you mean selecting an option within the element's list, or do you
+ 406010 [lists@ru y- ] yeah yeah it is waiting, I did some mistake here. Just I realized.
+ 406013 [lists@ru y- ] My browser is loading very slowly, due to that I am having this error,
+ 406018 [lists@ru y- ] I have another question, Server is overloaded when I automated this web
+ 406022 [lists@ru y- ] Sorry, these are both outside my area of expertise. Maybe some other
+ 406038 [lists@ru y- ] Thank you.
+ 406073 [lists@ru y- ] puts $browser.windows.count
+ 406074 [lists@ru y- ] __________________________________________
+ 406080 [lists@ru y- ] Ok,
+ 406081 [lists@ru y- ] Does it work with just a blank new window?
+ 406083 [lists@ru y- ] I tried like you through irb, I met up with pop problem, and then I open
| 406085 [lists@ru y- ] Then it's something to do with the way the popup is created. I'd guess
+ 406086 [lists@ru y- ] Ok I will try , Can I read the message from the pop up?if so, what code
+ 406087 [lists@ru y- ] The way you read the message depends on exactly what the popup contains.
+ 406088 [lists@ru y- ] But how can I attach the pop ? why i am asking is, when I attach the
+ 406096 [lists@ru y- ] In the version of Watir I have, you can just keep iterating via index.
+ 406099 [lists@ru y- ] attaching problem, I have written your code of below, It's perfectly
+ 406102 [lists@ru y- ] ______________________
+ 406103 [lists@ru y- ] That's excellent I understand.
+ 406131 [lists@ru y- ] 100.times { |t|
+ 406134 [lists@ru y- ] irb(main):001:0> require 'watir'
| 406145 [tamouse.list] So where my head is at.....
+ 406138 [lists@ru y- ] Ok, Since I am using Ruby 1.8.7, this problem might have occured.
+ 406152 [lists@ru y- ] No,No Just I told you.
+ 406159 [lists@ru y- ] Look at the below code,
+ 406164 [lists@ru y- ] This will flash every cell with a title in the first table it finds (for
+ 406171 [lists@ru y- ] OK, Thank you.
+ 406172 [lists@ru y- ] click_no_wait?
+ 406173 [lists@ru y- ] If you mean that there's an alert appearing immediately after you set
+ 406197 [lists@ru y- ] Thank you.
+ 406198 [lists@ru y- ] In the case of gmail, this would do it.
+ 406202 [lists@ru y- ] b.text_fields.each { |t| puts t.parent.labels.first.text }(I made it as
+ 406204 [lists@ru y- ] $browser.link(:id,'click').when_present.click
+ 406206 [lists@ru y- ] Regarding NilClass, the code I gave is assuming that the text field is
+ 406207 [lists@ru y- ] how can you write the code to check the value, Do i need to select any
+ 406211 [lists@ru y- ] Regarding NilClass, the code I gave is assuming that the text field is
+ 406231 [lists@ru y- ] I redefined your code according to my necessity,
| 406234 [lists@ru y- ] There are some ideas on sorting IDs here, you should be able to collect
+ 406232 [lists@ru y- ] For textbox we are using text_field, what is the corresponding one for
+ 406235 [lists@ru y- ] No no i am not asking about the sorted one, But the order the objects
+ 406237 [lists@ru y- ] As I said,
+ 406297 [lists@ru y- ] helps to our testing?
| 406343 [sto.mar@we .] Please start a different thread for questions that are not related.
+ 406328 [lists@ru y- ] Never used it. It looks interesting though, I'll have a look.
+ 406360 [lists@ru y- ] Never used it. It looks interesting though, I'll have a look.
+ 406480 [lists@ru y- ] what I meant was, in the date field, I should not enter "raja", if i
+ 406481 [lists@ru y- ] the gmail,
| 406484 [lists@ru y- ] Something like this should work.
+ 406482 [lists@ru y- ] It depends whether you mean a Date object or a string in date format. If
+ 406483 [lists@ru y- ] Ok thank you.
+ 406485 [lists@ru y- ] OK thank you.
+ 406486 [lists@ru y- ] More closely put,I have to bring cursor pointer to the specific textbox.
+ 406487 [lists@ru y- ] Can you explain what you're trying to achieve by this? It's sometimes
+ 406489 [lists@ru y- ] i have written a code to dynamically generate the id,but i don't have to
+ 406490 [lists@ru y- ] b.text_field(:id,from spreadsheet).set(from spreadsheet)
+ 406491 [lists@ru y- ] this is interesting,
+ 406492 [lists@ru y- ] On gmail's login page, the id is always the same.
+ 406493 [lists@ru y- ] But my problem is little differs. Here ids are fixed, but I can't create
+ 406494 [lists@ru y- ] How do you, doing it manually, identify where each value goes?
+ 406495 [lists@ru y- ] Look at this code
+ 406496 [lists@ru y- ] if type.to_s[0..-2].eql?('text_field')
+ 406497 [lists@ru y- ] My aim is to produce that four lines code for all fields.
| 406500 [lists@ru y- ] That sounds like a very repetitive way of going about this. In general,
+ 406511 [lists@ru y- ] sheet.each do |record|
+ 406513 [lists@ru y- ] I don't know what your sheet looks like, what data you need to return,
+ 406514 [lists@ru y- ] i think you did not understand my question here.
+ 406515 [lists@ru y- ] There are many ways to do this. You should go through some tutorials on
+ 406516 [lists@ru y- ] Yes thank you, this is what I expected.
+ 406517 [lists@ru y- ] I didn't know the Jet engine was still in use, thought that had died
+ 406518 [lists@ru y- ] I have opened the connection like below
+ 406519 [lists@ru y- ] Again, this is veering away from Ruby into other territory.
+ 406520 [lists@ru y- ] Ok thank  you.
+ 406521 [lists@ru y- ] In the below line
+ 406522 [lists@ru y- ] my_hash = {
| 406525 [lists@ru y- ] my_hash = {
+ 406523 [lists@ru y- ] Select returns an array, so "first" just picks the top one out for you.
+ 406524 [lists@ru y- ] Ok I understand.
+ 406526 [lists@ru y- ] I am working in a project, and also I am styding while something new is
+ 406527 [lists@ru y- ] I have another question,
+ 406530 [lists@ru y- ] Enumerable#select is what is being used. This returns an array (a
+ 406531 [lists@ru y- ] select {|key, value| block} вк a_hash click to toggle source
+ 406534 [lists@ru y- ] select {|key, value| block} => array
+ 406535 [lists@ru y- ] Ok got it.
+ 406538 [lists@ru y- ] If i jump into 1.9.3 ,do i need to face lot of change in my existing
+ 406541 [lists@ru y- ] You can run side-by-side installs. I think I've heard RVM mentioned in
+ 406546 [lists@ru y- ] Yes that seems to be a good idea if i have more than one version. And
+ 406580 [lists@ru y- ] click the select box so that it would appear with drop down list.
+ 406581 [lists@ru y- ] Can you tell me how to choose the first element from select_list?
+ 406601 [lists@ru y- ] Include this question with the above one, when watir places the value in
| 406677 [lists@ru y- ] I haven't observed this behaviour, however I should think if it does
+ 406676 [lists@ru y- ] I think clicking a select box would probably cause the list to appear.
+ 406725 [lists@ru y- ] Ok thank you, And that url is available in internal server,it's not
+ 406726 [lists@ru y- ] I have a question,
| 406727 [sto.mar@we .] Try
+ 406728 [lists@ru y- ] when i try to print the elements as you have explained, it throws the
| 406735 [sto.mar@we .] That's strange because in my example `each` has not been called
+ 406733 [lists@ru y- ] do we have anything equivalent to static keyword in C?
| 406736 [sto.mar@we .] Please start a new thread for unrelated questions.
+ 406811 [lists@ru y- ] $ irb
+ 406829 [lists@ru y- ] can you tell me what is the difference between
| 406831 [julian@co et] * here converts an array to a list of arguments.
+ 406832 [lists@ru y- ] The word you're looking for is "splat". I found this link quite useful
+ 406842 [lists@ru y- ] Thank you .I understood what you meant.
+ 406975 [lists@ru y- ] Class.class==Class
+ 406982 [lists@ru y- ] Class is part of Ruby's core. Any class you make will be an instance of
+ 406985 [lists@ru y- ] Yep this is ok, this i understood. My main focus is, how can Class be
+ 406987 [lists@ru y- ] Because the implementation is written in C, not Ruby. Ruby works through
+ 406988 [lists@ru y- ] Not for my work, Just to know how that is possible. Because i haven't
+ 406991 [lists@ru y- ] I understood what you meant.
threads.html
top