[wtr-general] Re: How to use variable in string regular expression

2009-06-21 Thread Wesley Chen
string_a =~ /#{string_b}/ Thanks. Wesley Chen. On Sun, Jun 21, 2009 at 2:36 PM, ryan li sunraise2...@gmail.com wrote: a=how howabc =~ /how/#will return 0 my question is how to make regular expressoin /how/ to a variable, such as howabc =~ /puts a/ thanks in advance

[wtr-general] Re: How to get static text value in a variable

2009-06-16 Thread Wesley Chen
I am sure you can fix the problem by yourself. index =1 means the first element if index =2, means the second element in the HTML Thanks. Wesley Chen. On Tue, Jun 16, 2009 at 3:37 PM, Rahul Ahuja mightyah...@gmail.com wrote: Thanks Wesley, But the solutions shared by you doesn't seems

[wtr-general] Re: How to get static text value in a variable

2009-06-15 Thread Wesley Chen
puts ie.cell(:id,...).text Thanks. Wesley Chen. On Mon, Jun 15, 2009 at 2:48 PM, Rahul Ahuja mightyah...@gmail.com wrote: I want to compare value of textfield appeared on webpage with expected output. for example: One my web application; i have a submit button. Wheneven I click

[wtr-general] Re: How to compare Text in Links

2009-06-15 Thread Wesley Chen
assert $ie.link(:text, ***).value.eql?($ie.link(:text, ***2)) Thanks. Wesley Chen. On Mon, Jun 15, 2009 at 7:27 PM, Vishal bvkon...@gmail.com wrote: Hi, I have to 2 web pages, I need to compare values of Link text between two pages. Please suggest how to do this. Thanks Vishal

[wtr-general] Re: How to compare Text in Links

