Hi, This Is Sanju From India, I'm Brand New To Watir.
I'm Trying To Log In On www.calcuttatelephones.com. I Can Input Data In User ID
Passward By
ie.text_field(:name, userid1).set(My User name)
ie.text_field(:name, userpass).set(My Password)
But Can't Click On [b]Login[/b] Button using
Yes It Worked Thanks Georg. But I Want To Know Was It A Regular Expression
Match?
As Far As I Know It Was Just A Image With that Name.
-
Posted via Jive Forums
@ Zeljko : That Also Worked... Thanks For The Help
-
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=5425messageID=15122#15122
___
Wtr-general mailing list
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?
-
Posted via Jive Forums
@ 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.e When IE Will
Open The Page,I'll Be Already Logged In...
-
Posted via Jive Forums
Look At This Code Please...
[i]ie = Watir::IE.new
ie.goto('http://www.something.com')
ie.text_field(:name, userid1).set(.)
ie.text_field(:name, userpass).set(.)
ie.image(:src, /login/).click[/i]
Now Obviously After The Click A Page Opens. My Question Is, Is It Possible To
Save
Thanks [b]Zeljko[/b]
But How Can I Save All These Links In An Array Of Strings?
Will It Work?
webs = ie.links
webs.each do |web|
puts web
end
Can You Tell Me From Where Can I Get All These Watir Functions...?
Is There Any Good Quality Tutorial?
lol lol :)
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
In Fact I Wanna Save All The Linked html
Look At This Simple code
[i]require 'watir'
ie = Watir::IE.new
ie.goto('http://pro.edgar-online.com')[/i]
It Throws Exception In The Goto Line As :
[i]W, [28-Nov-2006 16:24:40#1068] WARN -- : frame error in waitdocument
OLE error code:80070005 in Unknown
Access is denied.
Basically When I Click On A Link A PopUp Appears With Some New Links... I Want
To Click On One Of Them...
But... The Very Third Line Of...
[i]require 'rubygems'
require 'watir'
require 'watir/contrib/enabled_popup' [/i]
Throws Error
I'm Using 1.4.1
-
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=5510messageID=15597#15597
___
Wtr-general mailing list
Wtr-general@rubyforge.org
Ya... Of Course Its Useful, But I Don't Need To Click On Any Button, But On
Other Page Links That Lies On The Popup Page After Clicking One Of The Links
On The Pop Up It Will Vanish The Clicked Link Will Be Opened In The Main
Window. How Can I?
I Tried This
ie = Watir::IE.start('http://www.surgeongeneral.gov/tobacco/smconsumr.pdf')
But Adobe Reader v8 Pops Up And Says You Can't View PDF File In A web Browser
or Something Like That.
So Is There Any Solution To Open These Links Save The PDF?
Well I Don't Know How To Access Cookies In Watir, Searched A Lot But No
Result... Can Someone Help Me With Some Codes To Access Fetch Informations
Within Cookies, Such As The URL, Name etc Of The Cookie... Is There Any Kind Of
Tutorial?
Ops My Mistake... Adobe Was Not Properly Installed...Sorry. :)
-
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=5633messageID=15715#15715
___
Wtr-general
Suppose I want To Do...
[i]require 'watir'
ie = Watir::IE.start('http://pro.edgar-online.com/')
... etc etc..
ie.close[/i]
But If The Very First Page Or In Between The Process Any Page Doesn't Open In
10-20 Seconds Due To IE Problem(Crash), Then I Want To Retry It...
So Is There Any
Sorry, I Don't Understand Properly... How Do I Put an assertion? I'm Almost New
To Watir.. Can You Please Explain More, May Be With A Few Line Of Codes...
Thank You For Your Response...
-
Posted via Jive Forums
Well Solved The 1st One By A Counter :)
-
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=5739messageID=16105#16105
___
Wtr-general mailing list
I Want To Fill A Text Box In IE By Watir... But As Watir Writes A Letter At A
Time, Its Taking A Long Time To Fill The Box If I Have A Long String In Hand...
So My Question Is, Is There Any Other Way To Fill The Box At A Time With The
Long String,Insteed Of Writing The String Per Letter At A
Thanks For The Help... angrez ... Its Working Now... Thanks.
-
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=5920messageID=16563#16563
___
Wtr-general mailing list
Hi Everybody, I Want To Upload An Image On A Site...
The Html Code Of The Palce Of Giving Name The Browse Button Is Here:
[i]INPUT ID=onetidIOFile TABINDEX=1 TYPE=FILE size=56
NAME=urn:schemas-microsoft-com:office:office#FileLeafRef VALUE=
title=Name /[/i]
As Its A Field Of Type File, Not A
[i]ie.file_field(:name,
urn:schemas-microsoft-com:office:office#FileLeafRef).set(c:\abc.gif)[\i]
is not working... :(
-
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=5946messageID=16642#16642
require 'watir'
include Watir
ie = IE.new
ie.goto('www.rapidshare.com')
ie.file_field(:name,filecontent).set('c:\\123.xls')
I Don't Know Why Its Not Working...? The Programs Goes To Rapidshare Exits
Normally No warnings Or Anything Like Autoit Is Not Registered Or Something
Else, But
And Its Giving The Following Error With watir-1.5.1.1158:
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1158/./watir.rb:1830:in
`method_missing': document (WIN32OLERuntimeError)
OLE error code:80070005 in Unknown
Access is denied.
HRESULT error code:0x80020009
Exception
Hi Everybody,
Heres The HTML...
body
table
..
/table
table
trtd
table
tr
td
...
/td
Thanks... zeljko
Yes Now I Can Find All The Frames...
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
Hi People..
Heres The Code:
tr td height=15/td/tr
tr align=left
td align=left colspan=2 valign=bottom
input border=0 alt=Search src=../images/search_top.gif
name=CTL_SUBMIT type=image
a href=FilingsSearch.aspimg border=0 alt=Clear
Hi People...
I Need To Add A Cookie From A Site That I Accessed Through Watir To A
WWW::Mechanize Agent...
Is There Any Way To Do It, Or Will It Be Possible To Be Really Authenticated In
The Site Then By Mechanize Agent..
e.g If I Say If I Login In Yahoo By Watir And Then Try To Access My
Hi Angrez, Thanks.. That Worked... Don't Know How Did I Missed That Out :P
Thanks... :)
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
Hi Everybody...
Here's The Sample html Code...
img src=/images/icons/pdf_small.gif Company A
etc... etc.
img src=/images/icons/pdf_small.gif Company B
etc... etc...
img src=/images/icons/pdf_small.gif Company C
Now If I Write[i] ie.image(:src, /pdf_small/i).click [/i]. It Clicks On The
Thanks zeljko...
Let Me Try It...
for $i in 1 .. 3
ie.image(:src = /pdf_small/i, :index = #{$i}).click
sleep 10
etc.. etc...
ie.back
end
Will Let You Know If It Works Or Not...
Hopefully It Will :)
___
Wtr-general mailing list
Thanks For The Info zeljko...
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
Hi Everybody...
I Just Tried
ie.table(:index, 1).row(:index, 7).exists?
or
ie.table(:index, 1)[7].exists?
But Nothing Works...
here's The html
table
tr1/tr
tr2/tr
tr3/tr
tr4/tr
tr5/tr
/table
Or Suppose I Have Nested Tables...
table width=600 border=0 cellpadding=0 cellspacing=0
Thanks kumari... It Really Helped Me Out...
But I just Copied It.. :P Can You Pls Explain The Function A little Bit More...
Thanks A Lot... :)
And By The Way Is There Any Way To Check If A Row Inside A Table Exists Or
Not... ?
___
Wtr-general
I searched Archives Did This To Download Files.. But its Now Working...
Can You Pls Help Me Out wheres the Problem... The Save Button Is Not Getting
Clicked...
[code]require 'win32ole'
require 'watir'
include Watir
ie = IE.new
ie.goto('http://www.mozilla.com/en-US/firefox/all.html')
May be This ...
http://rubygarden.org/Ruby/page/show/ScriptingExcel
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
This May Help...
http://rubygarden.org/Ruby/page/show/ScriptingExcel
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
37 matches
Mail list logo