Hi,
I have just started learning Watir.
Please let me know what is wrong
require 'test/unit'
require "watir"
require 'watir/testcase'
require 'watir/watir_simple'
class Login < Watir::TestCase
def test_login
ie=Watir::Browser.new
s = Watir::Simple
ie.goto("google.com")
Hi Tiffany,
Thanks for the reply.
I have modified my code
require 'test/unit'
require "watir"
require 'watir/testcase'
require 'watir/watir_simple'
include Watir::Simple
class Login < Watir::TestCase
def test_login
ie=Watir::IE.new
ie.goto("SOME LINK")
ie.link(:href,
Hi Zeljko,
Thanks for the reply.
I'll start using Regular watir
But incase if anyone wanted to use .. i got a SOLUTION
Solution 1:Better one
I just added this setter method in this file (C:\Ruby\lib\ruby\gems
\1.8\gems\watir-1.6.2\lib\watir\watir_simple)
def assignBrowser(brow
Hi,
I am executing my Watir Scripts using SciTE tool.I was using Unit Test
framework
I recently came to know about "Rspec" framework
But i can execute only in cmd prompt
for e.g
C:\>spec test.rb --format specdoc
But i want to Run the Script using Rspec in SciTE.
Please help me how to r
Hi,
Please specify what changes should be done to use Rspec Framework
require 'rubygems'
require 'watir'
require 'spec'
require 'watir/container'
include Watir::Container
$email="www.gmail.com"
$username="username"
$password="password"
describe 'Navigating to Gmail Login Screen' do
before :al
Hi Zeljko,
My OS is Windows Xp.
The code you mentioned is running fine.
But I wanted to Use Rspec.
So i modified my Old Code and also installed new gem "safariwatir"
which made my code work.
I have added the OUTPUT also.
I am getting "PENDING" which i want to implement
Please tell me how to impl
Hi ,
Thanks for the reply.
I know SafariWatir will not work in Windows.
When I didn't had safariwatir installed, i was getting error similar
to this . No such file to Load -- "safariwatir"
I didn't know what was the root cause . So had to install Safari
Watir.
--~--~-~--~~-
Hi,
I am working in Windows Xp.
Ruby - 1.3.5
Watir - 1.6.2
I am unable to click Sign out link in Gmail
Added My code and Output in http://gist.github.com/218175
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Wa
Hi karim,
Thanks for the reply.
Yes Sign out is a link
I have tried it before which didn't work.(Will get the same error)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Watir General" group.
To post to this gro
Hi karim,
I found out the mistake.
Actually Sign Out is under a frame.
This will work
ie.frame(:index,4).link(:id,":qk").click ( or even with :name it
will work)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"
No problem... :)
--~--~-~--~~~---~--~~
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 read the following guidelines:
http:/
Thanks.
"do" was missing after "Enter Username"
On Oct 23, 7:45 pm, Bret Pettichord wrote:
> abhisheksreepal wrote:
> > include Watir::Container
>
> Don't do this.
--~--~-~--~~~---~--~~
You received this message because
Hi,
I have just started working with real time application.I am facing
some problems.
Issue 1: Unable to Click Buttons
I have observed that there are two buttons.
Button1:
class: 'normalbutton'
href: 'http://192.168.135.75:8080/edelweiss/content/login.jsf'
Button2:
class:
Hi,
Did Anyone come to know about this problem.
--~--~-~--~~~---~--~~
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 read t
Thanks for the reply Ethan.
I tried this
puts ie.buttons.length
But it returned '0'
This is the reference link.
http://www.edelbullion.com/edelweiss/content/index.jsf
Any Suggestion how to go forward.
--~--~-~--~~~---~--~~
You received this message because you ar
Hi Paul,
I am sorry. I should have added these comments.
Just Navigate to Login screen.(By clicking Login link on top right
corner)
Please examine these two fields
Submit and Reset.
(I couldn't give you this link(link to Login Screen) since link
contains session id which keeps on changing)
(Somet
I am sorry. I was just going by name class='normalbutton'
But Any solution to access these fields.
and Also To access menu like 'Home','MyAccount' etc.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Watir General"
Hi Ethan,
I have tried using link method.
(But Actual Problem is there are more links which have same
attributes.)
For e.g.
Verify for 'Home',My Account','Trade,'Charts' etc.
class: mytext
href: http://www.edelbullion.com/edelweiss/content/index.jsf#
The only attribute which distinguish be
Thanks Zeljko,
With xpath, I could easily detect 'Reset' Button' .Here I am using
"@href"
ie.link(:xpath,"//a...@href='login.jsf']/").click
#Click Reset Button
But for The Buttons Submit,Menu, I am using "onclick"(onclick value
for Submit which is unique for Submit--Verified with source
Hi Zeljko,
It is not working.
" Unable to locate element, using :html,
"j_id75" (Watir::Exception::UnknownObjectException)"
Please correct me If i am wrong
Since onclick is an event, xpath might not work
(I think only attributes like href will work with xpath)
Zeljko,
Can I use Regular Express
Thanks Ethan.
I have tried many things but still unable to click
--~--~-~--~~~---~--~~
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 posti
Hi,
I am using Watir in the following environment
Environment:
ruby 1.8.6 (2010-02-04 patchlevel 398) [i386-mingw32]
Windows xp
watir 1.6.5
Scenario:
1. Login to gmail
2. Goto spam.
3. Click on "Delete all spam messages now"
I am getting following error message
Ruby186/lib/ruby/gems/1.8/gems/w
Hi Zelkjko,
It was one of the task for me and had taken this as a challenge :)
--
Before posting, please read http://watir.com/support. In short: search before
you ask, be nice.
You received this message because you are subscribed to
http://groups.google.com/group/watir-general
To post: watir
23 matches
Mail list logo