2009-06-15 Thread Wesley Chen
Sorry, please try: assert $ie.link(:text, ***1).value.eql?($ie.link(:text, ***2).value) Thanks. Wesley Chen. On Mon, Jun 15, 2009 at 9:58 PM, Wesley Chen cjq@gmail.com wrote: assert $ie.link(:text, ***).value.eql?($ie.link(:text, ***2

[wtr-general] Re: How to get static text value in a variable

2009-06-15 Thread Wesley Chen
the :index =2 in the code above. Expect it could help. Thanks. Wesley Chen. On Mon, Jun 15, 2009 at 8:12 PM, Rahul Ahuja mightyah...@gmail.com wrote: Hi, I am facing a similar issue at some other page in the application. Here is the sample HTML code for your ready reference: The text I am

[wtr-general] Re: issue with combobox for watir

2009-06-14 Thread Wesley Chen
MSN: cjq_...@sina.com Thanks. Wesley Chen. On Mon, Jun 15, 2009 at 1:22 PM, jane.liu jane.li...@hotmail.com wrote: it remain prompt me: new_appriasal.rb:27: undefined method `set' for #Watir::SelectList: 0x2e39c14 (NoMethodError

[wtr-general] How can I insert data by FasterCSV?

2009-06-13 Thread Wesley Chen
suggestion would be quite appreciated. Thanks. Wesley Chen. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read

[wtr-general] How to close both the two Excel process in my system?

2009-06-12 Thread Wesley Chen
the Windows Task Manager In my system, wwo new process will be added, then one is closed, another will keep alive But in my other workmate's machine, two process are both closed. So, any suggestion about this kind of problem? Thanks. Wesley Chen. --~--~-~--~~~---~--~~ You

[wtr-general] Re: How to delete a line in a file?

2009-06-12 Thread Wesley Chen
Thank you, guys, I think it is better if I use excel to do that, although it is more complex. Thanks. Wesley Chen. On Fri, Jun 12, 2009 at 8:38 PM, Felipe Knorr Kuhn fkn...@gmail.com wrote: Hello, I use the following in my scripts: require yaml @urls = YAML.load_file(urls.txt) @url

[wtr-general] Re: require function is not working

2009-06-12 Thread Wesley Chen
I think you have to do that: $:.unshift File.join(File.dirname(__FILE__)) require 'test01' In some editor, such as Netbeans, if you require file name directly, it always find in the Lib folder. Thanks. Wesley Chen. On Sat, Jun 13, 2009 at 7:23 AM, Chuck van der Linden sqa...@gmail.comwrote

[wtr-general] How to delete a line in a file?

2009-06-11 Thread Wesley Chen
Hi, Guys, I would like to read from a file, when I read a line, I would like to delete this line in the file, until all the file is read. Any suggestion would be quite appreciated. Thanks. Wesley Chen. --~--~-~--~~~---~--~~ You received this message because you

[wtr-general] Re: How to delete a line in a file?

2009-06-11 Thread Wesley Chen
The file format is txt format. Thanks. Wesley Chen. On Fri, Jun 12, 2009 at 12:12 PM, Wesley Chen cjq@gmail.com wrote: Hi, Guys, I would like to read from a file, when I read a line, I would like to delete this line in the file, until all the file is read. Any suggestion would

[wtr-general] Re: How to delete a line in a file?

2009-06-11 Thread Wesley Chen
again If there are thousands of links in the file, I think it really waste the system's space. Any other better method to do that? Thanks. Wesley Chen. On Fri, Jun 12, 2009 at 12:12 PM, Wesley Chen cjq@gmail.com wrote: The file format is txt format. Thanks. Wesley Chen. On Fri, Jun

[wtr-general] Re: How to get the element attributes in the frame?

2009-06-09 Thread Wesley Chen
Now, I can make it by : ie.frame( ).link( ).document.getAttribute(xxx) Anything goes well. For the link, element_by_xpath is not necessary. ie.link( ).document.getAttribute(***) Anything wrong, please tell me. Thanks. Wesley Chen. On Mon, Jun 8, 2009 at 8:47 PM, jason jason.franklin.sto

[wtr-general] How to get info by Watir script from page source?

2009-06-08 Thread Wesley Chen
the *!-- server01 -- *, how can I make it? how can I get *!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd;?* Any suggestion would be quite appreciated. Thanks. Wesley Chen. --~--~-~--~~~---~--~~ You received

[wtr-general] Re: How to get info by Watir script from page source?

2009-06-08 Thread Wesley Chen
Thank you, Jason, it works. I just think may be a method like * ie.document.body.getHead* or something else. Have you got any other suggestion about another question? :) Thanks. Wesley Chen. 2009/6/8 jason jason.franklin.sto...@gmail.com how about... ie.html.match(/head.+?\/head/)[0

[wtr-general] Re: How to get info by Watir script from page source?

2009-06-08 Thread Wesley Chen
Hi, Jason, Thank you very much, it works. But really complex. Thanks. Wesley Chen. 2009/6/8 Jonny Xu jonn...@hotmail.com Hi Wesley, Hope this is what you want. http://www.rhinocerus.net/forum/lang-ruby/562943-html-method-watir-dont-return-real-html.html Best Regards, Jonny

[wtr-general] Re: How to send the email by Ruby script?

2009-06-08 Thread Wesley Chen
Mailfactory works great, it can send the attachments freely. http://mailfactory.rubyforge.org/ Thanks. Wesley Chen. On Sun, Jun 7, 2009 at 5:56 PM, tknv rreedd...@gmail.com wrote: Hello et.,al. I think this blog is help attach file. Example use Gmail:SMTP. http://gusortiz.wordpress.com

[wtr-general] Re: How to get the element attributes in the frame?

2009-06-08 Thread Wesley Chen
) Thanks. Wesley Chen. On Mon, Jun 8, 2009 at 8:20 PM, jason jason.franklin.sto...@gmail.comwrote: try somthing like ie.frame(:index, 1).form(:name, q).getAttribute(autocomplete) Jason On 8 Jun., 14:07, Wesley Chen cjq@gmail.com wrote: Hi, guys, By the following code, I can get

[wtr-general] How to send the email by Ruby script?

2009-06-05 Thread Wesley Chen
required (Net::SMTPUnknownError)* So, how can make it I can send the email by the ruby code? Any suggestion would be quite appreciated. Thanks. Wesley Chen. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir

[wtr-general] Re: How to send the email by Ruby script?

2009-06-05 Thread Wesley Chen
. Thanks. Wesley Chen. On Sat, Jun 6, 2009 at 12:51 AM, Felipe Knorr Kuhn fkn...@gmail.com wrote: Did you try the following? SMTPhttp://www.ruby-doc.org/stdlib/libdoc/net/smtp/rdoc/classes/Net/SMTP.htmlAuthentication The Net::SMTPhttp://www.ruby-doc.org/stdlib/libdoc/net/smtp/rdoc/classes/Net

[wtr-general] Re: How to send the email by Ruby script?

2009-06-05 Thread Wesley Chen
But do you know how to send an attachment in the email? Thanks. Wesley Chen. On Sat, Jun 6, 2009 at 1:12 AM, Wesley Chen cjq@gmail.com wrote: Hi, Felipe, Thank you very much, it is really helpful, :). There is a great contributor below. http://notepad.onghu.com/2007/3/26/sending-email

[wtr-general] How to get the browser history(url) by Watir?

2009-06-05 Thread Wesley Chen
would be quite appreciated. Thanks. Wesley Chen. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read

[wtr-general] Re: How to execute the single comment?

2009-06-04 Thread Wesley Chen
:), Nice to hear that. People in the group are always warm-hearted, so please keep in grateful in our life. Thanks. Wesley Chen. On Fri, Jun 5, 2009 at 4:35 AM, Santhosh Paul santhoshp...@gmail.comwrote: Hi All I wanted to fetch some ruby scripts like $browser.link(:href,/ submit

[wtr-general] Re: asset_enabled error to click a button

2009-05-30 Thread Wesley Chen
are interested in it. Thanks. Wesley Chen. On Sat, May 30, 2009 at 3:32 PM, Venkat venkateshla...@gmail.com wrote: I wrote a code to click on button ie.button(:id, action_button).click But I am getting following errors: C:\Documents and Settings\\Desktopruby two-minute.rb C:/Ruby/lib/ruby/gems

[wtr-general] Re: How can I open message in gmail inbox.

2009-05-26 Thread Wesley Chen
Please don't try on Gmail. It is too complex and it can't represent the common cases, so it is useless. Thanks. Wesley Chen. On Tue, May 26, 2009 at 1:51 PM, tknv rreedd...@gmail.com wrote: hi et,.al. I'd like to open gmail message for test sending password is collect or not. That's why

[wtr-general] How to execute the single comment?

2009-05-25 Thread Wesley Chen
appreciated. Thanks. Wesley Chen. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines

[wtr-general] Re: How to execute the single comment?

2009-05-25 Thread Wesley Chen
that? Thanks. Wesley Chen. On Mon, May 25, 2009 at 7:00 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Mon, May 25, 2009 at 12:56 PM, Wesley Chen cjq@gmail.com wrote: str1=$ie.goto('www.google.com') exec(str1) Why are you doing that? Why not just this? $ie.goto

[wtr-general] Re: How to execute the single comment?

2009-05-25 Thread Wesley Chen
Hi, Alex, Thank you very much, it works great! Thanks. Wesley Chen. On Mon, May 25, 2009 at 9:40 PM, Alex Collins a.j.collins...@gmail.comwrote: Wesley, Replace exec() with eval() - this will run (evaluate) the Ruby code you provide as an argument to it, in the current context. Best

[wtr-general] Re: how simulate click the calendar day?

2009-05-24 Thread Wesley Chen
It is not enough if you just provide the JS. Generally, if you would like to click the calendar, we have to do: 1. Identity what the calendar is, a frame? or just a table; 2. If it is a frame, you have to: $ie.frame( ).table( )[3][4].click Thanks. Wesley Chen

[wtr-general] Re: Problems dealing with javascript popups

2009-05-12 Thread Wesley Chen
Please don't put your eyes on the rare cases, but on the most important part. When we can do our most automation test in Watir, we think it is perfect. Do you think so? Thanks. Wesley Chen. On Tue, May 12, 2009 at 8:18 PM, SushilKarwa sushil.ka...@gmail.com wrote: Thanks for your help. I

[wtr-general] Re: Loop around table and click on each link

2009-05-11 Thread Wesley Chen
Would you please put your html here? Thanks. Wesley Chen. On Mon, May 11, 2009 at 4:38 PM, Shweta nagman...@gmail.com wrote: Hi I have a scenario where i need to click on every link in table then i need to verify in next page. I was using the below code: myTable=ie.table(:index, 10

[wtr-general] How to merge self.method into another module?

2009-04-28 Thread Wesley Chen
. Thanks. Wesley Chen. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines

[wtr-general] Re: How to use the Watir::SelectList methods?

2009-04-28 Thread Wesley Chen
Thank you, Jarmo, I have the same thought as you. After all, spelling 'options' is much easier than 'getAllContents' For now, I think I have to stil use the old select_list methods, :), Thanks. Wesley Chen. On Tue, Apr 28, 2009 at 6:26 PM, Jarmo Pertman jarm...@gmail.com wrote: For some

[wtr-general] Re: How to use the Watir::SelectList methods?

2009-04-28 Thread Wesley Chen
? Thanks. Wesley Chen. On Tue, Apr 28, 2009 at 5:16 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Tue, Apr 28, 2009 at 07:55, Wesley Chen cjq@gmail.com wrote: How to use the select list methods on page: http://wiki.openqa.org/display/WTR/Selection+Boxes Any limitations

[wtr-general] Re: How to merge self.method into another module?

2009-04-28 Thread Wesley Chen
saying? Thanks. Wesley Chen. On Tue, Apr 28, 2009 at 6:18 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: http://www.ruby-doc.org/core/classes/Module.html Instance methods appear as methods in a class when the module is included, module methods do not. module A def self.m1

[wtr-general] Re: thinking about automation frameworks/harnesses

2009-04-27 Thread Wesley Chen
That maybe a frame, but I think it is not housed well enough. Thanks. Wesley Chen. On Tue, Apr 28, 2009 at 12:33 AM, Chris christopher.mcma...@gmail.comwrote: ate it if you let me know. --~--~-~--~~~---~--~~ You received this message because you

[wtr-general] How to use the Watir::SelectList methods?

2009-04-27 Thread Wesley Chen
Hey, guys, How to use the select list methods on page: http://wtr.rubyforge.org/rdoc/classes/Watir/SelectList.html Any limitations to use the great methods? Thanks. Wesley Chen. --~--~-~--~~~---~--~~ You received this message because you are subscribed

[wtr-general] Re: Watir Vision

2009-04-25 Thread Wesley Chen
said that, Watir maybe a potential tool for performance testing, would you work on it, make Watir fit for performance testing or create another Frame in Ruby for performance testing? Thanks. Wesley Chen. On Sat, Apr 25, 2009 at 1:55 AM, Bret Pettichord b...@pettichord.comwrote: Some notes on my

[wtr-general] Re: What editor should I use for mac?

2009-04-22 Thread Wesley Chen
code 2 in your eclipse ruby project; Add multiple-line comment =begin your code 1 your code 2 =end Sometimes, the mess code turns up. So, I turn to use Netbeans, as long as now, anything looks good. Thanks. Wesley Chen. On Thu, Apr 23, 2009 at 2:18 AM, Lisa Crispin lisa.cris...@gmail.comwrote

[wtr-general] Unexpected error when Run the code in Netbeans.

2009-04-21 Thread Wesley Chen
the file name of thread.rb to other.rb, anything comes back. Really weird. Expect some experts can give me a hand, why it turns up. Thanks. Wesley Chen. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General

[wtr-general] Re: Unexpected error when Run the code in Netbeans.

2009-04-21 Thread Wesley Chen
I have used netbeans for a long time, of course I know the environment deployment of it, :) Thanks. Wesley Chen. On Wed, Apr 22, 2009 at 12:13 AM, Jim Matthews jim_m...@swbell.net wrote: Wesley, Have you set the run environment to use your externally installed Ruby instead of JRuby

[wtr-general] Re: Controlling JavaScript Pop Ups without .click_no_wait

2009-04-20 Thread Wesley Chen
I have met a problem. There is a checkbox, when I click it, it pops up a dialog with OK button on it. How can I click the OK button on it? Is there any set_no_wait method and then click OK? Any suggestion would be quite appreciated. Thanks. Wesley Chen. On Tue, Feb 17, 2009 at 1:51 AM, Bret

[wtr-general] Re: Controlling JavaScript Pop Ups without .click_no_wait

2009-04-20 Thread Wesley Chen
Thanks, I make few changes and get it down. :) Now, we can use click_no_wait, select_no_wait, set_no_wait. module Watir class Element #select_no_wait - selects a drop-down element spawning a new process. #this is needed to close potential pop-ups that select drop-down can

[wtr-general] Re: What gems to do you have installed?

2009-04-11 Thread Wesley Chen
) win32-file-stat (1.3.2) win32-process (0.5.9) win32-sapi (0.1.4) win32-sound (0.4.1) windows-api (0.2.4) windows-pr (0.9.4) wxruby (1.9.9) xml-simple (1.0.11) Thanks. Wesley Chen. On Sat, Apr 11, 2009 at 8:40 AM, George george.sand...@gmail.com wrote: actionmailer (2.3.2) actionpack (2.3.2

[wtr-general] Re: How to calculate time difference?

2009-04-08 Thread Wesley Chen
(12:23:24, 17:23:22) Thanks. Wesley Chen. On Wed, Apr 8, 2009 at 8:19 PM, Prince3105 prince3...@gmail.com wrote: start_time = Time.parse(start_time) end_time = Time.parse(end_time) total_time = end_time - start_time --~--~-~--~~~---~--~~ You

[wtr-general] Re: Can I get the content in the boolean left and right value??

2009-04-08 Thread Wesley Chen
Hi, Chuck, :), to be honest, in my current code, I have the same approach as you have used before. In the approach, I can abandon the verify or assert completely. I think it is not good enough. Maybe I have to spend some time on Watircraft. Maybe I can make my frame easier, :). Thanks. Wesley

[wtr-general] Go on performance test using script.

2009-04-08 Thread Wesley Chen
script? It is said that, python, jython by frame Grinder may be good. Which script would be perfect to choose for the performance test? Can you guys show your opinion and some documents/articles links? Thanks. Wesley Chen. --~--~-~--~~~---~--~~ You received

[wtr-general] Can I get the content in the boolean left and right value??

2009-04-07 Thread Wesley Chen
), arra includes arrb) test(arra.eql?(arrb), arra equals to arrb) When the boolean is not true, I would like to get the info why they don't match/equal/include. Any suggestion would be quite appreciated. Thanks. Wesley Chen. --~--~-~--~~~---~--~~ You received

[wtr-general] How to connect SQL server 2005 in Ruby when the DB name is as 172.11.22.5\thesql?

2009-04-02 Thread Wesley Chen
. Wesley Chen. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http

[wtr-general] Re: How do you find find frames.

2009-04-02 Thread Wesley Chen
You may try: ff.show_frames Thanks. Wesley Chen. On Thu, Apr 2, 2009 at 10:44 PM, jason jason.franklin.sto...@gmail.comwrote: I have looked and looked through the docs and I simply cannot find an answer to this. after calling doc = firefox.goto(some_url) I would like know what frames

[wtr-general] Re: How to know if the checkbox is checked or not?

2009-04-02 Thread Wesley Chen
You may try ie.checkbox( ).isSet? Thanks. Wesley Chen. On Fri, Apr 3, 2009 at 1:03 AM, satish spanchumar...@gmail.com wrote: I have a checkbox, I have to perform check every time whether it is checked or not. Can some one help me with code. Thank you, Satish

[wtr-general] Re: How to change a ruby file into an .exe file

2009-04-01 Thread Wesley Chen
Hi, Jarmo, Thank you very much, it is really useful. Thanks. Wesley Chen. On Wed, Apr 1, 2009 at 3:34 PM, Jarmo Pertman jarm...@gmail.com wrote: require 'rubyscript2exe' require RUBYSCRIPT2EXE.exedir + '/something' --~--~-~--~~~---~--~~ You received

[wtr-general] Re: Git and Github on Mac

2009-03-28 Thread Wesley Chen
Thank you very much, Zeljko. Thanks. Wesley Chen. On Sun, Mar 29, 2009 at 4:40 AM, Charley Baker charley.ba...@gmail.comwrote: I liked it a lot, read it this morning. It's a great intro to how to contribute to Watir or any github project from scratch. :) -c On Sat, Mar 28, 2009 at 2:18

[wtr-general] Re: Synchronization Points

2009-03-24 Thread Wesley Chen
Suppose there are two browsers, one is ie1, another is ie2, the separate browser. You may achieve it by: ie2.do_something ie2.close ie1.refresh ie1.wait ie1.do_something. Thanks. Wesley Chen. 2009/3/24 Darin Duphorn dduph...@redbrickhealth.com Brett, Within this synchronization

[wtr-general] Re: assert and rescue question

2009-03-24 Thread Wesley Chen
begin rescue =e puts e.message puts e.backtrace end Thanks. Wesley Chen. On Wed, Mar 25, 2009 at 4:04 AM, watirRookie ukj...@hotmail.com wrote: hello, I am fairly new to watir and ruby in general. I am trying to automate some web testing that requires to check

[wtr-general] Re: Multiple Attributes for Input Elements

2009-03-23 Thread Wesley Chen
How many text fields are on the www.google.com page? I think :index =2 should be after :name =q Thanks. Wesley Chen. On Mon, Mar 23, 2009 at 1:20 PM, Isabel joybe...@gmail.com wrote: Hi, I tried to use the code below to set a value in the text box of the google search page. require 'watir

[wtr-general] Re: Multiple Attributes and form

2009-03-19 Thread wesley chen
May be It is not a form. Thanks. Wesley Chen. On Thu, Mar 19, 2009 at 2:35 PM, alexey s. radiact...@gmail.com wrote: next code: p ff.form(:id, /delete_access34074/).exist? html = ff.html p html.scan(/id=\delete_access34074\/) And I execute this: $ ruby test.rb false [id

[wtr-general] Re: Multiple Attributes and form

2009-03-19 Thread wesley chen
For this form, where is the name f? And the id delete_access41599 is rand? Thanks. Wesley Chen. 2009/3/19 alexey s. radiact...@gmail.com where is the id delete_access34074? It's other page and form: form action=user.pl method=post id=delete_access41599 input type=submit value=Отвязать

[wtr-general] Re: Need help on this issue

2009-03-19 Thread wesley chen
Sorry, should be clearSelection Thanks. Wesley Chen. On Thu, Mar 19, 2009 at 7:52 PM, nagmani vm nagman...@gmail.com wrote: This code is not working am getting error like this: undefined method `clear' for #Watir::SelectList:0x415b4f0 (NoMethodError) On Thu, Mar 19, 2009 at 5:16 PM

[wtr-general] Re: Need help on this issue

2009-03-19 Thread wesley chen
When you have questions, please ask on the group so that everybody can see it. Few months ago, I am the same kind of new guy as you in Watir, :), but I still have to study a lot. I will try my best to help you. Thanks. Wesley Chen. On Thu, Mar 19, 2009 at 7:59 PM, nagmani vm nagman

[wtr-general] Re: Need help on this issue

2009-03-19 Thread wesley chen
When you would like to ask a question, please search in the group at first. In fact, there are many existing good though in the group about your question. When you compile the script again and again, meet different kind of problems and then solve them, you may study more. Thanks. Wesley Chen

[wtr-general] Re: How to change a ruby file into an .exe file

2009-03-18 Thread wesley chen
Two steps to make the .rb file to .exe file. 1. go to your command line, run gem install rubyscript2exe 2. Go to your main.rb file directory, run rubyscript2exe main.rb It will make the main.rb into main.exe Thanks. Wesley Chen. On Sat, Feb 28, 2009 at 12:50 AM, Jarmo Pertman jarm

[wtr-general] Re: How to change a ruby file into an .exe file

2009-03-18 Thread wesley chen
be executed? Any suggestion would be quite appreciated. Thanks. Wesley Chen. On Wed, Mar 18, 2009 at 8:22 PM, wesley chen cjq@gmail.com wrote: Two steps to make the .rb file to .exe file. 1. go to your command line, run gem install rubyscript2exe 2. Go to your main.rb file directory, run

[wtr-general] Re: Watir users: What is your role at work?

2009-03-16 Thread wesley chen
a long way for me to complete it, but cheer up! Thanks. Wesley Chen. On Mon, Mar 16, 2009 at 5:35 PM, Natasha Ranney itsn...@yahoo.co.uk wrote: Hi All, I have been into testing for about 6 years. My testing experience has mostly been into testing on unix platforms and C-Api testing. My current

[wtr-general] Re: accessing tableCell through XPath

2009-03-16 Thread wesley chen
Try: ie.cell(:xpath, //td[contains(text(), 'Sales')]/).click Thanks. Wesley Chen. On Mon, Mar 16, 2009 at 8:56 PM, Shylaja shylaja.ra...@gmail.com wrote: ie.cell(:xpath, //td[contains(., 'Sales')]/).click() --~--~-~--~~~---~--~~ You received this message

[wtr-general] Re: Watir problem with IE

2009-03-16 Thread wesley chen
You may know all the ie windows attributes by: Watir::IE.each { |ie| puts ie.title puts ie.url } You can locate the special ie window by: ie=Watir::IE.find(:title,/ie_title_name/) # ie=Watir::IE.find(:url, /ie_url/) ie.goto(...) Thanks. Wesley Chen. On Mon, Mar 16, 2009 at 9:54 PM, Al Snow

[wtr-general] Re: How to print all the methods in the Class or Module out?

2009-03-12 Thread wesley chen
Thanks. class.instance_methods module.instance_methods make it. Thanks. Wesley Chen. On Thu, Mar 12, 2009 at 5:32 PM, wesley chen cjq@gmail.com wrote: Hi, Zeljko, Sorry, I have not demonstrated clearly enough. Suppose I have written a module or a class, in the module or class, I have

[wtr-general] Re: How to print all the methods in the Class or Module out?

2009-03-12 Thread wesley chen
Hi, Zeljko, Sorry, I have not demonstrated clearly enough. Suppose I have written a module or a class, in the module or class, I have written many methods. I would like to print all my methods out. How can I make it? Any suggestion would be appreciated. Thanks. Wesley Chen. On Thu, Mar 12

[wtr-general] Re: Sleep function

2009-03-12 Thread wesley chen
:), you're right. Thanks. Wesley Chen. On Thu, Mar 12, 2009 at 4:49 PM, Jarmo Pertman jarm...@gmail.com wrote: Why did you use all of this while loop and Time.now and stuff, when sleep 5*60 was the only line needed to sleep for 5 minutes? Jarmo On Mar 5, 3:15 am, wesley chen cjq

[wtr-general] How to print all the methods in the Class or Module out?

2009-03-12 Thread wesley chen
Hi, Guys, How to print the methods in the class or module out? Any suggestion would be appreciated. Thanks. Wesley Chen. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group

[wtr-general] Re: How to add any data into the EXCEL sheet using Excel interface class

2009-03-11 Thread wesley chen
Why don't you search in the group? There are hundreds of articles and answers in the group. I am sure you can find what you want in it. Thanks. Wesley Chen. On Wed, Mar 11, 2009 at 5:17 PM, nagmani vm nagman...@gmail.com wrote: Hi Can you pls let me know how to upload a file in RUby watir

[wtr-general] How to change the array to a string?

2009-03-10 Thread wesley chen
Suppose I have an array arr1 like: [2, 3, [2, 3, 2]] When I use: p arr1, I will get: [2, 3, [2, 3, 2]] I would like to save the [2, 3, [2, 3, 2]] as a string [2, 3, [2, 3, 2]], how to make it? Appreciated to any suggestion. Thanks. Wesley Chen

[wtr-general] How to shrink to fit in Excel?

2009-03-10 Thread wesley chen
When I practice on excel methods, I can make the columns a:d to autoFit by: @@worksheet.columns(a:d).AutoFit Is there any method shrink to fit? Can anybody provide the documents or url talking about MS excel methods? Appreciate to any suggestion. Thanks. Wesley Chen

[wtr-general] Re: How to shrink to fit in Excel?

2009-03-10 Thread wesley chen
Hi, Tiffany, Thank you very much. Thanks. Wesley Chen. On Wed, Mar 11, 2009 at 3:14 AM, George george.sand...@gmail.com wrote: Thanks for the link, Tiffany! A lot of good stuff here. On Mar 10, 9:01 am, Tiffany Fodor tcfo...@comcast.net wrote: Hey Wesley! I've never seen anything

[wtr-general] Re: script for div class using ruby watir

2009-03-06 Thread wesley chen
I tried you methods, they are all OK. Thanks. Wesley Chen. On Fri, Mar 6, 2009 at 10:05 PM, suresh babu ksb25...@gmail.com wrote: div class=clear/div div class=buttonholder div class=btnleft/div input name=addbutton value=Add onclick=AddButton

[wtr-general] Re: $ie.maximize

2009-03-03 Thread wesley chen
If you install Ruby in your c:\, please run command: regsvr32 C:\ruby\lib\ruby\gems\1.8\gems\watir-1.6.2\lib\watir\AutoItX3.dll Thanks. Wesley Chen. On Tue, Mar 3, 2009 at 5:23 PM, Vikas Tulashyam vtulash...@gmail.comwrote: Hi Friends, I am not able to use the maximize method of IE class

[wtr-general] Re: Add date

2009-03-03 Thread Wesley Chen
Hi, Prince, please try the code below: require 'watir' def date_validation( source, count, operation) start_date = source date = Date.strptime(start_date, '%d-%b-%Y') if operation == a or operation==A date += count elsif operation == d or operation==D date-= count

[wtr-general] Re: Unable to open IE window

2009-02-24 Thread wesley chen
, 2.1.1) activesupport (2.2.2, 2.1.1) with dependent attributes then select the old version After that, I won't need restart my system and uninstall ruby, I find: require 'watir' $ie=Watir::IE.new can work. You may have a try. If you failed, you can do as the previous letter. Thanks. Wesley Chen

