[wtr-general] Re: How to locate the element with node(child node, father node) or directory attributes?

2008-10-07 Thread wesley chen
Thanks Bret, your comment works. I mistake the parent as parentNode, so I always failed. Hi, Aidy, Would you please show your idea more detailed? I think your idea may be useful sometimes. Thanks all you guys. Wesley. --:) Man should be hard to himself, but tolerant to others.

[wtr-general] Re: background testing

2008-10-14 Thread wesley chen
$HIDE_IE=true --:) Man should be hard to himself, but tolerant to others. --~--~-~--~~~---~--~~ 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

[wtr-general] Re: How to capture data from a web page in Watir?

2008-10-15 Thread wesley chen
I think the html code you provided is too little and not reasonable. If you want to capture so little data on this page, you can use regular expression. Wesley Man should be hard to himself, but tolerant to others. --~--~-~--~~~---~--~~ You received this message

[wtr-general] Re: How to call ruby script from another ruby script

2008-10-15 Thread wesley chen
1. Create rb file 1: test1.rb class Test1 def get_s(str) puts str end end test1=Test1.new test1.get_s(test1 rb) 2. Create rb file 2: test2.rb require 'watir' class Test2 def test2(str) puts str end end test2=Test2.new test2.test2(In test2) 3. Create rb file 3:

[wtr-general] Re: background testing

2008-10-15 Thread wesley chen
Sound great, I will have a try of virtualbox. Hi, Paul, which VM is the best in your opinion? Thanks. Wesley Man should be hard to himself, but tolerant to others. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[wtr-general] Re: How to locate the element with node(child node, father node) or directory attributes?

2008-10-17 Thread wesley chen
Hi, Bret, When we use parent, we can go to one level parent node, but if I would like to go to the root node directly, how to make it? Thanks. Wesley Man should be hard to himself, but tolerant to others. --~--~-~--~~~---~--~~ You received this message because

[wtr-general] Re: How to upload a file in Chinese operation system?

2008-10-27 Thread wesley chen
Hi, Apple, Thanks very much, I will try your comment later in my machine. In Chinese operation system, we can only upload the attachment by the method of autoit? Thanks. Wesley Man should be hard to himself, but tolerant to others. --~--~-~--~~~---~--~~ You

[wtr-general] Re: How to upload a file in Chinese operation system?

2008-10-28 Thread wesley chen
Hi, Wiston, Your script won't work, it just open the choose file dialog and then hang. Would you please retest the script again? Thanks. Wesley Man should be hard to himself, but tolerant to others. --~--~-~--~~~---~--~~ You received this message because you are

[wtr-general] Re: Watir does not work with Orkut JS hacks

2008-10-29 Thread wesley chen
You just need use focus, such as: ie.frame(:id, //).document.body.focus ie.send_keys(...) Wesley Man should be hard to himself, but tolerant to others. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General

[wtr-general] Re: How can I get the text in the frame text field?

2008-11-02 Thread wesley chen
Hi, Tony, I get the checkbox unchecked in Tool | Internet options, and I turn to my site, it works. 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] wait_until doesn't work.

2008-11-10 Thread wesley chen
require 'watir' and include Watir, use watir_until, it said that, no such file to load: safariwatir What's the problem? Do I have to uninstall the watir and rubygem and then install again? Thanks. Wesley Chen. --~--~-~--~~~---~--~~ You received this message because

[wtr-general] Re: Microsoft Sharepoint Watir

2008-11-10 Thread wesley chen
Hi, Keith, In fact, somebody has met the problem as you referred, please go to http://groups.google.com/group/watir-general/browse_thread/thread/59fac3f95c6bb799/ec4b133621759c8c?lnk=gstq=fire_event#ec4b133621759c8c Thanks. Wesley Chen. --~--~-~--~~~---~--~~ You

[wtr-general] Re: How to get the system date to my text field.

2008-11-11 Thread wesley chen
Yes, require 'time' is not required in Watir. 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

[wtr-general] Re: Locating elements in a lightViewIFrame class?

