Hi, Bret,
I would like to ask you a question.
Watir has been a popular web automation testing tool now, so many companies
and testers have benefited from it, in fact, they benefited from your share
and creativity.
What's your next step for it? Improve the stable, recommend it more?
Some people said
Here is what I came up with:
require 'watir'
$ie = Watir::IE.attach(:title, /Express/)
$ie.speed = :zippy
def record(index)
# This defines one record
num = index * 3
$ie.form(:id, "aspnetForm").table(:id, "resultSet").row(:index, "#
{num.to_s}")
end
def company_name(row)
# this grabs th
** Note: I apologize in advance...this is rather lengthy. **
Hello all,
OK, I was presented with quite a challenge (at least for me). I have
a table that contains a column that might or might not have a
hyperlink. I'm supposed to find and click the second instance of that
link.
I came up with
isn't the same as .
Take a look at these pages:
http://www.w3schools.com/tags/tag_button.asp
http://www.w3schools.com/tags/tag_input.asp
So, the watir button method isn't recognizing .
Hope that helps.
On Apr 24, 4:29 am, TCBlues wrote:
> Sorry I did a mistake... all I get is button1, butt
bobwashing...@hotmail.com wrote:
> I thought about this some a little more and I think I get what you are
> saying. However I need a way to get at the browser window before I
> can capture the url. Is there a way for Watir to give me a list of
> all browser sessions current open. Then couldn't
Jarmo Pertman wrote:
> Okay, back to the original problem. I code similar to this:
>
> if $browser.text_field(:id, "blah").exists?
>do something with text field
> elsif $browser.select_list(:id, "blah").exists?
>do something with select list
> else
>raise "blah not found"
> end
>
> thi
Some notes on my original vision behind Watir:
http://www.io.com/~wazmo/blog/archives/2009_04.html#000293
I'm thinking of writing more about this. If you would like to read more,
please send questions. You can post them on the blog, or here, or send
me private emails or twitter replies. Whateve
I thought about this some a little more and I think I get what you are
saying. However I need a way to get at the browser window before I
can capture the url. Is there a way for Watir to give me a list of
all browser sessions current open. Then couldn't I do something like
browser.url to get th
It might also be time to make this a more formal project. Put it on
github or something. Just a thought.
Bret
JArkelen wrote:
> I'm the author of the HTML report example. I have no problem with
> changes, but if you want to describe extra functionality, maybe it is
> good to add it at the end o
Maybe we need to make some distinctions here.
I view Watir as a 'browser driver' in the sense that it talks to the
DocumentObjectModel of a browser and doesn't care how the browser
deals with http protocol (well, we can maybe peek a bit). Watir API is
talking to the final composition of html, js,
I'm not sure if this helps as I am still learning myself. Using
ie.show_frames gives this output:
there are 54 frames
frame index: 1 name: frmEnginePrint
frame index: 2 name: frmEngineTop
frame index: 3 name: frmEngineLeft
frame index: 4 name: frmDashboard
frame index: 5 name: frmR12
frame
If I want to include an 'if' clause, then how should I do that; with/
without the assertion(s)?
I'm trying to automate the creation of a new instance of a browser
(with a target url), if none is found; so I would like it to catch as
an exception and then exit, without throwing an exception that t
Le vendredi 24 avril de l'année 2009, vers 07 heures et 08 minutes, Gar Morley
écrivait:
[...]
>
> Hope that helps.
Sure! Thank you very much.
--
Alexandre Delanoë
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Hi Alexandre,
The .exists? method is used to find out if an element exists on the
page, so that is the correct method to use in your code example.
In the Ruby world, the .include? method is used to to find out if the
object includes another object. For example, both of the following
would return
On Fri, Apr 24, 2009 at 14:53, Vishal wrote:
> Do you have any other suggestions?
Ask your developer(s) are they sure that onclick is fired. If the answer is
yes, show them how your code can open tab when firing that event.
Željko
--~--~-~--~~~---~--~~
You receiv
Yes, I too had tried Onclick event. Its not working.
Do you have any other suggestions?
On Apr 24, 5:41 pm, Željko Filipin
wrote:
> On Fri, Apr 24, 2009 at 14:39, Vishal wrote:
> > Onclick event is fired.
>
> I tried to fire onclick event on one tab, and it did not open tab.
>
> Željko
--~--~--
On Fri, Apr 24, 2009 at 14:39, Vishal wrote:
> Onclick event is fired.
I tried to fire onclick event on one tab, and it did not open tab.
Željko
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Watir General" group
ok: it works with .exists?
(i do not know why)
--
Alexandre Delanoë
--~--~-~--~~~---~--~~
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
Onclick event is fired.
On Apr 24, 5:34 pm, Željko Filipin
wrote:
> On Fri, Apr 24, 2009 at 14:26, Vishal wrote:
> > I asked the Developers they are saying when we click on Tabs ,
> > javascript from Extjs is called and tab contents are displayed.
>
> You need more detailed answer. Which javasc
On Fri, Apr 24, 2009 at 14:26, Vishal wrote:
> I asked the Developers they are saying when we click on Tabs ,
> javascript from Extjs is called and tab contents are displayed.
You need more detailed answer. Which javascript event is fired when tab is
clicked? Answer could be something like: oncli
I asked the Developers they are saying when we click on Tabs ,
javascript from Extjs is called and tab contents are displayed.
On Apr 24, 4:12 pm, Željko Filipin
wrote:
> On Fri, Apr 24, 2009 at 13:04, Vishal wrote:
> >http://extjs.com/deploy/dev/examples/tabs/tabs.html
>
> Now you are talking.
Sorry I did a mistake... all I get is button1, button2, button3 and
not button4 :)
--~--~-~--~~~---~--~~
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@googlegrou
Hæ,
I'm trying to get all the tags in a html page using the
buttons method but all I get are the
buttonFour
...
the ruby code:
require 'watir'
ie=Watir::IE.new
ie.goto("file:///C:/myPage.htm")
ie.buttons.each{|myB|
puts myB.id
}
all I get is: buttonOne, buttonTwo, buttonThree but not butt
Oh, you're right! I forgot to think anything about sessions and
cookies :/ In that way it should be indeed easier just to scan page
html...
But anyway, I don't see why such things are needed. Why won't you just
create normal tests, which assert multiple things and they would fail
for sure if page
Hello,
i have such code:
while ff.image(:id, "suivante").include?
ff.image(:id, "suivante").click
end
But at the last page, even if image(:id. "suivante") does not exist in
the current page ff wants to clik on it.. what is wrong?
Error message:
/var/lib/gems/1.8/gems/firewatir-1.6.2/lib/fire
On Fri, Apr 24, 2009 at 13:04, Vishal wrote:
> http://extjs.com/deploy/dev/examples/tabs/tabs.html
Now you are talking. :)
I have played a bit with the page, but clicking link via click or firing
onclick event does not open tab.
Did you ask a developer which event should be fired?
Željko
--~-
I tried that too, Its not clicking.
Our application has implemented the Tab feature from below link.
http://extjs.com/deploy/dev/examples/tabs/tabs.html
On Apr 24, 3:49 pm, Željko Filipin
wrote:
> On Fri, Apr 24, 2009 at 12:47, Vishal wrote:
> > $ie.span(:text ,"Documents").span(:index,1).fi
On Fri, Apr 24, 2009 at 12:50, Alexander Fedtke <
alexander.fed...@googlemail.com> wrote:
> Any idea what i can check to make it run?
Check if the same page is displayed at your machine. Frame or text field
name or id could be different.
Željko
--~--~-~--~~~---~--~---
I am also using IE 7 like my collegue where the script is aswell working.
the tutorial google script runs at booth desks
---
# the Watir controller
require "watir"
# set a variable
test_site = "http://www.google.com";
# open the IE browser
ie = Watir::IE.new
# print some comme
On Fri, Apr 24, 2009 at 12:47, Vishal wrote:
> $ie.span(:text ,"Documents").span(:index,1).fire_event('onMouseDown')
Try this:
$ie.span(:text ,"Documents").span(:index,1).click
Did you ask a developer which event should be fired? That is usually the
quickest way to find it out.
Željko
--~--~-
I tried
i)
$ie.span(:text ,"Documents").span(:index,1).fire_event('onMouseDown')
The control is focusing on The tab but its not clicking.
On Apr 24, 3:36 pm, Željko Filipin
wrote:
> On Fri, Apr 24, 2009 at 12:32, Vishal wrote:
> > Please let me know how to click on these tabs
>
> What have yo
On Fri, Apr 24, 2009 at 12:32, Vishal wrote:
> Please let me know how to click on these tabs
What have you tried so far?
Željko
--
http://watirpodcast.com/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Watir Gen
My application has 5 tabs. It is initially focused on one tab, i am
unable to access the other Tabs.
Below is the IE Development bar Details
http://levi-
carylab02.managementdynamics.com/bp/wo/a5893d0d-6c1d-4b0b-
b759-09d71f80abf2/2.page.
1.Results148.3.layout1.selectAllCheckboxImage1x0x0x0x15x
Hello,
i have such code:
while ff.image(:id, "suivante").include?
ff.image(:id, "suivante").click
end
But at the last page, even if image(:id. "suivante") does not exist in
the current page ff wants to clik on it.. what is wrong?
Error message:
/var/lib/gems/1.8/gems/firewatir-1.6.2/lib/fire
Sorry, by mistakenly i pressed the send button. i describe again
require 'watir/ie'
require 'watir/testcase'
require 'watir/cookiemanager'
require 'watir\contrib\enabled_popup'
require 'watir/winClicker'
require 'time'
require 'win32/clipboard'
include Win32
$sys_date = Time.now.strftim
And what is the problem?
Željko
--
http://watirpodcast.com/
--~--~-~--~~~---~--~~
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, p
Hi all,
See below the structure of my script .
require 'watir/ie'
require 'watir/testcase'
require 'watir/cookiemanager'
require 'watir\contrib\enabled_popup'
require 'watir/winClicker'
require 'time'
require 'win32/clipboard'
include Win32
$sys_date = Time.now.strftime("%d-%b-%Y")
Okay, back to the original problem. I code similar to this:
if $browser.text_field(:id, "blah").exists?
do something with text field
elsif $browser.select_list(:id, "blah").exists?
do something with select list
else
raise "blah not found"
end
this code is in a method and it will be call
Thanks for the suggestions faejon, I'll try these things and let you
know how I go (long weekend where I am, so Tuesday will be the next
working day for me!)
Angrez - Yep, I have sudo/admin rights and can start firefox with
sudo.
On Apr 24, 4:08 pm, Angrez Singh wrote:
> I think jssh is not ins
Hi there,
I have a Dojo select widget with the HTML like;
and when i type in something (say letter "T"), i should be able to select
from the list that appears like this
T MATHI
T BABU
If i have to select the first or the second option, How should i be doing it
in watir?
I have tried firin
On Fri, Apr 24, 2009 at 08:07, catepillar wrote:
> So I really dont know where to begin
You can start there:
http://wiki.openqa.org/display/WTR/Quick+Start
http://wiki.openqa.org/display/WTR/Tutorial
>
> http://knockout.mappdev.com/img/loots/coin.gif"/>
>
Try one of these:
browser.span(:cla
41 matches
Mail list logo