[wtr-general] Re: Unable to open IE window

2009-02-24 Thread wesley chen
Sorry, we can also remove the old version of actionmailer (2.2.2, 2.1.1) actionpack (2.2.2, 2.1.1) activerecord (2.2.2, 2.1.1) activeresource (2.2.2, 2.1.1) activesupport (2.2.2, 2.1.1) We can remove all the 2.1.1 version because the 2.2.2 dependent with each other with 2.2.2 Thanks. Wesley Chen

[wtr-general] Re: Unable to open IE window

2009-02-23 Thread wesley chen
well. Thanks. Wesley Chen. On Tue, Feb 17, 2009 at 4:32 AM, Ben benoit.lem...@gmail.com wrote: Hi Jaz, No... I didn't contact Daniel Berger yet because I wanted to do some more tests. I added more debug info to the involved gems and I found that the problem occurs at line 35 of windows

[wtr-general] Re: Hiding the browser

2009-02-23 Thread wesley chen
There are many kinds of pop up window. Which kind would you like to forbid? You can search on the net about how to avoid the pop up by setting in Internet - Option. You many make a summary about it. That would be helpful to all of us. Thanks. Wesley Chen. On Mon, Feb 23, 2009 at 10:27 PM

[wtr-general] Re: Hiding the browser