2008-11-13 Thread wesley chen
It works for click the close div in the Pop up dialog, I think you can also click something other elements if you rewrite the Li method. ie.image(:src,/yellow_thumb/).click ie.div(:class, lv_Button lv_Close).click Thanks. Wesley Chen. --~--~-~--~~~---~--~~ You

[wtr-general] It displays error message when I use method bring_to_front.

2008-11-13 Thread wesley chen
`AutoItX3.Control' (WIN32OLERuntimeError) HRESULT error code:0x8007007e I am sure the code can work in few days ago, Have I made something wrong? I just uninstall watir 1.5, watir 1.6.1 and keep watir 1.6.2 in my system. Thanks. Wesley Chen. --~--~-~--~~~---~--~~ You

[wtr-general] Re: Text field Numeric Issue

2008-11-18 Thread wesley chen
Sorry, I have made a mistake, ignore what I said. 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

[wtr-general] Re: following object is not identified in watir

2008-11-19 Thread wesley chen
.txt) 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: Unable to enter message in Hotmail!

2008-11-20 Thread wesley chen
Hi, Margam, Please try code below: ie.div(:id, RichTextEditor_surface).focus ie.send_keys(hello) Thanks. Wesley Chen. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send

[wtr-general] Re: Frame access

2008-11-30 Thread wesley chen
Try ie.frame(:id,...).frame(:id, ...).table(:index,...).click 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

[wtr-general] Re: Security Information pop-up turns up two times, how to deal with the input between the two pop-up turning up?

2008-12-02 Thread wesley chen
I tried both your suggestion, but it doesn't work. 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

[wtr-general] Re: How to click the ► on the page?

2008-12-02 Thread wesley chen
ie.element_by_xpath(//td[contains(@onclick,'workoutNum')]/).click 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

[wtr-general] Re: Dealing with Java script pop up -- Please help

2008-12-04 Thread wesley chen
,/click/i).click_no_wait popup_clicker(ie,OK) 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

[wtr-general] Re: Methods

2008-12-04 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: do not know how to give input to a text box, which does not have a standard class or property in its HTML

2008-12-11 Thread wesley chen
:), Welcome. Thanks. Wesley Chen. On Thu, Dec 11, 2008 at 5:04 PM, Vijay [EMAIL PROTECTED] wrote: Wesley, Thank you so much for your reply. Your code worked like a gem and solved the problem. Thanks, Vijay. On Dec 11, 11:50 am, wesley chen [EMAIL PROTECTED] wrote: Try the comment

[wtr-general] Re: persistant 'about:blank' window on Vista.

2008-12-28 Thread wesley chen
Thanks. Wesley Chen. On Sat, Dec 27, 2008 at 10:40 PM, aidy lewis aidy.le...@googlemail.comwrote: Hi, I am not currently at home, so I am on a Vista machine. Has anyone seen a persistant 'about:blank' ie window on Vista? require 'watir' Watir::Browser.default = ie browser = Watir

[wtr-general] Re: persistant 'about:blank' window on Vista.

2008-12-28 Thread wesley chen
ie=Watir::IE.attach(:title,//) ie.goto(www.gmail.com) Thanks. Wesley Chen. On Mon, Dec 29, 2008 at 9:52 AM, wesley chen cjq@gmail.com wrote: Thanks. Wesley Chen. On Sat, Dec 27, 2008 at 10:40 PM, aidy lewis aidy.le...@googlemail.comwrote: Hi, I am not currently at home, so I am

[wtr-general] Re: row_count incorrect value returned

2009-01-06 Thread wesley chen
Would you please provide us with the source code? Thanks. Wesley Chen. On Sat, Jan 3, 2009 at 7:32 AM, dmitry...@gmail.com dmitry...@gmail.comwrote: Also I should mention that this table is dynamic, so a user can upload and delete images etc. from it on the front end. On Jan 2, 5:44 pm

[wtr-general] Re: Multiple Attributes Issue

2009-01-08 Thread wesley chen
I think text_field doesn't support multiple attributes in this release. Thanks. Wesley Chen. On Fri, Jan 9, 2009 at 3:32 AM, Moochie dduph...@redbrickhealth.com wrote: $ie.text_field(:id='diagnosis_date',:index=index) Creates a error send:{index=2, :id+diagnosis_date} is not a symbol

[wtr-general] Re: Cannot access New Browser window generated through Javascript code executed on Click of a Button.

2009-01-09 Thread wesley chen
return nil end end if (ie2=new_window) ie2.button( ).click end Thanks. Wesley Chen. On Fri, Jan 9, 2009 at 2:42 PM, asheesh misra asheeshmisr...@gmail.comwrote: ipt code opens a new browser window (withou --~--~-~--~~~---~--~~ You

[wtr-general] Re: About Javascript Popups/Dialogue Box

2009-01-09 Thread wesley chen
Expect the code above can help some of you guys. Thanks. Wesley Chen. On Fri, Jan 9, 2009 at 2:44 PM, Wilson Xu xu.xiaodong.wil...@gmail.comwrote: Hi guy,whether it can work or not? On Fri, Jan 9, 2009 at 2:36 PM, aami...@gmail.com wrote: Hi Wilson, I am using latest Ruby 1.8.6-27

[wtr-general] Re: Cannot access New Browser window generated through Javascript code executed on Click of a Button.

2009-01-09 Thread wesley chen
in the ie2 Thanks. Wesley Chen. On Fri, Jan 9, 2009 at 10:15 PM, wesley chen cjq@gmail.com wrote: Would you please provide all your code? I think your code is not good enough. And I don't know what you ask me in this issue. Expect I can help you. end Thanks. Wesley Chen. On Fri, Jan

[wtr-general] Re: Full Screen [F11] FireFox

2009-01-11 Thread wesley chen
$ie.maximizeor $firefox.maximize Thanks. Wesley Chen. On Mon, Jan 12, 2009 at 12:22 AM, Dhanalaxmi dhanalax...@gmail.com wrote: Hi All Using following ie.getIE.parent.FullScreen = true internet explorer window can be made full screen. How should i achieve the same for firefox

[wtr-general] Re: How to deal with two security information pop-up with Watir script?

2009-01-12 Thread wesley chen
Excellent! When I follow your advise and change the setting, both the two security pop ups are avoided, :), Really appreciate to you. Thanks. Wesley Chen. On Tue, Jan 13, 2009 at 1:52 AM, Michael Hwee michael_h...@yahoo.comwrote: Wesley, Just set the configuration to get rid of it. Goto

[wtr-general] Re: Access an object

2009-01-13 Thread wesley chen
We can't use set, exists? and many other methods after comment :element_by_xpath Thanks. Wesley Chen. On Wed, Jan 14, 2009 at 12:46 AM, TCBlues tcbl...@gmail.com wrote: Thanks for your answer. In the case the object is a textField or a listField I'm trying to set the control

[wtr-general] Re: Access an object

2009-01-14 Thread wesley chen
Thanks very much. I study from you again, :) Thanks. Wesley Chen. On Wed, Jan 14, 2009 at 11:59 AM, Richard Lawrence rslawre...@gmail.comwrote: You don't get back the specific object type from element_by_xpath, so some methods don't work. But this works: b = Watir::IE.new b.goto 'http

[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

[wtr-general] Re: Clicking a JavaScript image button

2009-01-15 Thread wesley chen
,/btnLogin_imgButton/).click Thanks. Wesley Chen. On Fri, Jan 16, 2009 at 3:29 AM, Oded adlersb...@gmail.com wrote: I've tried this previously to posting the thread, this gives the same result as the thing I posted, resulting in no error nor action. On Jan 15, 5:00 pm, wesley chen cjq@gmail.com wrote

[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: 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: 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: 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: 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] 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: 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] 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: 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: 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: 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: 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: 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: 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: $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: 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] 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: 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] 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: 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 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: 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: 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: 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: 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: 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] 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] 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] 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] 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: 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] 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: 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] 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: 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] 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

  1   2   3   >