Hi Vishavdeep,
I got my problem solved.yes my app does not have the code to open in new
window.
Actually i totaly misunderstood the attach method.
Now got the concept and problem is solved
Thanks a lot for notifying me.
On Wed, Dec 1, 2010 at 1:20 PM, Sharma Vishav wrote:
> Hi Amit,
>
> does you
Hi Amit,
does your application code has code to open a new window when you click on
the link. e.g. use target attribute of href tag.
When you click link manually do you get a new window opened ? why do you
want to open a new window from your watir script ?
cheers
Vishavdeep
On Tue, Nov 30, 201
Hi,
This is my code:
require 'rubygems'
require 'firewatir'
Watir::Browser.default = 'firefox'
Browser = Watir::Browser.new
Browser.goto("http://localhost:3000/users";) This goes to the
application
B = Browser.title.each { |d| puts d.to_s } here i am checking if
that page(above) con
On Tue, Nov 30, 2010 at 7:24 AM, Amit Kulkarni
wrote:
> Users: new
> Users: index on the top
> Browser.attach(:title, '/Users: new/')
I am now completely confused what is the title of the page that you want to
attach to. One of these could work:
Browser.attach(:title => "Users: new/)
Browse
Hi,
Currently i am using FireWatir on Linux.So i am just thinking is there any
problem in the code running on Linux and running it on windows.
On Tue, Nov 30, 2010 at 11:54 AM, Amit Kulkarni
wrote:
> Hi,
> The page which is going to open has the following in the title tag.
>
> Users: new
>
> I ch
Hi,
The page which is going to open has the following in the title tag.
Users: new
I changed the title tag which is currently present on the page from where i
am going to click.
So following is displayed under title tag:
Users: index on the top
AND
http://localhost:3000/users/new>"
titl
This line does not care what is on the current page:
Browser.attach(:title, '/test123/')
it cares what is on the page that will be opened.
So, open the page that will open after clicking the link manually, and take
a look what it inside it's "title" tag (in header).
Željko
--
Before posting,
Hi,
Thanks for the reply.
I checked page code and this is what is inside the title tag
http://localhost:3000/users/new>"
title="test123">New user
This is also what i have written in the code.
On Mon, Nov 29, 2010 at 9:49 PM, Željko Filipin <
zeljko.fili...@wa-research.ch> wrote:
> On Mon, Nov
On Mon, Nov 29, 2010 at 5:13 PM, Amit Kulkarni
wrote:
> Browser.attach(:title, '/test123/')
> New user"
If a link has title "test123", it does not mean that the page that it leads
to will have the same title. Inspect the page code and take a look what is
inside "title" tag.
Željko
--
watir.com -
Hello all,
Can we open a new browser window from the existing one using Firewatir for
Linux and for Watir for windows:
Following are my gem versions:
firewatir (1.6.7, 1.6.5)
Following is my code:
require 'rubygems'
require 'firewatir'
Watir::Browser.default = 'firefox'
Browser = Watir::Browser.n
10 matches
Mail list logo