2009-02-20 Thread wesley chen
Add $HIDE_IE=true before your IE process has been created. Thanks. Wesley Chen. On Sat, Feb 21, 2009 at 1:59 AM, Jason Shelton jas.shel...@hotmail.comwrote: All, Is there a new way of hiding the browser with Watir? It seems that ie.visible = false no longer works. Thanks alot

[wtr-general] Re: Want to deactivate the option of receiving mails from watir group

2009-02-19 Thread wesley chen
I will unsubscribe you right now. Thanks. Wesley Chen. On Fri, Feb 20, 2009 at 1:31 PM, Parul Upadhyay parul.upadh...@infogain.com wrote: Hi friends, I need ur help regarding my account with watir. I want to unsubscribe my mail Id as I get around 50-60 mails per day and even more than

[wtr-general] Re: How to check whether table cell is enabled or not?

2009-02-17 Thread wesley chen
Is it OK object.disabled? Thanks. Wesley Chen. On Wed, Feb 18, 2009 at 2:22 PM, Prince3105 prince3...@gmail.com wrote: Hi Experts, I am a newbie to watir, in my application i have a scenario to check whether the table cells are enabled or not, after committing. I used obj.enabled

[wtr-general] Re: Radio button

2009-02-16 Thread wesley chen
Why don't you try $ie.radio(...).checked? Thanks. Wesley Chen. On Tue, Feb 17, 2009 at 2:44 PM, jam ruby.wa...@gmail.com wrote: Hi, how to check whether radio button is set or not. I tried with set?. does't work. How to do this? Thanks, Jam

