On 10/24/06, Roger Studner [EMAIL PROTECTED] wrote:
Is it well known that it is impossible to test dynamically generated
ASP.NET stuff with Watir? (that being said, every execution, every time, yields identical HTML in view source).I use Watir to test asp.net applications, so it can be done. Can
ie.link(:text, text).hrefZeljko-- http://zeljkofilipin.com/
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
On 10/26/06, Ethan Jewett [EMAIL PROTECTED] wrote:
That way, if I'm not mistaken, one could do thingslike ie.element(*).flash.click.click to click an object twice and thenmake it flash.Actually, ie.element(*).flash.click.click would first flash an element and then click it twice.
Zeljko--
It looks to me that I completely misunderstood the question. :)-- http://zeljkofilipin.com/
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
You have a bunch of Watir tests, right? With every build of your application under test, you run them all. If a test fails, application should be fixed, or you test should be fixed. Wouldn't it be nice to make how-to documents from that tests?
Time for an example.def login_as(username, password)
What I want to do is to generate how-to documents for users of application that I test. When user clicks how-to link (or help, or whatever), there should be list:- login- do something- do something else
...- logoutSelect login and you get:- go to 'my.app/login.aspx'- there should be text 'Please
Thank you all. I will take a look at tools that you suggested.Zeljko-- http://zeljkofilipin.com/
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
At the end I decided to use Watir only. I took a closer look at application that I test and found out that there are labels for elements.input id=ctl00_subContent_userNameInput type=text
label for="" id=ctl00_subContent_Label1Username/labelI added this to the end of Watir::TextField#setwhat =
On 11/14/06, Nie Guoqiang [EMAIL PROTECTED] wrote:
how can i access this icon-button.img src="" /Hi Nie,This will click logout image:ie.image(:src, /logout/).flash
If this does not do what you need, let me know.Željko-- http://zeljkofilipin.com/
___
I have just installed watir-1.5.1.1127.gem and it crashes when I use
ie.minimize. I do not have autoit installed. Does watir require it now?
Should I log this to jira?
Steps to reproduce:
C:\Documents and Settings\limitedruby -v
ruby 1.8.5 (2006-08-25) [i386-mswin32]
C:\Documents and
On 11/24/06, san [EMAIL PROTECTED] wrote:
Hi, This Is Sanju From India, I'm Brand New To Watir.
Welcome! :)
But Can't Click On [b]Login[/b] Button
Login button is actually an image.
img src=new_images/button_login.jpg
I successfully clicked it with
ie.image(:src,
On 11/24/06, san [EMAIL PROTECTED] wrote:
Is There Any Way To Directly Go To The Page After Logged In... I Don't
Want To See The 1st page The Data That Are Entered Will It Save A
Little Bit Of Time?
You want to change the page that opens after you log in? That can not be
done by
On 11/25/06, san [EMAIL PROTECTED] wrote:
@ Zeljko : Yes, But I Wanted The Whole Process... i.e opening The 1st
Page, Entering My Given Data, Then Logging In... In The Background.i.eWhen IE
Will Open The Page,I'll Be Already Logged In...
Sanju,
I do not understand what you want to do. Can
Could you send the code that you use to click that link?
Zeljko
--
zeljkofilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
On 11/26/06, Allen Zhou [EMAIL PROTECTED] wrote:
So what shall I do?
Use 'begin..rescue..end' to ignore this exception?
If your script works and that exception just bugs you, rescuing it sounds
like a good idea.
Zeljko
--
zeljkofilipin.com
___
On 11/27/06, san [EMAIL PROTECTED] wrote:
Is It Possible To Save The Page As .html
ie.html will show you html of the page:
Or Is It Possible To Get All The Links In That Page
ie.links is array of all links at that page
Including Its Own url
ie.url will give you url of page
--
Zeljko
Is there a way to make file_field.set faster?
I have noticed that this is the slowest part of my tests. It takes about 10
seconds to set file field. I have read that it can not be set directly
because that would be security issue, but I wonder what I could do to make
it faster. I upload
I do not know how to use Excel, but this is how you could simplify your code
(tested).
searches = [pickaxe, Ruby, Watir, Watir and Ruby]
searches.each do |search|
ie.text_field(:name, q).set(search)
ie.button(:name, btnG).click
end
--
Zeljko Filipin
zeljkofilipin.com
On 11/27/06, san [EMAIL PROTECTED] wrote:
Will It Work?
webs = ie.links
webs.each do |web|
puts web
end
Try it and you will see if it works. :)
Can You Tell Me From Where Can I Get All These Watir Functions...?
Is There Any Good Quality Tutorial?
On 11/27/06, san [EMAIL PROTECTED] wrote:
Ya It Worked... But I can't Open The Links Again by
webs = ie.links
webs.each do |web|
ie.goto(web) # This Line Produces Error... I Also Tried
web.to_s
output.puts(ie.html) # output is a .html file to be opened in w mode
end
If you
On 11/27/06, sikander [EMAIL PROTECTED] wrote:
could u expalin me how to do that in detail?
--
*From:* [EMAIL PROTECTED]jackei**
I suggest that you can use CSV or XML
I suggest that you use yaml (http://yaml4r.sourceforge.net/cookbook/). I use
it.
--
Zeljko
This does not work?
$ie.link(:id, ID_OPEN_POPUP1).fire_event(onclick)
--
Zeljko Filipin
zeljkofilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
You can redirect output of your script to file really easy. Go to command
prompt, and write
test.rb test.txt
That will execute your test.rb script and write output to test.txt file.
A little bit complicated is writing to file from ruby.
file = File.open(test.txt, w)
file.puts some text
On 11/27/06, Charley Baker [EMAIL PROTECTED] wrote:
I just ran through the same steps you list below and didn't have a
problem. The use of autoit for controlling the window state of ie
hasn't changed for quite some time and should be installed as part of
your install. Is it working with
On 11/29/06, vijay [EMAIL PROTECTED] wrote:
Is there some place where one can find the list of commands that are
available in Watir.
http://wtr.rubyforge.org/rdoc/index.html
But I think it is for 1.4.1.
--
Zeljko Filipin
zeljkofilipin.com
___
Mark,
Thanks a lot. startClicker works double faster than file_field.set.
Paul,
I will try autoit tomorrow, and see if it is even faster.
--
Zeljko Filipin
zeljkofilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
On 11/29/06, Željko Filipin [EMAIL PROTECTED] wrote:
startClicker works double faster than file_field.set.
Iit is now even faster (for three seconds) after I removed line with sleep
3 (when I noticed that comment says that it can be removed).
file_field.set needed approximately 10,6 seconds
On 12/1/06, Dhamodharan [EMAIL PROTECTED] wrote:
i'm getting this error
The above file is in valid
ie.fileField(:name, avatar).set(damu)
Hi Damu,
File is invalid because windows can not find it. Make sure that you provide
full path to file, something like this:
ie.fileField(:name,
Take a look at WATIR User Guide (
http://www.openqa.org/watir/watir_user_guide.html).
--
Zeljko Filipin
zeljkofilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
On 11/30/06, Nathan [EMAIL PROTECTED] wrote:
So I guess I can't test firefox or safari with watir.
Please forgive me if it is already mentioned in this thread (I could not
find it), but there is also SafariWatir (http://safariwatir.rubyforge.org/).
--
Zeljko Filipin
zeljkofilipin.com
On 12/4/06, Fletch [EMAIL PROTECTED] wrote:
Is it possible to return the index of the link?
I have watir 1.5.1.1081 and it is not supported there.
irb(main):005:0 ie.link(:text, link).index
NoMethodError: undefined method `index' for #Watir::Link:0x2dcc6f0
This looks like interesting
In your case, disabled link is not a link with disabled property (a href=
page.htm disabled=disabledlink text/a), it is a table cell (tdcell
text/td).
This will tell you that Step 1. Details is link, not in table cell.
irb(main):025:0 ie.link(:text, Step 1. Details).exists?
= true
On 11/29/06, Charley Baker [EMAIL PROTECTED] wrote:
The errors from core_tests.rb should be fixed now. The latest xpath
test was getting in the way causing spurious errors. I've looked over
the changes and don't see anything inherently that would cause this
problem. I can't reproduce it
On 12/4/06, Jim Colo [EMAIL PROTECTED] wrote:
- Do I need to run gem install watir?
- Should I uninstall all and reinstall Ruby first?
Yes, reinstall ruby and then type gem install watir in command prompt.
--
Zeljko Filipin
zeljkofilipin.com
___
On 12/5/06, vijay [EMAIL PROTECTED] wrote:
Can you guide me on how to install 1127 gem over Ruby 1.82?
Download watir gem to any folder. Open command prompt and go to that folder.
Type
gem install watir
Make sure that gem name is watir-1.5.1.1127.gem (not
watir-1[1].5.1.1127.gem).
--
setup [...] will be called before [...] each test method that is run (from
http://www.ruby-doc.org/stdlib/libdoc/test/unit/rdoc/classes/Test/Unit.html)
There is @ie=Watir::IE.new in setup method and it is called two times,
before test_search and test_login. That causes two browser windows to
On 12/7/06, Nathan [EMAIL PROTECTED] wrote:
ie.images[0].class
I get:
Watir::Image
Try
ie.images[0].class_name
--
Zeljko Filipin
http://zeljkofilipin.com/2006/12/05/tests-and-how-to-documents-2/
___
Wtr-general mailing list
On 12/14/06, Bret Pettichord [EMAIL PROTECTED] wrote:
Once my test, using this method, is passing, then i start my Crazy OOP
stuff (mostly use simple design patterns, actually).
Would you also post which simple design patterns are you using? I am very
interested to see what others are doing.
On 12/13/06, Bret Pettichord [EMAIL PROTECTED] wrote:
It's unclear from your report whether this is a general problem, or
specific to your environment. In order to properly test this, you need
to uninstall (unregister) AutoIt and then verify Watir.
There is a unit test (send_keys_test.rb) that
On 12/13/06, Bret Pettichord [EMAIL PROTECTED] wrote:
Manually installing autoit should not be required.
I have found the reason why autoit is not installed.
I am usually logged on as limited user, I only switch to administrator when
needed (I have listened too much of Security Now!
If you have link that looks like this
a href=page.htm class=myclasslink/a
you can click it with this
ie.link(:class_name, myclass).click
--
Zeljko Filipin
http://zeljkofilipin.com/
___
Wtr-general mailing list
Wtr-general@rubyforge.org
On 12/20/06, Dave Munns [EMAIL PROTECTED] wrote:
The control left click on a specific object will invoke a frame with a
list of data. No url's involved...
Look at your html source (or send it to us).
You probably should do something like
fire_event(ControlLeftClick)
--
Zeljko Filipin
while true
break unless ie.text.include?(loading)
sleep 1
end
You can replace
ie.text.include?(loading)
with anything that is appropriate, like
ie.checkbox(:id, 1).exists?
--
Zeljko Filipin
zeljkofilipin.com
___
Wtr-general mailing list
On 12/20/06, Bret Pettichord [EMAIL PROTECTED] wrote:
link = $ie.link(:class = 'addtocart', :is_after? = headline)
This would make sense to me (no question mark)
link = $ie.link(:class = 'addtocart', :after = headline)
By convention, methods that answer questions (i.e. Array#empty?
On 12/20/06, liucongying [EMAIL PROTECTED] wrote:
I am a new watirer,I want to know how to install watir-1[1].5.1.1127.gem
I have already install ruby185-21 and watir-1[1].5.0.945.exe, I want
to handle js-popup problem,please help me,thanks
You will find 1.5.1.1127 gem and installation
Vijay,
I have already replied to your question in another thread. This does not
work for you?
This will tell you that Step 1. Details is link, not in table cell.
irb(main):025:0 ie.link(:text, Step 1. Details).exists?
= true
irb(main):026:0 ie.cell(:text, Step 1. Details).exists?
= false
This
Hi Balaji,
Try this
ie.image(:src,/btn_save_continue/).click
--
Zeljko Filipin
zeljkofilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
On 12/20/06, Bret Pettichord [EMAIL PROTECTED] wrote:
Željko Filipin wrote:
while true
break unless ie.text.include?(loading)
sleep 1
end
This is a more concise way of doing the same thing:
while (ie.text.include? 'loading') {sleep 1}
I knew that there had to be a way to do
For
span style=color: Red; visibility: visible;
id=MainLogin_PasswordRequired*/span
you can use
irb(main):015:0 ie.span(:id, MainLogin_Password).html
= SPAN id=MainLogin_PasswordRequired title=\Password is required.\
style=\VISIBILITY: visible; COLOR: red\*/SPAN
irb(main):016:0 ie.span(:id,
On 12/21/06, vijay [EMAIL PROTECTED] wrote:
1. How you came to know that there is a word called cell, which can be
used to check the contents of a table cell. Is that documented
somewhere? If so, can you point me to the link where all these different
types of objects, which can be referred
On 12/19/06, Bret Pettichord [EMAIL PROTECTED] wrote:
Can you manually install AutoIt and then successfully run minmax_test.rb
as a limited user?
ruby 1.8.5 (2006-08-25) [i386-mswin32], ie7, watir-1.5.1.1127
minmax_test.rb works when runned as a limited user without AutoIt installed
(and
Maybe this would help.
http://wiki.openqa.org/display/WTR/Test-Unit+Patch
--
Zeljko Filipin
zeljkofilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
This works for me
ie.file_field(:id, onetidIOFile).set('c:\abc.gif')
ie.file_field(:name,
urn:schemas-microsoft-com:office:office#FileLeafRef).set('c:\abc.gif')
I guess that your problem is that c:\abc.gif is in double qoutes
(c:\abc.gif). Use single quotes and it should work just fine
Is colour defined in html or css?
--
Zeljko Filipin
zeljkofilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
Try
ie.table(:id, 'IDNAME' )[1][5].style.cssText == COLOR: #cc0033;
BACKGROUND-COLOR: #33ffcc
Of course, change [1][5] to match your cell.
--
Zeljko Filipin
zeljkofilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
Please post html of that link.
In the meantime, see http://wiki.openqa.org/display/WTR/FAQ#
FAQ-TriggeringJavaScriptevents
--
Zeljko Filipin
zeljkofilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
On 1/9/07, liucongying [EMAIL PROTECTED] wrote:
When does the next version release?
You can make one for yourself today. See
http://wiki.openqa.org/display/WTR/FAQ#FAQ-devgem
--
Zeljko Filipin
zeljkofilipin.com
___
Wtr-general mailing list
On 1/9/07, Maloy kanti debnath [EMAIL PROTECTED] wrote:
1) how to use assert_equal and for what purpose is it used with a simple
example?
From this list (
http://www.mail-archive.com/wtr-general@rubyforge.org/msg04291.html):
require 'test/unit'
class Foo Test::Unit::TestCase
def
I checked out Watir with TortoiseSVN and build a gem from revision 1142. But
when I built the gem, it had name watir-1.5.1.1141.gem (revision number is
not the same as the number in the gem name). Is that OK, or am I doing
something wrong?
I installed and executed tests while logged in as
On 1/15/07, John Lolis [EMAIL PROTECTED] wrote:
I seem to be having some issues attaching to modal_dialogs. I tried to
register my win32ole but it didn't seem to help. (the dialog popped up and
said it didn't appear to be a valid dll)
Make sure you are logged in as administrator while
On 1/16/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Could you please send me these mails on [EMAIL PROTECTED], as this
current id i.e. [EMAIL PROTECTED] is no longer going to be used by
me.
Hi Manjiri,
You will have to change it yourself at
On 1/16/07, sarita [EMAIL PROTECTED] wrote:
In most web applications during user registration, verification codes
shown as images, are asked to enter.
And this is done exactly to prevent machines from entering verification
code. :)
There is still no way for a computer to recognize what code
On 1/16/07, VIKASH KUMAR [EMAIL PROTECTED] wrote:
Is there is a way to store all the values in some variable, like
day=01/16/2007, month=Jan/2007, year=2007, status=13, value=open.
Hi Vikash,
You already have stored that values to variable, you have named it row. This
is snippet from my irb
On 1/17/07, Bret Pettichord [EMAIL PROTECTED] wrote:
I also know that this was broken in 1.5 until recently, so you must have
been referring to 1.4.1. Correct?
No. I was referring to development gem 1.5.1.1081, the last gem that I could
make FileField#set to work.
I am curious whether the
On 1/18/07, Maloy kanti debnath [EMAIL PROTECTED] wrote:
The AutoIt dll must be correctly registered for this feature to work
properly
AutoIt is not correctly registered at your machine. It happens to me every
time I install watir.
Open a command line, go to folder where AutoItX3.dll is
On 1/18/07, Jason He [EMAIL PROTECTED] wrote:
I tried to use the following method, but it seems does work, these cases
will run almost concurrently.
What do you mean by almost concurrently?
--
Zeljko Filipin
zeljkofilipin.com
___
Wtr-general
Let's simplify a bit.
I will put a list of files in array.
irb(main):017:0 list = [first.rb, second.rb, third.rb]
= [first.rb, second.rb, third.rb]
I want them printed in the order they are in array (first.rb, second.rb,
third.rb)
irb(main):018:0 list.each { |x| puts x }
first.rb
second.rb
On 1/19/07, Naga Harish Kanegolla [EMAIL PROTECTED] wrote:
input id=app_feedback_title name=app_feedback[title] size=30
type=text /
Both of this worked for me.
ie.text_field(:name, app_feedback[title]).set(harish)
ie.text_field(:id, app_feedback_title).set(harish)
You said to watir that
On 1/19/07, Naga Harish Kanegolla [EMAIL PROTECTED] wrote:
so how could i code using selenium
This is watir list. There is selenium forum at
http://forums.openqa.org/forum.jspa?forumID=3
--
Zeljko Filipin
zeljkofilipin.com
___
Wtr-general mailing
On 1/19/07, Naga Harish Kanegolla [EMAIL PROTECTED] wrote:
input id=contract_my_document_title name=contract_my_document[title]
size=30 type=text /
Your code
ie.text_field(:name, contract_my_document[title]).set(harish)
works for me for this html. Maybe it's parent tag is hidden or
On 1/19/07, Naga Harish Kanegolla [EMAIL PROTECTED] wrote:
Hey sorry, I want in watir.. sorry for the mistake..
After I replied I noticed that you have already corrected yourself in
another thread. :)
--
Zeljko Filipin
zeljkofilipin.com
___
If you have html like this
a href=atext/a
a href=btext/a
you can click link with href=b with any of this
ie.link(:href, /b/).click
ie.link(:url, /b/).click
--
Zeljko Filipin
zeljkofilipin.com
Testing is not only what I do for a living. It is also what I do for fun.
On 1/19/07, minal [EMAIL PROTECTED] wrote:
For some strange resons ie.cell(:id, 10TD37).click doesn't work on my
application.
I think you need to have watir 1.5 for that.
--
Zeljko Filipin
zeljkofilipin.com
___
Wtr-general mailing list
On 1/21/07, David Appledore [EMAIL PROTECTED] wrote:
the text entered into text boxes does not fire key events properly in the
IE DOM
Take a look at FAQ, section Triggering JavaScript events
http://wiki.openqa.org/display/WTR/FAQ#FAQ-TriggeringJavaScriptevents
--
Zeljko Filipin
On 1/22/07, Jason He [EMAIL PROTECTED] wrote:
However, it seems that test unit encapsulate some methods could handle
error
You can also handle errors in ruby without test unit. Take a look at
Exceptions,
Catch, and Throw section of Programming Ruby (
On 1/23/07, Jason He [EMAIL PROTECTED] wrote:
Do these test cases are compatible both running in IE and firefox? How
about it to the test cases with/without using test unit?
Should each test cases need to be changed, or just change the browser
name at the control list.
I do not understand
On 1/23/07, Jason He [EMAIL PROTECTED] wrote:
I found that these methods are defined in watir/assertions.rb.
Did I miss anything when use those methods?
Try adding this at the beginning of the script.
require 'watir/assertions'
--
Zeljko Filipin
zeljkofilipin.com
On 1/23/07, sarita [EMAIL PROTECTED] wrote:
There is a read-only text box where date is inserted from a Date picker
thru java script. How to automate this?
What? Selecting date? How do you do it manually?
--
Zeljko Filipin
zeljkofilipin.com
___
Can you post table html?
--
Zeljko Filipin
zeljkofilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
On 1/24/07, Bret Pettichord [EMAIL PROTECTED] wrote:
We'd now like to make Watir consistent and start with 0 everywhere (like
everything else in Ruby) but this would raise compatibility issues. We
welcome your thoughts in this area.
I vote for start with 0 everywhere.
--
Zeljko Filipin
On 1/24/07, sarita [EMAIL PROTECTED] wrote:
An image link is there. when it's clicked, the Date picker appears where
date, month, year are there. When u click on a date, that date is inserted
in the text box immediately the Date picker disappears.
And, where is the problem? What can you do,
Change your method name from default_test to test_default. test/unit thinks
method is a test only when method name starts with test_. No tests were
specified. error means that you do not have any method which name starts
with test_.
--
Zeljko Filipin
zeljkofilipin.com
On 1/25/07, Bret Pettichord [EMAIL PROTECTED] wrote:
Please submit a patch.
And here is explanation how to make a patch:
Patching Code is Easy in Ruby by Bret Pettichord
http://www.io.com/~wazmo/blog/archives/2006_09.html#000241
--
Zeljko Filipin
zeljkofilipin.com
On 1/26/07, Nathan [EMAIL PROTECTED] wrote:
Why does Watir sometimes not open an Internet Explorer window, yet
continues to run tests just fine?
The same tests sometimes run with IE visible, and sometimes IE is hidden?
IE will be hidden if you run your test with -b command line option
On 1/29/07, vijay [EMAIL PROTECTED] wrote:
I do not know what command to use to make Watir output the current system
date and to convert it into the desired format, dd-mon- (22-Jan-2007).
Watir can not do it, but Ruby can.
Time.now.strftime(%d-%b-%Y)
= 29-Jan-2007
For more information,
On 1/29/07, Prema Arya [EMAIL PROTECTED] wrote:
ie.text_field(:xpath , //[EMAIL PROTECTED]'paul']/)
This is so cool.
--
Zeljko Filipin
zeljkofilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
On 1/31/07, Bret Pettichord [EMAIL PROTECTED] wrote:
Thank you very much for the reports.
I love to report bugs. :)
--
Zeljko Filipin
zeljkofilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
On 1/31/07, Bret Pettichord [EMAIL PROTECTED] wrote:
ie.link(:html, /contract_id=227/).click
Once more, this is so cool.
--
Zeljko Filipin
zeljkofilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
On 1/30/07, Naga Harish Kanegolla [EMAIL PROTECTED] wrote:
a href=# onclick=new
Ajax.Request('/data_entry/ajax_add_term/131?contract_id=227',
{asynchronous:true, evalScripts:true}); return false;add a term/a
Can regular expressions be used with xpath? This does not work.
ie.link(:xpath,
On 2/2/07, Prema Arya [EMAIL PROTECTED] wrote:
You can't use regular expression in xpath with XPATH 1.0, you can use it
in XPATH 2.0 and rexml supports only xpath 1.0.
You can use string operations like substring, string before, string after
though.
How this works?
ie.div(:name = 'foo', :index = 2).click
I tried to find in Watir source how it is done, but I could not find it.
Could somebody please point me to the right method? It would make sense to
me if the argument was a hash.
ie.div({:name = 'foo', :index = 2}).click
I would like to
ie.link(:html, /133/).click
or
ie.link(:html, /ajax_add_term\/133/).click
--
Zeljko Filipin
zeljkofilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
This does not work?
ie.link(:html, /133/).click
--
Zeljko Filipin
zeljkofilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
On 2/8/07, John Lolis [EMAIL PROTECTED] wrote:
you missed typed it, type it exactly
ie.link(:html, /ajax_add_term\/133/).click
I think the \ / is allowing the forward slash to be used as a string and
not as a special regex character.
Exactly.
--
Zeljko Filipin
zeljkofilipin.com
Hi Nathan,
Thanks, but now I see I was not clear enough. I did not want how click
method works (but, once more, thanks for your time). I wanted to know how
are this method arguments handled:
(:name = 'foo', :index = 2)
It would make sense to me if it is a hash
({:name = 'foo', :index = 2})
Charley and Bret,
Thank you. If I took a better look at Pickaxe I would save some of your
time. I was trying this (and of course it did not work). If I posted this in
my original post, maybe my mistake would be clearer to you.
div(:name = 'foo', :index = 2)
def div(first, second)
hash =
I was browsing true Watir General forum at OpenQA Forums and I wonder how to
mark Charley's answer as correct. I am logged in (I can edit my posts). I
thought I would see something like mark as correct somewhere, but I can
not find it.
Or is it something that forum administrator does?
--
Zeljko
Log in as administrator. That could help.
--
Zeljko Filipin
zeljkofilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
On 2/9/07, John Lolis [EMAIL PROTECTED] wrote:
Think its too late now though :)
It is. I tried to edit my original post, but there is no option to make it a
message. Thanks for info.
--
Zeljko Filipin
zeljkofilipin.com
___
Wtr-general mailing list
http://www.rubycentral.com/book/rubyworld.html
--
Zeljko Filipin
zeljkofilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
1 - 100 of 276 matches
Mail list logo