[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

[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 wrote: > Somebody seems to be stealing all of your letters 'a'. Watir needs these, > otherwise it's just 'wtir', and lacking the 'application

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

2009-11-10 Thread Wesley Chen
ite appreciated. 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 Be

[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 wrote: > Hi, Guys, > It is a great news that FireWatir1.6.5 is relea

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 wrote: > > Well, I sort of resolved my own issue by using getAllContents and then > selecting a v

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

2009-12-05 Thread Wesley Chen
Thanks, Ethan, I have searched a lot in google. I just want to ask anybody who has met this kind of problem. I think in the group, there are many experts who are good at excel class. Thanks. Wesley Chen. For life, the easier, the better. On Sat, Dec 5, 2009 at 3:36 PM, Ethan wrote: > D

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 wrote: > Oops, sorry about that

Re: [wtr-general] Save dynamic image

2009-12-13 Thread Wesley Chen
What kind of web page is it? Would you show us the HTML? What kind of images do you want? the old ones or the new ones? Thanks. Wesley Chen. For life, the easier, the better. On Sun, Dec 13, 2009 at 3:01 AM, bm wrote: > Hi, I have web page which shows dynamic image every refresh... I n

Re: [wtr-general] Tables in Watir - Perform Verification Check

2009-12-14 Thread Wesley Chen
Do you want assert $ie.cell(:class, "x").text.eql?("90") ? Thanks. Wesley Chen. For life, the easier, the better. On Tue, Dec 15, 2009 at 6:25 AM, tester86 wrote: > I have a table that has a sub class > > > > > 90 > > > I want to perform

Re: [wtr-general] Script to click the dynamic link

2009-12-14 Thread Wesley Chen
/bookID=\d+/).to_s.gsub("bookID", "") return $ie.link(:text =>"Edit", :href =>/bookID=#{book_id}/) end Any problem, please show it in the email. I have not executed the code I provided. Thanks. Wesley Chen. For life, the easier, the better. On Tue, Dec

Re: [wtr-general] Script to click the dynamic link

2009-12-15 Thread Wesley Chen
What's your script? I wondered whether you invoke the method right. do you use: edit_book_link(/DBMS/)? If so, please use edit_book_link("DBMS") Thanks. Wesley Chen. For life, the easier, the better. On Tue, Dec 15, 2009 at 7:45 PM, Swapnal wrote: > I tried with given code

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

2009-12-16 Thread Wesley Chen
nd end* change the 300 in red to 420. I have ever tried that in FF, it works. I 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 wrote: > page does many refreshes / loa -- You received

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

2009-12-16 Thread Wesley Chen
:), I think it is *text *or *innerText*, is *Text *OK? Thanks. Wesley Chen. For life, the easier, the better. On Wed, Dec 16, 2009 at 2:48 PM, LiShu wrote: > > $ie.div(:id,"AA").Text > > On Wed, Dec 16, 2009 at 2:17 PM, Yuping Zhong wrote: > >> Hi, >> &

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 wrote: > How to print it out?I want to print it in the Terminal. > > For* Wesley Chen:* > > Is it di

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

2009-12-29 Thread Wesley Chen
It is a different topic, please open a new thread. Please see the doc: http://wiki.openqa.org/display/WTR/Installation And then try again. Thanks. Wesley Chen. For life, the easier, the better. 2009/12/29 lu.hr2009 lu.hr2009 > hi > > > I am trying to install watir in my PC

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 > thread name can i have it ,thank you. > watir-1.5.4.gem have downloaded,it can help me ? > > 2009/12/29 Wesley Chen >

Re: [wtr-general] need help on how to close the new windows

2009-12-30 Thread Wesley Chen
return Watir::IE.attach(:hwnd, hwnd) else return nil end end $ie = Watir::IE.start("your_url") $ie.link("your_link").click if ie2 = new_window ie2.close end Thanks. Wesley Chen. For life, the easier, the better. On Wed, Dec 30

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 wrote: > Hello All, > > I am learning Watir and implementing it one of

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] Driving Watir scripts in IE and Firefox at the same time

2010-01-04 Thread Wesley Chen
goto("www.google.com")* Thanks. Wesley Chen. For life, the easier, the better. On Mon, Jan 4, 2010 at 11:03 PM, tester86 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 > scri

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 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: watir does not click on button when specified

2010-01-05 Thread Wesley Chen
It is a link, not a button Thanks. Wesley Chen. For life, the easier, the better. On Wed, Jan 6, 2010 at 6:42 AM, Tiffany Fodor wrote: > It looks like this may be a button or span, not a link. > > I don't think a span or button can be identified with the href in > Wat

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

2010-01-10 Thread Wesley Chen
I met with this kind of problem, too. In fact, when I user IE developer toolbar to access the web page with the source code above, the IFRAME won't expand. The IFrame is with src attributes, it points to the other place, which crosses the domain, so we have no access. Thanks. Wesley Chen

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 wrote: > Hi Angrez, > > Do you think this issue can be solved ? > > -Kunal > > On Jan 11, 12:33 pm, Wesley Chen wrote: >

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 wrote: > Can you po

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 wrote: > I cannot figure out how to enter the Chinese characters into the > textfield of a

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

2010-01-19 Thread Wesley Chen
;onMouseDown") * * $b.link(:id, "button1").fire_event("**onMouseUp")* * end def test_tear_down $b.close end end* Thanks. Wesley Chen. For life, the easier, the better. On Tue, Jan 19, 2010 at 10:23 PM, tester86 wrote: > Welsey, > > I

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 wrote: > Thanks a lot, I had tried before but it did not work. >

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 wrote: > I'm using safariwatir. I am trying to set a checkbox using the > follo

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 help

Re: [wtr-general] Re: popup handling

2010-01-21 Thread Wesley Chen
up=nil end end sth.click_no_wait popup_clicker($b, "OK") I submit the one you referred, but I don't know why sometimes it works, sometimes it doesn't. Maybe in the second, it works, in the next second, it doesn't work. For the popup_clicker, I think it is a sta

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 wrote:

Re: [wtr-general] Re: popup handling

2010-01-28 Thread Wesley Chen
se help me in this regard > > Thanks, > Naveen > > On Fri, Jan 22, 2010 at 6:32 AM, Wesley Chen 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 >>

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 wrote: > > > Try this: > > > > fire_event("ondblclick") > > > > There is a label on the page and I have to double click on that label > in order to go

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 wrote: > > > > Can you make it when you click twice? > > > ***.click > > > ***.click > > > > I tried .click .click twice on the label,

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, "foo").document.current

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 wrote: > http://wiki.openqa.org/display/WTR/HTML+report+class > > The actual report class (CLReport.class.rb) > > Where we

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 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: http://wiki.openqa.org/display/WTR

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 wrote: > Hi, > > I would like to ask how many seconds does Watir waits for the page to > load? Do

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 wrote: > Hello, > > I am new to Ruby - Watir. I am trying to export results in to an excel > sheet. I am running watir on linux and not w

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 wrote: > You seem to be calling MyClass.some_method from both scripts. Delete the > call from the first script

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
the above post 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 wrote: > > The code below can work in my editor. > > puts $ie.text_field(:xpath, "//inp...@qa='re

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 wrote: > equiv="Content-Type" content="text/html; charset=windows-1252">

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 wrote: > Hi > > I want to test the web applications with google chrome. > I've installed Google Chrome browser and the gem Chrom

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* *")* *$browser.text_field(:name, "q").set "hello world"* *$browser.button(:index

Re: [wtr-general] Query regarding chromewatir

2010-03-11 Thread Wesley Chen
Hi, Zeljko, When I install gem install selenium-webdriver gem install watir-webdriver --pre I run the code below: *require "watir-webdriver"* *browser = Watir::Browser.new(:internet_explorer)* *browser.goto("www.google.com")* *browser.text_field(:name, "q").set("Hello world")* *browser.button(:inde

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 wrote: > Hi, Zeljko, > When I install > gem install selenium-webdriver > gem install watir-webdriver --pre >

Re: [wtr-general] Query regarding chromewatir

2010-03-11 Thread Wesley Chen
Thank you, Zeljko, When I use Watir::IE.new/start to create new IE process, anything goes expected. Wesley. For life, the easier, the better. On Thu, Mar 11, 2010 at 5:20 PM, Željko Filipin < zeljko.fili...@wa-research.ch> wrote: > On Thu, Mar 11, 2010 at 10:17 AM, Wesley Chen wro

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 wrote: > Hi All, >I am automating yahoomail..while i am doing so i > encountered a problem.. i > will explain here that problem plz can any one solve and gu

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 wrote:

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 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 :- >http://gith

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 wrote: > Firstly, I should have probably mentioned in my previous posts I am a > Watir newbie. However I have d

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 wrote: > > > I have faced same problem > and firewatir allows multiple attributes to use. > > Try using wait_until funct

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 wrote: > I'm trying to check if a field is populated on a page. This command > works

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 wrote: > ie.text_field(:id,"mytextfield").value will get the value in the text > f

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 wrote: > On Apr 8, 2:59 pm, Sal Jamil wrote: > > I just tried that and I am getting the same error. > > Is this page published on the web? If so then pleas

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

2010-04-07 Thread Wesley Chen
ver. 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 wrote: > >> If there is ajax, please use *fire_event* before you *set* >> Wesley. >> For life, the easier, the bet

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 wrote: > mber of tries and wait between tries -- Before posting, pleas

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 wrote: > ode:0x800706b5 -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You re

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

2010-04-15 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 wrote: > > Hi Friends, > > I am unable to identify elements inside a frame and no method of > element class is w

Re: [wtr-general] Re: Fwd: [selenium-developers] Proposal for a Selenium StackExchange site

2010-05-03 Thread Wesley Chen
I don't know whether I can help or not. Wesley. For life, the easier, the better. On Mon, May 3, 2010 at 5:49 PM, Željko Filipin < zeljko.fili...@wa-research.ch> wrote: > On Fri, Apr 30, 2010 at 12:52 PM, Betsy wrote: > > That is a really great thing to happen to Watir support as it will > > h

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 wrote: > Hello, > > I want to click on all the links on a page, got it, I have this > working no problem. Some l

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 wrote: > > Can it

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 wrote: > Nokogiri -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You recei

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 wrote: > Thank you for posting in the link.I checked it before and I tried one > of the solutions and it wo

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 > On Thu, May 27, 2010 at 10:23 PM, Jarmo Pertman wrote: > > I'm thinking that here are probably some people who would like to take > > screenshots in their tests so

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 wrote: > do you mean that popup is a modal dialog ? > please try this : > ie.modal_dialog() to attach this popup. > see more : > http://www.infoq.com/news/Watir-Adds-Support-f

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 wrote: > The Ruby IO and File classes contain untold goodies. I'd sugge

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.pageName"Home Page" s.channel"" s.prop3"x" Please write a method, get all the data from xls out into an array/hash A; Second, you have to captu

[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, rea

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

2010-06-16 Thread Wesley Chen
4:27 PM, Željko Filipin < zeljko.fili...@wa-research.ch> wrote: > On Sat, Jun 12, 2010 at 7:42 AM, Wesley Chen wrote: > > Problem 1: Send an gmail(Click "Compose Mail" link, input "Email to", > "Subject", "Email content", click "Send

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

2010-06-21 Thread Wesley Chen
owan/roo > > > > Might be nice to have data driven tests (somewhat) in the cloud. > > > > FK > > > > > > > > On Wed, Jun 16, 2010 at 10:20 PM, Wesley Chen wrote: > > > I just want to have a try on the gmail and goog doc. > > > In fa

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 wrote: > Hi, > I have written

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 displa

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 wrote: > Hi, > > I am confused in rich calender, i need to click image and then get > elements or > do like following > > ie.cell(:class =>

[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

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 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 co

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 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

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 wr

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 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 1.6.6 on a > Windo

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,

Re: [wtr-general] Re: How to get all the links from Paginated search result page

2010-10-06 Thread Wesley Chen
It is really easy if you understand the basic knowledge about watir. You can get all the expected links by the block below: $ie.table(:xxx, yyy).links.collect {|link| if linkmatch end } If there is pagenation, you may try: $ie.link(..., next).click unless ! $ie.link(..., next).exists? W

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 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 text_include method?

[wtr-general] Re: Not able to identify object in Watir

2008-10-06 Thread wesley chen
Please try one of the three: ie.button(:name,/srchIfscCodeBtn/).click ie.button(:value,/code/i).click ie.button(:xpath,"//[EMAIL PROTECTED]'submitLink']").click --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Watir G

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

2008-10-06 Thread wesley chen
I can locate 4 with the code below: $ie.link(:xpath,"//[EMAIL PROTECTED]'menu416951507']/../../../").div(:class, 'dayActivityBG1') Can we use $ie.link(:id, "menu416951507").document.parentNode... to locate the div? parentNode belongs to the XML::DOM::Node attribute. Any article or document about

[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: text_field

2008-10-07 Thread wesley chen
Weird, I can make it with your code. --~--~-~--~~~---~--~~ 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

[wtr-general] Re: IE POP UP Window

2008-10-09 Thread wesley chen
There is an easy way to deal with your problem: require 'watir/dialog' button***.click_no_wait dialog.button('OK').click dialog.button('Cancel').click Wesley. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Watir

[wtr-general] Re: How do make the element_by_xpath work?

2008-10-10 Thread wesley chen
it won't work, because ie.element_by_xpath("//[EMAIL PROTECTED]'wiston']").class ='win32ole' for win32ole object, there is no method of 'set' --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Watir General" group. To

[wtr-general] Re: Selecting a nested element

2008-10-12 Thread wesley chen
Have you noticed that, there is an id for each div? on page: http://sandbox.freebase.com/view/en/jared_sparks There are two div ids: TYPEBOX-0x309a453a62c80d2 and TYPEBOX-0x7301883e4c6611e6 So, you just need pay attention to the ID, you can locate the element as you want. Expect it could help. We

[wtr-general] Re: Selecting a nested element

2008-10-12 Thread wesley chen
br.div(:xpath, "//[EMAIL PROTECTED]'Deceased Person']/").flash --~--~-~--~~~---~--~~ 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: Navigating through the menu tree

2008-10-13 Thread wesley chen
try: ie.goto(url) sleep(2) new_ie2= $ie.frame("leftFrame").link(:text,"EMS").click new_ie3= $ie.frame("leftFrame").link(:text, ,"ADMINISTRATOR").click new_ie4= $ie.frame("leftFrame").link(:text, "School").click new_ie5= $ie.frame("leftFrame").link(:text,"Create School").click Wesley. --~--~-

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

2008-10-13 Thread wesley chen
The send_keys below works ie.send_keys("^a"); ie.send_keys("{delete}") but I can not prints out the text in the frame textarea when I use: document.innerHtml I use: $ie.document.getElementById("mce_editor_0").innerHtml, it executes successfully but print nothing --:) Man should be hard to himself,

[wtr-general] Re: IE POP UP Window

2008-10-13 Thread wesley chen
(hwnd) #Activate the window. popup.clickWindowsButton_hwnd(hwnd,buttonname) #Click the button #popup.clickWindowsButton(/Internet/,buttonname,30) popup=nil end end end Wesley Chen. --~--~-~--~~~---~--~~ You received this

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

2008-10-14 Thread wesley chen
Yes, it doesn't work. Have you got some good idea? 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" group. To post to this group, sen

[wtr-general] Re: How can i attach popup window in Watir 1.5

2008-10-14 Thread wesley chen
module NewWindow def get_new_win() # get a handle if one exists aa = Win32API.new("user32", "GetForegroundWindow",[] , 'L') hwnd = aa.call if (hwnd) # yes there is a popup return Watir::IE.attach(:hwnd, hwnd) else return nil

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

2008-10-14 Thread wesley chen
No, it still doesn't work. Would you have a chat with me in Google talk? 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" group. To p

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

2008-10-14 Thread wesley chen
It works when I try the code below. puts ie.frame(:id, /mce_editor_0/).document.body.innerhtml It will put the html out. puts ie.frame(:id, /mce_editor_0/).document.body.innerText it will put the text out in fact, we can locate the window by: ie.frame(:id, /mce_editor_0/).document.body.focus ie.

<    1   2   3   4   >