hey, all. I tried to convert the following script to exe file by ocra.
require 'rubygems'
require 'watir'
require 'watir/ie'
ie = Watir::IE.new
ie.speed =:fast
for i in 1..1
ie.goto 'http://www.google.com'
ie.text_field(:name, 'q').set('hello world')
ie.button(:name, 'btnG').click
end
but
Hi All,
If you have free time, please try the case given below:
a) Go to
https://secure.mlb.com/enterworkflow.do?flowId=registration.ajax.wizardc_id=mlb
b) select I don't have MLB account
c) Enter email-address and click Register button
d) It shows you error pop-up, i want the text of that
Guys,
I tried all these for below given requirements but no value:
ie = Watir::IE.new
test_site='https://secure.qa2.mlb.com/enterworkflow.do?
flowId=registration.ajax.wizardc_id=mlb'
ie.goto(test_site)
ie.radio(:id, 'select_register').set
ie.text_field(:id,
This worked perfectly! Thank you, this was one of my first attempts at
IO with Ruby :)
On Jul 31, 6:52 pm, Dylan mej...@gmail.com wrote:
Have you stripped the newlines when you get the input? The way you
have it now, $org is ['Coke\n','Pepsi\n','Sprite\n']
Also, is there a reason $org is a
Hey there,
Is there a tool currently available for generating watir code?
I looked at the tg4rb stuff once, but it wasn't maintained for a while
I think
thanks,
Christoph
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Your welcome! A good thing to do when you're using variables that
aren't being accepted like you think they should be is to output them
to the screen right before you use them (print org[0]), that way you
know exactly what value is getting used.
-Dylan
On Aug 3, 6:21 am, infoDrone
Hello all,
On a web app I'm testing, I'm supposed to check that text in a
particular text field is highlighted. Is there an attribute that can
help me with this?
Thanks,
George
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
Cristoph,
take a look at Webmetrics RIA script recorder.
http://www2.webmetrics.com/downloads/scriptrecorder/start.htm
I found out by looking at http://delicious.com/zeljko.filipin/watir+recorder,
thanks again Zeljko!
Grtz, R.
--~--~-~--~~~---~--~~
You received
Hey Alex,
First of all, I think it is a very strange peace of code. You're not
checking anything, just clicking etc.
Why 1 times? Do you want to use Watir as a performance tool?
Furthermore, google does not like these scripts. You (or your IP
number) will probably get on a blacklist if you
Hi Richard,
Thanks for the link, are you using it?
Unfortunately it's windows based only :) But well ...
I'll give it a try, thank you
Christoph
On Aug 3, 8:24 pm, Richard Wijdenes richard.wijde...@gmail.com
wrote:
Cristoph,
take a look at Webmetrics RIA script
On Aug 2, 10:59 pm, jane.liu jane.li...@hotmail.com wrote:
hi,james,
use the following code for trying:
ie.image(:xpath,//i...@src='=../
App_Themes/co/locationdrilldown_hollow.jpg']).click
the .image method acts on elements defined with the img tag.
In his case he has an input type=image
what does 'hilighted' mean? some kind of background color in the
whole text field? the 'focus' on the text field? or do you mean
'selected' as if I'd done a click and drag with the mouse?
On Aug 3, 11:06 am, George george.sand...@gmail.com wrote:
Hello all,
On a web app I'm testing, I'm
Hi All,
Have installed the following : Ruby 1.8.6, Watir 1.6.2 , Firefox 3.0.12
Iam newbie in Watir automation, Iam facing an issue which iam not sure how
to go about it.
The Application/Product is developed in such a way that after successful
Creation, the created data is directly directed to
I am totally new and just trying to learn and do basic staff.
I installed RC2 Ruby and Watir.
ruby 1.8.6 (2008-08-11 patchlevel 287) [i386-mswin32]
While running gem install watir got this error:
Installing ri documentation for builder-2.1.2...
ERROR: While generating documentation for
Cristoph,
Yes, I'm using it. Mostly for pages with a lot of fields. After
recording it i copy-paste it in Scite, and adjust it manually.
Are you using Linux? I'm using Ubuntu 9.04, but i'm not very pleased
by the speed of firewatir and firefox.
Grtz. R.
I am new to Watir/Ruby. Sorry about this noob question - I am trying
to use the date in a text field. Using my script (pasted below). I get
the error - I am not sure what I am doing wrong in this case. Any help
would be greatly appreciated.
Add .to_i in the middle there, because like you said you aren't
getting an integer back, so you have to make it one. So you end up
with:
$regno = oo.cell(row,6).to_i.to_s
-Dylan
On Aug 3, 8:52 am, balbao ramkrishn...@gmail.com wrote:
HI,
Am a novice in Watir and have a problem in retrieving
I would try uninstall/reinstalling and running gem update --system
beforehand so you have the latest version of rubygems before you try
installing watir. I promise nothing, though! :)
-Dylan
On Aug 2, 8:12 pm, DF df.tra...@gmail.com wrote:
I am totally new and just trying to learn and do basic
HI,
Am a novice in Watir and have a problem in retrieving an integer from
spreadsheet.
require watir
require rubygems
require 'win32ole'
require 'Win32API'
require 'roo'
$ie = Watir::IE.new
url = https://qaenv:7001/login;
$ie.goto(url)
def value(file, sheet)
oo = Openoffice.new(file)
Date.today() returns a Date object, while .set requires a string.
Somewhere in the set function it is trying to get the length of the
string it was passed, which is why you're getting that error. You
might try something like:
ie.text_field(:name,q).set #{today}
-Dylan
On Aug 3, 10:18 am,
Hello Balbao,
$regno = oo.cell(row,6).to_i
will do what you're looking for.
Darryl
Dylan wrote:
Add .to_i in the middle there, because like you said you aren't
getting an integer back, so you have to make it one. So you end up
with:
$regno = oo.cell(row,6).to_i.to_s
-Dylan
On Aug
thanks for your quickly reply.
yep, the code seems meanningless. But it's only a dummy of my working
script, sorry for that i coldn't put my real script to here.
My real script really have a very big loop to test all pages, but i
don't the total page count, so i only can do it by click the linke
Try this out. I have used it only once, because now
days I don't do web automation. It looks good.
http://www.itest2.com/downloads#recorder
-Manish
Richard Wijdenes wrote:
Cristoph,
Yes, I'm using it. Mostly for pages with a lot of fields. After
recording it i copy-paste it in Scite, and
Dilan,
When are you planning to setup your testsuites on Cruise control? Can
you also share some info/tutorials/examples in case you already figure
it out? I really need some help organize our test scripts.
Thanks
--~--~-~--~~~---~--~~
You received this
Guys, anybody here knows how to integrate watir test scripts on cruise
control? Suggestions/comments will surely be appreciated. This is what
I'm planning to do:
Set up a dashboard (some short of a html) where I can:
(1) Put our test cases where I can check/unchecked the test case i want to run
Is there a recorder that can record javascript popup?
--~--~-~--~~~---~--~~
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
You can capture the error in begin rescue loop so no need to worry
whether its get populated or not
You can do like this below
begin
rescue =e
@msg=ErrorMessage(e)
end
for writing to a file
f = File.new(c:\log.txt,w)
@msg.each do |content|
f.write(content)
end
f.close()
I think this will
27 matches
Mail list logo