[wtr-general] Re: problem in clicking span

2009-02-13 Thread wesley chen
Would you please provide more detail html information? Thanks. Wesley Chen. On Fri, Feb 13, 2009 at 7:32 PM, jam ruby.wa...@gmail.com wrote: Hi, Iam having a menu which is getting identified as a link. when I click it iam getting a sub menu. where the submenu items are getting identified

[wtr-general] Re: How to Include a ruby Program inside another Ruby Program

2009-02-12 Thread wesley chen
Try require File.dirname(__FILE__)+'/../***.rb Thanks. Wesley Chen. On Fri, Feb 13, 2009 at 12:46 PM, malar malar.je...@gmail.com wrote: Hi, I have to include a ruby program inside another ruby program. i used the following command, require ' logintest.rb' But i am getting

[wtr-general] How to get the data in a SQL 2005 database table with ruby?

2009-02-10 Thread wesley chen
with the functions? Really appreciate to your help. Thanks. Wesley Chen. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please

[wtr-general] Re: How to get the data in a SQL 2005 database table with ruby?

2009-02-10 Thread wesley chen
('localhost', 'user_id', 'user_password') db.open('DB_name') db.query(SELECT * from table_name;) p db.data =begin puts field_names = db.fields cust = db.data puts cust.size puts cust[0].inspect =end db.close Thanks. Wesley Chen. --~--~-~--~~~---~--~~ You received

