...
def push_alter_ok
autoit=win32ole.new('autoitx3.control')
autoit.winwait Microsoft Internet Explorer,
autoir.send({enter})
end
..
why I add the code in my script,it could not useful?
thanks.
--~--~-~--~~~---~--~~
You received this message because you are
Hi There -
I would like to know
1.How to install common watir?
2. Sample code
3. Common watir code can be used for all the OS (or) only on IE FF
Browsers?
Note: I have got experience in working of Watir Fire Watir
Thank you.
- Mary :)
--~--~-~--~~~---~--~~
Install it with 'gem install commonwatir'. I think commonwatir has
common methods used by watir, firewatir and safariwatir, so you don't
need/can't run commonwatir itself.
Cheers,
John
On May 20, 10:15 am, Mary Subaidha marysubai...@gmail.com wrote:
Hi There -
I would like to know
1.How to
On Wed, May 20, 2009 at 10:15 AM, Mary Subaidha marysubai...@gmail.com
wrote:
1.How to install common watir?
commonwatir is common code used by Watir and FireWatir (from the source).
If you install Watir or FireWatir, you will have it installed.
Just install Watir or FireWatir and you should be
On Wed, May 20, 2009 at 10:55 AM, Mary Subaidha marysubai...@gmail.com
wrote:
May I have some sample scripts for common watir.
There is no such thing. Commonwatir is just the code that Watir and
FireWatir share. Use Watir or FireWatir. If you need help with Watir, follow
the links I have sent in
HI Siva,
My script is working fine.
Main problem in the scripts was, all the objects are in the IFrame.
I used the below command it is working fine.
ie.frame(:id, evaluationsIframe).link(:text, New Evaluation).click
Thanks,
Kamesh
On Wed, May 20, 2009 at 12:18 PM, sHiVa
yep, it works using net/http but could I use watir and net/http
together?
I mean I need to login the user using watir and then get the html with
net/http
is it possible?
thanks.
On May 19, 10:26 am, Željko Filipin zeljko.fili...@wa-research.ch
wrote:
On Mon, May 18, 2009 at 7:19 PM, TCBlues
Hi TCBlues,
As it is an another package in ruby, you can mix up both Watir and net/
http.
Grab all the html content in to a file or string, and perform your
desired operations.
Regards
Siva Phaneendra Krapa
Virtusa
--~--~-~--~~~---~--~~
You received this message
I have been struggling with a section of my script for some time now
where I generate what appears to be a pop up with 2 options for moving
on. Having unsuccessfully tried many different pop up handling
methods I am now a little stuck.
Looking at the html the 'pop up' is referred to as a
But the problem is... I need to login the user first with watir and
then get the html with net/http, is it possible?
Since I think it's impossible to get the real html with watir now I'm
trying to do it using only net/http library.
In my case I need first to login the user onto the webpage and
Hi TCBlues,
This code can help you. Here what i am doing is, using watir i opened
yahoo.com and by passing the current yahoo url to the net/http i am
capturing all the html code as a response for the url
require 'watir'
require 'net/http'
require 'rubygems'
ie=Watir::IE.start('www.yahoo.com')
Thanks for your answer but this is not working in my case.
Since I'm logging the user with watir and I need to get the html with
net/http in the same connection.
Thanks for the try.
On May 20, 4:11 pm, sHiVa krapa.ph...@gmail.com wrote:
Hi TCBlues,
This code can help you. Here what i am doing
I finally found a performance issue and it was in the watir library.
If a page (and dont get me started about it) has 200 plus radio
buttons and your watir script decides to print all the attributes like
so
radios = ie.radios()
for radio in radios
puts radio.name
puts radio.value
end
Then
Thanks for all the replys.
At first I was quite excited then realized they would make additional
calls - the cookies, session, conversation elements would all be a
nightmare. Not to mention that the load balancer may give valid
results sometimes and invalid the next (say if one server is bad).
So you can build a function that takes in both an Integer, String, or
Regex and then matchs it without having to build a case or switch
if (parameter.matches(value))
note parameter could be any of the three types and the correct match
function will apply.
Found a solution
ie.text_field(itemtype,itemname).value=text
works just fine.
Also use the same technique to select options (choice) in a combo
where that value may not already exist
s = ie.select_list(itemtype,itemname)
texts = s.getAllContents
if (texts==[])
16 matches
Mail list logo