Re: [wtr-general] Contains Text

2011-03-06 Thread Wesley Chen
You may try: ie.text.include?(***) Wesley. For life, the easier, the better. On Mon, Mar 7, 2011 at 1:18 PM, Soori sure...@gmail.com wrote: All, I would like to search for a text My Engineering Services on a webpage. This can be a link too. Should I use contains_text method or

Re: [wtr-general] Question on Sendkeys XPATH

2010-10-05 Thread Wesley Chen
I think your html code is not enough for others to understand. Wesley. For life, the easier, the better. On Tue, Oct 5, 2010 at 7:10 PM, Taki Sama timothy...@gmail.com wrote: Hi All, Im new to Watir, coming from a QTP background. I'm using the following Ruby 1.8.7, Rubygems 1.3.6, Watir

Re: [wtr-general] Welcome Jarmo Pertman to the core Watir team

2010-10-05 Thread Wesley Chen
Welcome Pertman, another great guy! I think Watir will be more powerful and attractive! Wesley. For life, the easier, the better. On Mon, Sep 27, 2010 at 4:56 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: Jarmo, welcome to the team! :) One comment inline. On Fri, Sep 24,

[wtr-general] Use ruby script to get logs from linux server.

2010-09-29 Thread Wesley Chen
Hi, Guys, Currently, I use a tool in windows, named WinSCP, I login by username password, then I turn to a path /usr/lib/system.log, I will capture the unexpected content in the log. Now, I want to write a ruby code in windows to do the job, capture the log out directly. It will be the best if my

Re: [wtr-general] Use ruby script to get logs from linux server.

2010-09-29 Thread Wesley Chen
zeljko.fili...@wa-research.ch wrote: On Wed, Sep 29, 2010 at 3:10 PM, Wesley Chen cjq@gmail.com wrote: It will be the best if my script can capture only the latest error interface errors. If I understood you, you want to parse a log file and create a report? If that is correct, I have a script

Re: [wtr-general] Use ruby script to get logs from linux server.

2010-09-29 Thread Wesley Chen
zeljko.fili...@wa-research.ch wrote: On Wed, Sep 29, 2010 at 3:17 PM, Wesley Chen cjq@gmail.com wrote: I have to capture the log from the remote server with username/password. I will access it in my machine. The problem is opening a remote file? Or something else? What have you tried so

Re: [wtr-general] Use ruby script to get logs from linux server.

2010-09-29 Thread Wesley Chen
Hi, Zeljko, Thank you for your help, I tried your suggestion, but I didn't find the solution. Wesley. For life, the easier, the better. On Wed, Sep 29, 2010 at 9:27 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Wed, Sep 29, 2010 at 3:24 PM, Wesley Chen cjq@gmail.com wrote

Re: [wtr-general] Re: Rich calender how to get value

2010-06-30 Thread Wesley Chen
If you are not sure what you want to do, please try the cases you have. Wesley. For life, the easier, the better. On Wed, Jun 30, 2010 at 1:38 PM, naresh nareshvatsa...@gmail.com wrote: Hi, I am confused in rich calender, i need to click image and then get elements or do like following

Re: [wtr-general] Re: Watir ads at stackoverflow.com

2010-06-27 Thread Wesley Chen
Nice to hear that. :) Wesley. For life, the easier, the better. On Thu, Jun 24, 2010 at 7:03 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: A big thank you to everybody that voted for Watir ad at Stack Overflow. We have 7 votes at the moment, 6 are needed before the ad is

Re: [wtr-general] Regarding Script

2010-06-22 Thread Wesley Chen
Your script runs well on other system, so it is not script problem; Would you try clear your browser session and cookies and try again? What's error message when you run the script? Wesley. For life, the easier, the better. On Mon, Jun 21, 2010 at 7:52 PM, Zubair zubair.rk...@gmail.com wrote:

Re: [wtr-general] How to read a google doc or send a google mail?

2010-06-16 Thread Wesley Chen
at 4:27 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Sat, Jun 12, 2010 at 7:42 AM, Wesley Chen cjq@gmail.com wrote: Problem 1: Send an gmail(Click Compose Mail link, input Email to, Subject, Email content, click Send button); Problem 2: Go to Google Documents page, open

Re: [wtr-general] Re: Automating omniture tags

2010-06-11 Thread Wesley Chen
First, you have to prepare a xls file, in the file, in the file, the data is your expected data, the format is as below: s.pageNameHome Page s.channel s.prop3x Please write a method, get all the data from xls out into an array/hash A; Second, you have to capture

[wtr-general] How to read a google doc or send a google mail?

2010-06-11 Thread Wesley Chen
Hi, Guys, I have used Watir for a long time, now, two difficult problems are still challenges to me. Problem 1: Send an gmail(Click Compose Mail link, input Email to, Subject, Email content, click Send button); Problem 2: Go to Google Documents page, open an existing DOC/PPT/excel, read the data

Re: [wtr-general] Re: How to create a file and save it.