[wtr-general] Re: Handle 2 text boxes with same name

2009-02-09 Thread wesley chen
try: @ie.text_field(:name = 'ngids', :index= 2).set('ATP00594978') Thanks. Wesley Chen. On Mon, Feb 9, 2009 at 2:04 PM, Venugopal Devarakonda venugopal.devarako...@gmail.com wrote: Hi: The attached the snap shot of my webpage which has 2 blocks both identical in terms of class names

[wtr-general] Re: Recognizing the Search Text Box

2009-01-21 Thread wesley chen
Try code below: require 'watir' $ie=Watir::IE.start(http://www.lijit.com/users/seatanaka;) $ie.form(:id,/pvssearchbox_form/).text_field(:name,'q').set(wahine) $ie.button(:value,/Search/).click Thanks. Wesley Chen. On Thu, Jan 22, 2009 at 5:20 AM, ST stan...@lijit.com wrote: http

[wtr-general] Re: Issue with using arguments within Open Office (column, row) code

2009-01-21 Thread wesley chen
Thanks, when we put our opinion here, we may study more from others suggestion. Thanks. Wesley Chen. On Thu, Jan 22, 2009 at 12:46 AM, dmitry...@gmail.com dmitry...@gmail.comwrote: Hey Wesley, Sure thing. Will put up the solution here tonight. :) Just wanted to make sure I explain it clear

