[wtr-general] How to enter values in text field present in forms

2008-12-02 Thread Divya
Hi, How to enter values in text field present in forms? I tried ie.form(:name, 'phone').set(record['mobilenumber']) please let me know thanks divya --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General

[wtr-general] Re: How to enter values in text field present in forms

2008-12-02 Thread Tony
Hi Divya, Use the text_field to identify the object directly. ie.text_field(:name, phone).set(record['mobilenumber']) -Tony --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this

[wtr-general] Re: operator not working

2008-12-02 Thread Prince3105
Hi Friends, I got the solution, when i run the code it returns the TableCell only not the string. Then i modified the code as below and works well. real = ie.frame(:id,wfFrame).table (:id,lkpTradingPartnerType_LkpTblRows) [2] [1] list = ie.frame(:id,wfFrame).table

[wtr-general] Re: Unable to find the value blah... within a listbox. Value is retrieved from excel cell

2008-12-02 Thread Darin Duphorn
I've tried both copying it from and entering manually and I'm always getting 'à' I've also tried this in the ruby code and it didn't work .gsub('à'.'...') Thanks though. I've asked the developers to remove the ... from the word. -Original Message- From:

[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: Not able to use text from the web pages

2008-12-02 Thread Darin Duphorn
Will this work? ie.text_field(:name, autoGenId) = tempValue Is the code within the same .rb file? Are you passing tempValue correctly? -Original Message- From: watir-general@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jaggi Sent: Tuesday, December 02, 2008 8:05 AM To:

[wtr-general] FireWatir: Link click error

2008-12-02 Thread Girish Jindal
Hello, I am facing an issue using FireWatir. FireWatir is not able to click the link: *ff.link(:text, Sign Out).click*. I am using Watir 1.6.1 It is throwing exception 1) Error: test_AccountOverview(Accounts): FireWatir::Exception::UnknownObjectException: Unable to locate object, using url

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

2008-12-02 Thread Tony
Hi Divya, ie.textField(:name, 'phone').set(9123456789) ... looks wrong Should be ie.text_field(:name, 'phone').set(9123456789) or ie.text_field(:name, 'phone').value = 9123456789 You could also use value.. not sure on the others. -Tony --~--~-~--~~~---~--~~ You

[wtr-general] Not able to identify object

2008-12-02 Thread Divya
Hi Iam divya from bangalore My watir code is like this: ie = IE.new ie.focus ie.goto(record['url']) ie.maximize ie.wait() ie.textField(:name, 'phone').set(9123456789) And view source is like this: Mobile Number: br/ input

[wtr-general] Re: operator not working

2008-12-02 Thread LFIdnl
Or you can execute puts real.length; puts list.length . That shows you what the length of stings On 2 дек, 11:07, LFIdnl [EMAIL PROTECTED] wrote: May be your variable 'real' and 'list' have another not visible character like as whitespace. Try exucuite puts '#{real}'; puts '# {list}' . Result

[wtr-general] Re: Unable to find the value blah... within a listbox. Value is retrieved from excel cell

2008-12-02 Thread Darin Duphorn
I've figured it out. There is a setting within excel that converts ... to ellipses. To remove this setting goto Tool- AutoCorrect Options... and removed the ... to ... conversion. Darin -Original Message- From: watir-general@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of

[wtr-general] Re: operator not working

2008-12-02 Thread Prince3105
Thanks Tony for your solution, it works... Thanks, Prince3105 On Dec 2, 2:34 pm, Prince3105 [EMAIL PROTECTED] wrote: Hi Friends, I got the solution, when i run the code it returns the TableCell only not the string. Then i modified the code as below and works well. real =

[wtr-general] Re: operator not working