2010-06-03 Thread Wesley Chen
When you have installed Ruby, there is a man doc, I think for the newbie, you can study a lot from it, and it is really basic but important. Wesley. For life, the easier, the better. On Fri, Jun 4, 2010 at 2:01 AM, orde ohil...@gmail.com wrote: The Ruby IO and File classes contain untold

Re: [wtr-general] How to handle a pop up having drop down under itself

2010-05-31 Thread Wesley Chen
Maybe the pop up is a div or a iframe. Wesley. For life, the easier, the better. On Tue, Jun 1, 2010 at 1:19 AM, windy lyfi2...@sina.com wrote: do you mean that popup is a modal dialog ? please try this : ie.modal_dialog() to attach this popup. see more :

Re: [wtr-general] [ANN] Win32::Screenshot 0.0.4

2010-05-28 Thread Wesley Chen
Hi, Zeljko, Have you got the inner code for *snapit.exe*? Wesley. For life, the easier, the better. 2010/5/28 Željko Filipin zeljko.fili...@wa-research.ch On Thu, May 27, 2010 at 10:23 PM, Jarmo Pertman jarm...@gmail.com wrote: I'm thinking that here are probably some people who would

Re: [wtr-general] Re: text_filed validation - onchange alert window

2010-05-27 Thread Wesley Chen
I think you can search the method as set_no_wait in Watir general group. Then you may have a try on it. Wesley. For life, the easier, the better. On Fri, May 28, 2010 at 7:54 AM, kashyap kashyap...@gmail.com wrote: Thank you for posting in the link.I checked it before and I tried one of the

Re: [wtr-general] Re: Parse IFrame with Nokogiri and Watir

2010-05-20 Thread Wesley Chen
When I google Nokogiri, not much info, any great amazing place for Nokogiri? Wesley. For life, the easier, the better. On Thu, May 20, 2010 at 10:32 PM, Berto m...@clutchwave.com wrote: Nokogiri -- Before posting, please read http://watir.com/support. In short: search before you ask, be

Re: [wtr-general] Issue with accessing an Object in FireWatir

2010-05-17 Thread Wesley Chen
You have so much page source code. Is it better for other people to read your emails if you attach an attachment? Wesley. For life, the easier, the better. On Mon, May 17, 2010 at 8:55 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Monday, May 17, 2010, Betsy joybe...@gmail.com

Re: [wtr-general] Tabs

2010-05-12 Thread Wesley Chen
ie = Watir::IE.attach(:title, xxx) can locate an existing IE window. ie.close can close the ie window Wesley. For life, the easier, the better. On Thu, May 13, 2010 at 4:26 AM, Brad bradask...@gmail.com wrote: Hello, I want to click on all the links on a page, got it, I have this working

Re: [wtr-general] No method works for Frame

2010-04-16 Thread Wesley Chen
I think you don't know how to use iframe. It should be ie.frame(:name, xxx).image(:src, ).click Wesley. For life, the easier, the better. On Fri, Apr 16, 2010 at 1:06 PM, Kinnu kiranyajaman...@gmail.com wrote: Hi Friends, I am unable to identify elements inside a frame and no method of

Re: [wtr-general] Simple Ruby script not working on Windows Vista IE8 configuration

2010-04-12 Thread Wesley Chen
Please try to remove require 'rubygems' from your script and then run it. Wesley. For life, the easier, the better. On Mon, Apr 12, 2010 at 1:47 PM, Vijay Shinde shindevija...@gmail.comwrote: ode:0x800706b5 -- Before posting, please read http://watir.com/support. In short: search before

Re: [wtr-general] Re: ajax and unable to locate element

2010-04-08 Thread Wesley Chen
Please don't use the method: try again The method below is really helpful. Watir::Waiter.wait_until{$ff.div(:id, addAlbumLink).exists?} Wesley. For life, the easier, the better. On Fri, Apr 9, 2010 at 2:00 AM, Sal Jamil salem.m.ja...@gmail.com wrote: mber of tries and wait between tries --

Re: [wtr-general] Re: FireWatir doesn't wait for the page to load after clicking a button

2010-04-07 Thread Wesley Chen
Watir::Waiter.wait_until{$ff.div(:text, /Done/).exists?} can also work for Firefox Wesley. For life, the easier, the better. On Thu, Feb 11, 2010 at 12:04 PM, Ramapulla Reddy ramapullare...@gmail.comwrote: I have faced same problem and firewatir allows multiple attributes to use. Try

Re: [wtr-general] Checking for contents of a text field

2010-04-07 Thread Wesley Chen
ie.text_field(:id,mytextfield).value will get the value in the text field. You can't get the text_field attribute value by it. Wesley. For life, the easier, the better. On Thu, Apr 8, 2010 at 9:27 AM, Rats crapats...@yahoo.com.au wrote: I'm trying to check if a field is populated on a page.

Re: [wtr-general] Checking for contents of a text field

2010-04-07 Thread Wesley Chen
You'd better not use :value to locate on text field. Because the value in text field can change manual. Wesley. For life, the easier, the better. On Thu, Apr 8, 2010 at 9:47 AM, Wesley Chen cjq@gmail.com wrote: ie.text_field(:id,mytextfield).value will get the value in the text field