[wtr-general] Re: Recognizing the Search Text Box

2009-01-21 Thread wesley chen
You're welcome. Thanks. Wesley Chen. On Thu, Jan 22, 2009 at 3:34 PM, ST tanaka.sh...@gmail.com wrote: This code worked! Thanks so much for your help and quick replies, Wesley! On Jan 21, 6:30 pm, wesley chen cjq@gmail.com wrote: Try code below: require 'watir' $ie=Watir

[wtr-general] Re: Recognizing the Search Text Box

2009-01-20 Thread wesley chen
Please try the code below. require 'watir' $ie=Watir::IE.attach(:title,//) $ie.text_field(:name,'q').flash $ie.text_field(:name,'q').set(Google search) $ie.button(:value,/Search/).click Thanks. Wesley Chen. On Wed, Jan 21, 2009 at 7:47 AM, ST stan...@lijit.com wrote: div id=pvssearchbox

[wtr-general] Re: Issue with using arguments within Open Office (column, row) code

2009-01-19 Thread wesley chen
Why don't you put your solution here and let more people learn from you? Why do you let others consult to you privately? Thanks. Wesley Chen. On Tue, Jan 20, 2009 at 2:26 AM, dmitry...@gmail.com dmitry...@gmail.comwrote: Thanks guys for the comments guys, I already got it to work. Turned

[wtr-general] Re: clicking on link with with raquo

2009-01-16 Thread wesley chen
(:text, Skip for now ).click which did not work. I believe the character is actually raquo. Solutions? Thanks, Jeremy -- Thanks. Wesley Chen. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General

[wtr-general] Re: using a table cell variable

2009-01-16 Thread wesley chen
/table.rb:99:in `[]' This will work the though browser.table(:id, /Search_ItemDetail_SpoolGrid/)[15][3].text Aidy -- Thanks. Wesley Chen. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General

[wtr-general] Re: Code hangs after a div click

2009-01-15 Thread wesley chen
What's the detail information about your div? When the div is clicked, what will happen? Thanks. Wesley Chen. On Fri, Jan 16, 2009 at 9:14 AM, Michael Hwee michael_h...@yahoo.comwrote: Try click_no_wait() - Original Message From: zeng0...@gmail.com zeng0...@gmail.com

<    1   2   3   >