2008-12-02 Thread Prince3105
Thanks for your reply, When i use first method it returns, 'AO' 'HQ' When i use length method it returns one error ADM0005.rb:20: undefined method `length' for #Watir::TableCell: 0x41bc250 (NoMethodError) But i insert one code below like a = abcd puts a.length it returns the correct answer

[wtr-general] Re: button.Click_No_Wait only highlights the button, does not click

2008-12-02 Thread patrick
thanx for the response Bret. i will try and downgrade to ie6 and try the same patrick. On Dec 2, 12:23 am, Bret Pettichord [EMAIL PROTECTED] wrote: This works for me, although I am using ie 6.0. I'm wondering if this is broken with ie 7. Can any one else try this out? Bret patrickwrote:

[wtr-general] Re: operator not working

2008-12-02 Thread Tony
Hi, Got the error - real = ie.frame(:id,wfFrame).table (:id,lkpTradingPartnerType_LkpTblRows) [2] [1] The above statement returns an object of Watir::TableCell and the length for this will not be the string length. Maybe the == also is not working due to this. Do the below real =

[wtr-general] firefox on mac not quitting

2008-12-02 Thread Matthias Marschall
Hi, I'm using firewatir 1.6.2 on Mac OS 10.5.5 with firefox 3.0.4. browser = Watir::Browser.new opens firefox as expected. browser.close closes the window opened before, but does not quit firefox. Is there any way to make firewatir quit firefox? Currently, my watir scripts never return as

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

2008-12-02 Thread al3kc
I guess you can click it as a simple cell using class atribute. $browser.cell(:xpath, //[EMAIL PROTECTED] = 'className' ]).click --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this

[wtr-general] Re: FireWatir: Link click error

2008-12-02 Thread Bret Pettichord
1. Your stack trace indicates that you are using FireWatir 1.2.0, not 1.6.1 2. Your stack trace error is inconsistent with the code you provide. Please double check the actual code on line 25 of Accounts.rb Bret Girish Jindal wrote: Hello, I am facing an issue using FireWatir. FireWatir is

[wtr-general] Re: firefox on mac not quitting

2008-12-02 Thread Bret Pettichord
Short answer: no. Dave Hoover says this is browser.quit in SafariWatir. Similar is IE.close_all. We need to figure out what to do to be consistent. Regardless, this problem should not be causing your scripts not to return. Can you provide more information? Something else may be happening.

[wtr-general] tip of the day: puts does an implicit to_s

2008-12-02 Thread Bret Pettichord
In three separate threads recently, people have been confused because what they see with puts doesn't match with what they are testing in an if statement e.g. puts foo hello but if foo == hello this_is_never_called end The problem stems from the fact that puts is actually

[wtr-general] Clicking a javascript image

2008-12-02 Thread Jim
I am having problems clicking a javascript button. Below is the code used for the button: a href=Javascript:doPost(document.pageForm, 'Update.m'); title=View Hotelsimg src=images/Arizona/button_viewhotels.gif width=190 height=83 alt=View Hotels class=arrow //a If I attempt to click the button

[wtr-general] Re: Clicking a javascript image

2008-12-02 Thread Jim
Hmmm...I didn't think about using link and that did work. Thanks for your help On Dec 2, 10:37 am, Darin Duphorn [EMAIL PROTECTED] wrote: Looks like it's a link. Are you using link or image? -Original Message- From: watir-general@googlegroups.com [mailto:[EMAIL PROTECTED] On

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

2008-12-02 Thread Chuck vdL
There was another thread here in the last week on just this same sort of thing. try reading this thread, which I think had sample code and all http://groups.google.com/group/watir-general/browse_thread/ thread/fc0e667e13574a61?hl=en# You'll need to fire the onclick event for that object, you

[wtr-general] Re: firefox on mac not quitting

2008-12-02 Thread Richard Lawrence
I use appscript to quit Firefox like this: in browserfactory.rb --- require 'firewatir' require 'appscript' class BrowserFactory def get_new_browser # close Firefox if it's running if Appscript.app('System Events').processes['Firefox'].exists() Appscript.app('Firefox').quit

[wtr-general] Updating RubyForge info for Watir?

2008-12-02 Thread Chuck vdL
Is this on the todo list? I was just there and noticed that the info still indicates it's windows only, ie only, there's no release notice for 1.6.2 under 'latest news, and is the development status still actually considered to be 'beta' ? --~--~-~--~~~---~--~~

[wtr-general] Re: How to click dijit button char

2008-12-02 Thread maven999
Chuck, I agree with your comments. My intention was to figure out why dev wrote the code that they did. However, I do see that coding conventions are not always used consistently (for example, using a drop-down list in some places and a dijit combo box elsewhere when both are doing the same

[wtr-general] Re: Updating RubyForge info for Watir?

2008-12-02 Thread Bret Pettichord
Info has been updated to say Watir supports IE and Firefox. News for 1.6.2 were accidently called 1.6.1 and as far as i know this can't be edited. Beta? I dunno. What do you suggest we call it? Bret Chuck vdL wrote: Is this on the todo list? I was just there and noticed that the info

[wtr-general] Re: 1.6.2: Issue with enabled_popup.rb

2008-12-02 Thread Bret Pettichord
The reason that enabled popup is in contrib is to indicate that it is unsupported code. I've never used Watir's modal dialog support for production testing (except for showModalDialogs, which i've used and which IMHO has excellent support). The support for the other modal dialogs needs work

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

2008-12-02 Thread wesley chen
Thanks to all of you. In fact, the issue is not so hard. I can't cope with the problem just because, I didn't tell from the 'cell' and 'table', I misunderstood that, the 'cell' can be replaced by 'table' all the time. Both the two method below can work: ie.cell(:id,/td0/).click

[wtr-general] Re: How to handle Security Alert or Certificate Exception popup

2008-12-02 Thread winstan
Hi Tony, Being new to the wonderful world of watir i have infact come across the security alert pop up and have tried a few of the examples on other threads with how to control the pop-up so one can proceed, however so for to no prevail. I would liek to give your process a whirl how ever how

[wtr-general] Re: FireWatir: Link click error

2008-12-02 Thread Girish Jindal
Thanks for the reply, Do I need to install FireWatir separately. I am using Watir 1.6.1 and my understanding is that Watir 1.6.1 works for both IE and Firefox. And I do not need to install it separately. Yes it was incorrect code the correct one is :