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
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
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
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:
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
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:
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
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
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
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
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
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 =
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
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:
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 =
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
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
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
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.
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
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
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
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
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
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' ?
--~--~-~--~~~---~--~~
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
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
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
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
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
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 :
31 matches
Mail list logo