Re: [wtr-general] Re: ajax and unable to locate element

2010-04-07 Thread Wesley Chen
If there is ajax, please use *fire_event* before you *set* Wesley. For life, the easier, the better. On Thu, Apr 8, 2010 at 11:09 AM, Rats crapats...@yahoo.com.au wrote: On Apr 8, 2:59 pm, Sal Jamil salem.m.ja...@gmail.com wrote: I just tried that and I am getting the same error. Is this

Re: [wtr-general] Re: ajax and unable to locate element

2010-04-07 Thread Wesley Chen
from the server. Do I need to also do a fire_event? Isn't that duplicating the button set event? On Wed, Apr 7, 2010 at 11:12 PM, Wesley Chen cjq@gmail.com wrote: If there is ajax, please use *fire_event* before you *set* Wesley. For life, the easier, the better. On Thu, Apr 8, 2010

Re: [wtr-general] Handling a windows file upload dialog box

2010-04-06 Thread Wesley Chen
For file upload button, there is a ready method, named: $ie.file_field(:name, ).set(your file.txt) Wesley. For life, the easier, the better. On Tue, Apr 6, 2010 at 12:07 PM, Rats crapats...@yahoo.com.au wrote: Firstly, I should have probably mentioned in my previous posts I am a Watir

Re: [wtr-general] Created a gem 'watir_helper' for making Automation Testing Simpler and Easier

2010-03-25 Thread Wesley Chen
Thank you, guy, it is helpful. Wesley. For life, the easier, the better. On Thu, Mar 25, 2010 at 7:40 PM, Ankur Gera ankurg...@gmail.com wrote: Hi All, I have created a gem 'watir_helper' for making Automation Testing Simpler and Easier.You all can download it from the following link :-

Re: [wtr-general] Re: How to Click on the Browser File Menu Using Watir

2010-03-23 Thread Wesley Chen
Your problem is dealing with the file download popup. Please search in Watir official website or in the group. Wesley. For life, the easier, the better. On Tue, Mar 23, 2010 at 11:15 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Tue, Mar 23, 2010 at 4:10 PM, Praveen

Re: [wtr-general] Yahoo mail compose

2010-03-19 Thread Wesley Chen
I think you have to post your script here. Wesley. For life, the easier, the better. On Thu, Mar 18, 2010 at 6:18 PM, Dilip M lovingdilip...@gmail.com wrote: Hi All, I am automating yahoomail..while i am doing so i encountered a problem.. i will explain here that problem plz can

Re: [wtr-general] Query regarding chromewatir

2010-03-11 Thread Wesley Chen
I use the latest version of chromewatir, I have also met a problem. When I run the code below: *require chrome_watir** **$browser = ChromeWatir::Browser.new* *$browser.goto(**www.google.com* http://www.yahoo.com/*)* *$browser.text_field(:name, q).set hello world* *$browser.button(:index,

Re: [wtr-general] Query regarding chromewatir

2010-03-11 Thread Wesley Chen
In fact, it can open the IE window, but it can't access the text field. Wesley. For life, the easier, the better. On Thu, Mar 11, 2010 at 5:17 PM, Wesley Chen cjq@gmail.com wrote: Hi, Zeljko, When I install gem install selenium-webdriver gem install watir-webdriver --pre I run

Re: [wtr-general] Query regarding chromewatir

2010-03-10 Thread Wesley Chen
Try: require chrome_watir $k = ChromeWatir::Browser.new $k.goto(www.yahoo.com) Wesley. For life, the easier, the better. On Wed, Mar 10, 2010 at 6:59 PM, Mrunal mrunal.gor...@gmail.com wrote: Hi I want to test the web applications with google chrome. I've installed Google Chrome browser

Re: [wtr-general] Access to dojopopupmenu2

2010-03-08 Thread Wesley Chen
For the HTML you provide, we can't do anything. Do you want a right click? Why? element_by_xpath is not a good method to locate an element. Wesley. For life, the easier, the better. On Tue, Mar 9, 2010 at 4:56 AM, barb bfwork2h...@yahoo.com wrote: !DOCTYPE HTML PUBLIC -//W3C//DTD HTML

Re: [wtr-general] Problem with attribute_value() -- Zeljko?

2010-02-10 Thread Wesley Chen
The code below can work in my editor. puts $ie.text_field(:xpath, //inp...@qa='request-form.first_name']/) puts $ie.form(:index, 1).attribute_value(qa) * * *I have the same Watir, ruby version, windows version as you.* *I think you may try the code again.* * * Wesley. For life, the easier, the

Re: [wtr-general] Re: Problem with attribute_value() -- Zeljko?

2010-02-10 Thread Wesley Chen
for the command, but I had it correct in previous testing, just not posting. Thanks again, Adam On Feb 10, 7:02 pm, Wesley Chen cjq@gmail.com wrote: The code below can work in my editor. puts $ie.text_field(:xpath, //inp...@qa='request-form.first_name']/) puts $ie.form(:index, 1

Re: [wtr-general] How much time does Watir waits for the page to load?

2010-02-08 Thread Wesley Chen
Of course not. It will wait no more than 300s. Please search in the group, I think you can get what you want. Wesley. For life, the easier, the better. On Tue, Feb 9, 2010 at 11:39 AM, Logic Bomb januwa...@yahoo.com wrote: Hi, I would like to ask how many seconds does Watir waits for the

Re: [wtr-general] How to export results into an excel sheet on linux

2010-02-08 Thread Wesley Chen
Please search in the group about how to read and write in openoffice in ruby. Wesley. For life, the easier, the better. On Tue, Feb 9, 2010 at 6:24 AM, Naga ravikus...@gmail.com wrote: Hello, I am new to Ruby - Watir. I am trying to export results in to an excel sheet. I am running watir

Re: [wtr-general] Output is displayed two times

2010-02-08 Thread Wesley Chen
require 'D:\Waltair scripts\My wokings in waltair\script1.rb' will execute *MyClass.some_method* Wesley. For life, the easier, the better. On Tue, Feb 9, 2010 at 12:14 AM, Charley Baker charley.ba...@gmail.comwrote: You seem to be calling MyClass.some_method from both scripts. Delete the call

Re: [wtr-general] Re: how to run watirscript in background

2010-02-04 Thread Wesley Chen
I think that's not what he want. Wesley. For life, the easier, the better. On Fri, Feb 5, 2010 at 4:16 AM, AR reed.a...@gmail.com wrote: You can also set visible:false in the the options.yml file if you don't want to do it on a script by script basis. More details here:

Re: [wtr-general] store the Class file

2010-02-03 Thread Wesley Chen
You can store it anywhere, you just need require the file and invoke the methods in it. Wesley. For life, the easier, the better. On Wed, Feb 3, 2010 at 6:10 PM, Nishant nishant.jain2...@gmail.com wrote: http://wiki.openqa.org/display/WTR/HTML+report+class The actual report class

Re: [wtr-general] Can Watir verify the color?

2010-02-01 Thread Wesley Chen
Try these below, I don't know whether they are you want or not: ie.#{element}(:id, foo).document.currentstyle.attributeAsCamelCase so ie.#{element}(:id, foo).document.currentstyle.fontFamily ie.#{element}(:id, foo).document.currentstyle.fontSize ie.#{element}(:id,

Re: [wtr-general] Re: FireWatir: fire_event(onkeypress) returning error message

2010-01-29 Thread Wesley Chen
You may try fire_event(onmouseover) first, then fire_event(ondblclick). Wesley. For life, the easier, the better. On Sat, Jan 30, 2010 at 4:01 AM, tester86 sagar.am...@gmail.com wrote: Can you make it when you click twice? ***.click ***.click I tried .click .click twice on the

Re: [wtr-general] Re: popup handling

2010-01-28 Thread Wesley Chen
me in this regard Thanks, Naveen On Fri, Jan 22, 2010 at 6:32 AM, Wesley Chen cjq@gmail.com wrote: If the methods above can't work, you can try the one below. # When it displays the OKCancel or OK pop up, it will click it def popup_clicker(ie = $ie, buttonname= OK

Re: [wtr-general] Re: FireWatir: fire_event(onkeypress) returning error message

2010-01-28 Thread Wesley Chen
Can you make it when you click twice? ***.click ***.click Wesley. For life, the easier, the better. On Fri, Jan 29, 2010 at 12:04 AM, tester86 sagar.am...@gmail.com wrote: Try this: fire_event(ondblclick) There is a label on the page and I have to double click on that label in

Re: [wtr-general] Firewatir rpxnow

2010-01-26 Thread Wesley Chen
Why do you add the underline between not and you? If you want to skip the '?', you have to regular expression, like: ff.link(:class, /not you/).exists? Thanks. Wesley Chen. For life, the easier, the better. On Tue, Jan 26, 2010 at 9:20 PM, Gimle toni.k.aittoni...@gmail.com wrote: Hello all. I

Re: [wtr-general] how to click on a row in a table

2010-01-21 Thread Wesley Chen
Two different ways you can make it. You can use *index*: $b.cell(:class =user-column, :index =the text's index).click You can use *text*: $b.cell(:class =user-column, ::text=the text you want to click).click Expect it helps. Thanks. Wesley Chen. For life, the easier, the better. On Thu, Jan

Re: [wtr-general] Getting undefined method when trying to check a checkbox

2010-01-20 Thread Wesley Chen
The problem is on nil:NilClass It means the script can't find the browser you have defined. Thanks. Wesley Chen. For life, the easier, the better. On Thu, Jan 21, 2010 at 4:50 AM, QAguy qablogm...@gmail.com wrote: I'm using safariwatir. I am trying to set a checkbox using the following

Re: [wtr-general] Re: Driving Watir scripts in IE and Firefox at the same time

2010-01-19 Thread Wesley Chen
$b.close end end* Thanks. Wesley Chen. For life, the easier, the better. On Tue, Jan 19, 2010 at 10:23 PM, tester86 sagar.am...@gmail.com wrote: Welsey, I changed my script according to what you mentioned above. When I run it in IE I get the following error message: NoMethodError

Re: [wtr-general] Re: How to enter the Chinese characters into the textfield of a webpage by firewatir 1.6.5

2010-01-19 Thread Wesley Chen
I use netbeans editor, it works. If you use different editor, please make sure the character set is right in the editor settings. Thanks. Wesley Chen. For life, the easier, the better. On Tue, Jan 19, 2010 at 7:32 PM, jnxgn s...@jnxgn.cn wrote: Thanks a lot, I had tried before but it did

Re: [wtr-general] Re: Not able to access Dojo controls

2010-01-18 Thread Wesley Chen
I think the code you provided above is not enough. When I paste the code to my local, open it with my IE, I can't see anything. Have you got a public website with the html code? For this kind of location, I think it is not difficult. Thanks. Wesley Chen. For life, the easier, the better

Re: [wtr-general] How to enter the Chinese characters into the textfield of a webpage by firewatir 1.6.5

2010-01-18 Thread Wesley Chen
Try: $ie.text_field(:name, keyword).value = 你好 I have not replaced anything. Thanks. Wesley Chen. For life, the easier, the better. On Tue, Jan 19, 2010 at 12:11 AM, jnxgn s...@jnxgn.cn wrote: I cannot figure out how to enter the Chinese characters into the textfield of a webpage

Re: [wtr-general] Re: Driving Watir scripts in IE and Firefox at the same time

2010-01-15 Thread Wesley Chen
You may change *Class TestGoogle Test::Unit::TestCase* to *class TestGoogle Watir::TestCase* And *require 'watir' require 'watir/testcase'* Thanks. Wesley Chen. For life, the easier, the better. On Sat, Jan 16, 2010 at 5:35 AM, Bill Agee billa...@gmail.com wrote: Can you post the complete

Re: [wtr-general] Re: XPath Support in Frame

2010-01-14 Thread Wesley Chen
I think the xpath is not supported when in a frame. Thanks. Wesley Chen. For life, the easier, the better. On Thu, Jan 14, 2010 at 10:04 PM, Kunal kunal...@gmail.com wrote: Hi Angrez, Do you think this issue can be solved ? -Kunal On Jan 11, 12:33 pm, Wesley Chen cjq@gmail.com wrote

Re: [wtr-general] Driving Watir scripts in IE and Firefox at the same time

2010-01-04 Thread Wesley Chen
. Wesley Chen. For life, the easier, the better. On Mon, Jan 4, 2010 at 11:03 PM, tester86 sagar.am...@gmail.com wrote: Hi From my research as far as I understand you can not drive watir scripts at the same time in the browser unless you create seperate scripts for them. I have a Test::Unit

Re: [wtr-general] Re: Inputting text into a search field that has no input button

2010-01-04 Thread Wesley Chen
$ie.send_keys({ENTER}) Thanks. Wesley Chen. For life, the easier, the better. On Tue, Jan 5, 2010 at 6:22 AM, xguarder shams...@gmail.com wrote: Thanks, it looks like it is indeed a JS event. However, none of the fire_events I have tried seems to be working. Is there a JS event name

Re: [wtr-general] Re: How to write code for button click?

2010-01-03 Thread Wesley Chen
You're welcome. I think you need study more about the basic stuff about Watir. For your question above, it is a link in a CSS, when you view the source, you should have known that it is a link, rather than a button. Wish you will realize the powerful of Watir and Ruby. Thanks. Wesley Chen

Re: [wtr-general] How to write code for button click?

2010-01-02 Thread Wesley Chen
$ie.link(:href, javascript: void(0)).click or $ie.link(:text, Auto Complete).click Thanks. Wesley Chen. For life, the easier, the better. On Sat, Jan 2, 2010 at 1:43 PM, Shaiful Islam jshai...@gmail.com wrote: Hello All, I am learning Watir and implementing it one of my project. I have done

Re: [wtr-general] Error in installation of gem

2009-12-29 Thread Wesley Chen
Watir latest version is 1.6.5. Please don't use Watir1.5.4. Thanks. Wesley Chen. For life, the easier, the better. 2009/12/30 lu.hr2009 lu.hr2009 lu.hr2...@gmail.com thread name can i have it ,thank you. watir-1.5.4.gem have downloaded,it can help me ? 2009/12/29 Wesley Chen cjq

Re: [wtr-general] Re: How to wait following an external frame link click.

2009-12-16 Thread Wesley Chen
wait for two hours until a stuff load in FF3.5. Thanks. Wesley Chen. For life, the easier, the better. On Wed, Dec 16, 2009 at 2:13 PM, bender25 zuzi...@yahoo.com wrote: page does many refreshes / loa -- You received this message because you are subscribed to the Google Groups Watir General

Re: [wtr-general] Can Watir copy the info in Div?

2009-12-16 Thread Wesley Chen
No different between text and innerText, they are the same, as if just alias. Thanks. Wesley Chen. For life, the easier, the better. On Wed, Dec 16, 2009 at 5:31 PM, Yuping Zhong littlezhong...@gmail.comwrote: How to print it out?I want to print it in the Terminal. For* Wesley Chen

Re: [wtr-general] Re: Get unexpected error message when use Excel as report.

2009-12-05 Thread Wesley Chen
:), thank you, Tiffany, I check my gem local list, I found all the gems version are newer than yours. I always update them and uninstall the old version. Thanks. Wesley Chen. For life, the easier, the better. On Sun, Dec 6, 2009 at 8:53 AM, Tiffany Fodor tcfo...@comcast.net wrote: Oops, sorry

Re: [wtr-general] Re: select_item_in_select_list no longer working as expected

2009-11-29 Thread Wesley Chen
Why don't you use: $ie.select_list(...).set($ie.select_list(...).getAllContents[2]) Thanks. Wesley Chen. For life, the easier, the better. On Tue, Nov 24, 2009 at 11:58 PM, James jgcpal...@gmail.com wrote: Well, I sort of resolved my own issue by using getAllContents and then selecting

[wtr-general] What's the difference between FireWatir1.6.5 and Watir1.6.5

2009-11-10 Thread Wesley Chen
. Thanks. Wesley Chen. For life, the easier, the better. --~--~-~--~~~---~--~~ 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: What's the difference between FireWatir1.6.5 and Watir1.6.5

2009-11-10 Thread Wesley Chen
Sorry for the question. I should have read the doc below: http://wiki.openqa.org/display/WTR/Firewatir+Compatibility Thanks. Wesley Chen. For life, the easier, the better. On Wed, Nov 11, 2009 at 10:36 AM, Wesley Chen cjq@gmail.com wrote: Hi, Guys, It is a great news that FireWatir1.6.5

[wtr-general] Re: capturing the link on div

2009-11-09 Thread Wesley Chen
I think you have to study the Watir guide. Solution 1: $ie.divs.collect {|div| if div.class_name == mydata puts div.text end } Solution 2: $ie.lis.collect {|li| puts li.div(:index, 1).text } Thanks. Wesley Chen. For life, the easier, the better. On Mon, Nov 9, 2009 at 6:32 PM, Soori sure

[wtr-general] Re: Watir Help

2009-11-09 Thread Wesley Chen
That's funny. Thanks. Wesley Chen. For life, the easier, the better. On Tue, Nov 10, 2009 at 5:15 AM, Ethan notet...@gmail.com wrote: Somebody seems to be stealing all of your letters 'a'. Watir needs these, otherwise it's just 'wtir', and lacking the 'application' part can't do anything. I

[wtr-general] Re: How to get html meta details

2009-11-03 Thread Wesley Chen
But I can't access the URL: http://bit.ly/4mDHoJ How can I make it? Thanks. Wesley Chen. For life, the easier, the better. On Tue, Nov 3, 2009 at 4:42 PM, Raveendran P jazzezr...@gmail.com wrote: Hi Marlon, welcome ... ! On Tue, Nov 3, 2009 at 1:11 PM, Marlon marlonmoja...@gmail.com

[wtr-general] Re: How to get html meta details

2009-11-03 Thread Wesley Chen
Thank you very much. Only this way to get the meta data? I think it is not convenient enough. Thanks. Wesley Chen. For life, the easier, the better. On Tue, Nov 3, 2009 at 10:41 PM, chandu.tennety chandu.tenn...@gmail.comwrote: Marlon, Your original code works for me: {Content-Type=text

[wtr-general] Re: How convenient, quick to find and locate elements on the page

2009-10-31 Thread Wesley Chen
I think you have to go to Watir official website, it introduces the basic knowledge about how to locate. If you use IE, please download IEdeveloper toolbar plugin; If you use FF, please use firebug. Thanks. Wesley Chen. For life, the easier, the better. On Sun, Nov 1, 2009 at 12:39 PM

[wtr-general] Re: Data driven framework using SQL database

2009-10-30 Thread Wesley Chen
Yes, it works, but I have to change Uid as User ID, Pw as password. Thanks. Wesley Chen. For life, the easier, the better. On Fri, Oct 30, 2009 at 4:53 PM, SMF SMF shaikm.fi...@gmail.com wrote: Hi Pritam, No problem. Could you please do one favor, can you post the steps/configuration you

[wtr-general] Re: Data driven framework using SQL database

2009-10-30 Thread Wesley Chen
If the sql server port is not the default one 1433, how can we set it? In the connect string, can we set any other attribute? On 10/30/09, Wesley Chen cjq@gmail.com wrote: Yes, it works, but I have to change Uid as User ID, Pw as password. Thanks. Wesley Chen. For life, the easier

[wtr-general] Re: Navigating to parent

2009-10-29 Thread Wesley Chen
Please try: element(:xxx, 'xxx').parent.element(:yyy, 'yyy') Thanks. Wesley Chen. For life, the easier, the better. On Fri, Oct 30, 2009 at 9:09 AM, Jeff Fry jeff@gmail.com wrote: Hey all, Remind me, is there a way in watir to navigate to the parent of an element? I'm thinking

[wtr-general] Re: Watir merge: ChromeWatir

2009-10-24 Thread Wesley Chen
That's great news. Expect all the Watir script in IE can also run through in Chromewatir. Thanks. Wesley Chen. For life, the easier, the better. On Fri, Oct 23, 2009 at 7:55 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: for creating the project

[wtr-general] Re: Help required regarding link method

2009-10-23 Thread Wesley Chen
, Photogallerysanity1).parent.link(:index, 1).click 5. $ie.image(:alt, Photogallerysanity1).parent.link(:text, Edit).click 6. $ie.image(:alt, Photogallerysanity1).parent.link(:class = underline, :index =1).click We don't need use Xpth here. Thanks. Wesley Chen. For life, the easier, the better. 2009/10/23

[wtr-general] Re: Team (was: Sai)

2009-10-22 Thread Wesley Chen
I think, Watir general is a great group, it is kind of because there are many kind men who are generous. I think we won't reject any guys who wants to contribute. We may allow any talent to share their ideas, even if they may leave in seconds. Do you think so? Thanks. Wesley Chen. For life

[wtr-general] Re: Help required regarding link method

2009-10-22 Thread Wesley Chen
. Wesley Chen. For life, the easier, the better. 2009/10/22 Amit Kulkarni amitkkulkarni...@gmail.com Hi Angrez, I tried with the link you provided but it shows below error Unable to locate element, using :xpath, //i...@title='Photogallerysanity']/ (Watir::Exception::UnknownObjectException

[wtr-general] Re: Problem with Checkbox

2009-10-21 Thread Wesley Chen
You can use $ie.checkbox(:id, /rating\[\d+\]/) Thanks. Wesley Chen. For life, the easier, the better. On Wed, Oct 21, 2009 at 7:02 PM, Amit Kulkarni amitkkulkarni...@gmail.comwrote: Hello, I have this html script. td width=20% input id=rating[65] type=checkbox value=1 name=rating[65

[wtr-general] Re: Identifying objects when browser window has no toolbar

2009-10-17 Thread Wesley Chen
Maybe Firebug can. Please try it. Thanks. Wesley Chen. For life, the easier, the better. On Sun, Oct 18, 2009 at 4:10 AM, Alan Baird aba...@bairdsnet.net wrote: We have about the same situation in our office. We were able to issue a CTRL-N on the new browser, which copies the security info

[wtr-general] Re: Html Elements Supported by Watir

2009-10-09 Thread Wesley Chen
Yes, Zeljko is really a nice, warm-heart person. Thanks. Wesley Chen. For life, the easier, the better. On Fri, Oct 9, 2009 at 1:34 PM, Raveendran P jazzezr...@gmail.com wrote: ZelijGO, Congrats. Awesome effort. Thanks. On Fri, Oct 9, 2009 at 11:00 AM, Pallavi Sharma

[wtr-general] Re: xpath

2009-09-25 Thread Wesley Chen
Hi, Zeljko, So, would you please show the click method here? How to flash or click after element_by_xpath method? Thanks. Wesley Chen. The easier, the better. On Fri, Sep 25, 2009 at 10:34 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Fri, Sep 25, 2009 at 2:26 PM, Angrez Singh

[wtr-general] Re: Setting innerHTML of a div using Watir.

2009-09-21 Thread Wesley Chen
It must be in a frame. You may use: ie.frame(...).document.body.focus ie.send(hello) Thanks. Wesley Chen. The easier, the better. On Fri, Sep 18, 2009 at 1:39 PM, karim rayani karim@gmail.com wrote: Why not use Javascript commands, there is a technique to insert/execute javascript

[wtr-general] Re: How to handle Exceptions in Watir

2009-09-17 Thread Wesley Chen
require 'watir' require 'watir/testcase' class Test1 Watir::TestCase def test1 end def test2 end end When there is exception in test1, test2 will still run. Expect it could work. Thanks. Wesley Chen. On Thu, Sep 17, 2009 at 3:02 PM, Vishal bvkon...@gmail.com wrote

[wtr-general] Re: I'm looking for a way to count all PageTo(*) elements or to loop until the bullet_search_white_small.gif doesn't exist in the page

2009-09-11 Thread Wesley Chen
For the comment below: $ie.element_by_xpath(//img[contains(@src, 'report_delete.png')]).click It can locate an image element, which has src attributes, for the report_delete.png is just part of the src. I think it can help you. Thanks. Wesley Chen. On Fri, Sep 11, 2009 at 6:03 PM, Guy guy.kid

[wtr-general] Can I get the abscissa and longitudinal coordinates of a link/button/textfield on the page?

2009-09-03 Thread Wesley Chen
Hi, Guys, Now, there is a link on the page, can I get the abscissa and longitudinal coordinates of it? I would like to use that coordinates to locate a flex button beside it. Any suggestion would be quite appreciated. Thanks. Wesley Chen

[wtr-general] Re: Have no access to the frame.

2009-09-02 Thread Wesley Chen
I know that points. But it is a frame, not a URL. How can I set it in my browser? Thanks. Wesley Chen. On Wed, Sep 2, 2009 at 4:41 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Wed, Sep 2, 2009 at 10:37 AM, Wesley Chen cjq@gmail.com wrote: When I try the script below

[wtr-general] Re: Is there a method to handling modal dialog but not providing the title?

2009-08-27 Thread Wesley Chen
Hi, Tony, Thank you so much, I tried your code, it works perfect! It is amazing! Thanks. Wesley Chen. On Wed, Aug 26, 2009 at 4:49 PM, Tony ynot...@gmail.com wrote: Hi Wesley, iewin.clickprompt() will click the button in the popup and return the popup text. This is the definition - def

[wtr-general] Is there a method to handling modal dialog but not providing the title?

2009-08-26 Thread Wesley Chen
) # wait the popups for 3 minutes. ret=autoit.WinWait(title,,60) # wait the popups for 3 minutes. ... = Any suggestion would be quite appreciated. Thanks. Wesley Chen

[wtr-general] Re: Is there a method to handling modal dialog but not providing the title?

2009-08-26 Thread Wesley Chen
Hi, Namit, Your suggestion maybe good. I know some kinds of solution. But if I use autoit, there is no title, how can I make it? autoit=WIN32OLE.new('AutoItX3.Control') ret=autoit.WinWait(*title*,,60) Thanks. Wesley Chen. On Wed, Aug 26, 2009 at 3:08 PM, Namit namitjai...@gmail.com wrote: Hi

[wtr-general] Re: Is there a method to handling modal dialog but not providing the title?

2009-08-26 Thread Wesley Chen
Hi, Tony, Thank you very much for the quick reply. :), 1) I can't find the *below code*; 2)will iewin.clickprompt( ) click the button on the pop up? If it does, if on the pop up, there are two buttons such as OK/Cancel, how to identify them? Thanks. Wesley Chen. On Wed, Aug 26, 2009 at 3:43

[wtr-general] Re: How to get all links inside an object

2009-08-17 Thread Wesley Chen
Why don't you try what you thought? Thanks. Wesley Chen. On Tue, Aug 18, 2009 at 11:17 AM, Marlon marlonmoja...@gmail.com wrote: Hi George, Thanks! What if its a div? Marlon --~--~-~--~~~---~--~~ You received this message because you are subscribed

[wtr-general] Re: Need a sample code to import test data from Excel sheet

2009-08-11 Thread Wesley Chen
You can search in the google group, you can also turn to Watir community, you can get all the great documents about what you want. Please search... Thanks. Wesley Chen. On Tue, Aug 11, 2009 at 5:04 PM, Smruti Ranjan Kar smrutiranjan@gmail.com wrote: require 'win32ole' $application

[wtr-general] Re: Why it opens two IE windows?

2009-07-20 Thread Wesley Chen
Thank you, Alister. I run in XP professional version 2002 service pack 3. Thanks. Wesley Chen. On Mon, Jul 20, 2009 at 2:37 PM, Alister Scott alister.sc...@gmail.comwrote: Are you running Vista? If so, try this: http://wiki.openqa.org/display/WTR/FAQ#FAQ

[wtr-general] Re: Watir work with java editor

2009-07-12 Thread Wesley Chen
You may try netbeans. It is really good. Thanks. Wesley Chen. On Sun, Jul 12, 2009 at 2:40 PM, khaja shaik khaja.sh...@gmail.com wrote: Hi Yes in our product, javaeditor was already implemented and i need to enter the text using editor. can is there any way to automate this process

[wtr-general] Re: Wait for frame to load

2009-07-07 Thread Wesley Chen
It will be good if you add: sleep(3) in your script. Thanks. Wesley Chen. On Wed, Jul 8, 2009 at 4:10 AM, Brautigam Gergely skarlso...@yahoo.comwrote: Hi Ray! Try the wait_until function. It's in the Waitr::Waiter class. --- On *Tue, 7/7/09, Ray rayjh...@gmail.com* wrote: From: Ray

[wtr-general] Re: integrating with team system for testers

2009-06-30 Thread Wesley Chen
Hi, Chethan, I am looking for a good HTML report Ruby class all the time. Would you please share what you're using? Thanks in advance. Thanks. Wesley Chen. On Tue, Jun 30, 2009 at 1:43 PM, Chethan chethan2...@gmail.com wrote: I didn't get your problem, I assume that you want a system to run

[wtr-general] Re: Using name_of_frame = browser.frame(:name,NameOfFrame) for nested frame

2009-06-28 Thread Wesley Chen
Please change: view_frame=browser.home_frame.frame(:name, view) to view_frame = home_frame.frame(:name, view) Your comment equals to browser.browser.*** Of course it didn't work. Thanks. Wesley Chen. On Mon, Jun 29, 2009 at 10:34 AM, Peace peaceofmind1...@gmail.com wrote: view_frame

[wtr-general] Re: Sending mail with a attachment

2009-06-24 Thread Wesley Chen
If you can search more in the group, you can get more you want. Few weeks ago, I have asked the same question. I don't know whether you can access the post or not: https://mail.google.com/mail/?zx=3a1ipdi1bgm4shva=1#sent/121b152d08b7ea8e Thanks. Wesley Chen. On Wed, Jun 24, 2009 at 1:14 PM

  1   2   3   >