[wtr-general] how to call Function argument into another ruby script.

2011-11-21 Thread meaculpa
Consider I have a ruby file called library.rb. In which i defined a
function like this :

def Name(testcase, result)

pdf = PDF::Writer.new
testcase= $testcase
pdf.text $testcase, :font_size = 72, :justification = :center

result= $result
pdf.text $result, :font_size = 72, :justification = :center

end

now i have another ruby file named web.rb which calls thus library.rb.

My Problem is I need to pass these arguments separately.

Means , I need to call Testcase argument firstly and then after many
conditions I need to pass result as Pass or fail.

The Testcase is like I am doing a web automation and the library.rb is
the report part where From the web.rb I need to pass the testcase name
and then at the end I need to pass end result.

Please help me to do this.


-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


[wtr-general] Site Login authentication

2011-10-13 Thread meaculpa
I have to enter a site and when i give the url, the popup comes asking
for the username password.

I tried the methods given in Openqa but none worked.

My sample code is :

Watir.autoit.attach(Windows  Security)
Watir.autoit.Send(usdsdsd)
Watir.autoit.Send('{tab}')
Watir.autoit.Send(sdasd)
Watir.autoit.Send('{enter}')

please help

even above code also didnt work

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


[wtr-general] How can I open googgle chrome using watir in windows 7 64 bit ?

2011-07-15 Thread meaculpa
I need to automate google chrome and safari in windows 7 64 32 bit
and also for windows XP 32 bit. Please guide me wat all things to be
done to run these ?

I have installed WATIR- WEBDRIVER. but it doesnt solve the issue

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


[wtr-general] Re: How can I open googgle chrome using watir in windows 7 64 bit ?

2011-07-15 Thread meaculpa


Even I am not able to install chromewatir

getting error :

ERROR:  Could not find a valid gem 'chromewatir' (= 0) in any
repository
ERROR:  Possible alternatives: firewatir

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


[wtr-general] can't convert NameError into String (TypeError)

2011-03-22 Thread meaculpa
I got error in this pline of code.

r.addtoReport(testReport, 'Test crashed with reason '+$!, 'FAILED',
'Test crashed!')

error was :

rep.rb:40:in `+': can't convert NameError into String (TypeError)
from rep.rb:40:in `rescue in main'
from rep.rb:6:in `main'

I didnt get any idea. Pllz help

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


[wtr-general] Re: How to click a button which is having all the property dynamic ?

2011-03-15 Thread meaculpa
For a MNC, that guy was into QTP, in QTP we can identify it with
rpository.

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


[wtr-general] How to create a file and save it.

2010-06-03 Thread meaculpa
I need to create a text file and save it using watir.

How is it possible. Can anybody help ?

-- 
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-general@googlegroups.com
To unsubscribe: watir-general+unsubscr...@googlegroups.com


[wtr-general] Re: How to create a file and save it.

2010-06-03 Thread meaculpa


Its WATIR specific only. And This is not a blanket request for help.

Everyone in this forum are having experience and they are not just
NOOBS. So they can surely understand what i mean... Also After
googling only I post here...

I believe this group is mainly for helping each other than creating
specific rules !!!

I accept that my question was little.

My actual problem is :

From a webpage I get a Order Id. I want to save that in a notepad. I
googled and didnt find any help.

-- 
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-general@googlegroups.com
To unsubscribe: watir-general+unsubscr...@googlegroups.com


[wtr-general] How to automate ?

2010-06-01 Thread meaculpa
I have a webpage to check which is having 18 different affialiates
means 18 wrappers. So the class name and text of the same object
varies for each wrapper. So how cna I identify the object and reduce
the script repetition.?

-- 
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-general@googlegroups.com
To unsubscribe: watir-general+unsubscr...@googlegroups.com


[wtr-general] Re: How to automate ?

2010-06-01 Thread meaculpa
Like I can say

www.google.com/us

www.google.com/fr


and imagine for Fr and Us, both the class names of search textbox is
different and text too..

so what to do ?

-- 
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-general@googlegroups.com
To unsubscribe: watir-general+unsubscr...@googlegroups.com


[wtr-general] Not able to click Enter using SENDKEY

2010-05-24 Thread meaculpa
Hi All,

I had a search field and I have to do a blank search.

My code is :

require'rubygems'
require 'watir'
require 'win32ole'

$m_link = 'ww1.*.com'
$browser = Watir::IE.start($m_link)
$browser.text_field(:name, keywords).set('')
$browser.send_keys({enter})
$browser.waitForIE

but its not clicking..

error got is

ruby return.rb
C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie.rb:113:in
`initialize': unknown OLE server:
`AutoItX3.Control' (WIN32OLERuntimeError)
HRESULT error code:0x800401f3
  Invalid class string
from C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie.rb:
113:in `new'
from C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie.rb:
113:in `autoit'
from C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb:
425:in `autoit'
from C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb:
433:in `send_keys'
from return.rb:30
Exit code: 1



Please help..

-- 
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-general@googlegroups.com
To unsubscribe: watir-general+unsubscr...@googlegroups.com


[wtr-general] Re: how to copy text from modal window

2008-11-12 Thread meaculpa

The text is

An allotment request with id IND50 has been created


I want to take IND50please helpurgent

--~--~-~--~~~---~--~~
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://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] How to get the system date to my text field.

2008-11-11 Thread meaculpa

Hi All,

I have a text field for enetering datein teh format 12-NOV-2008. So
how can i able to get system date and make it in this format to enter
in textfield.Please help

--~--~-~--~~~---~--~~
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://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] urgent help for table issue

2008-11-05 Thread meaculpa

hi all,

I have a table with some coloumns in it...and i used to take value
from one of the column. and i assigned it to a variable..lets say

a = ie.table(:class,'table1')[2][1].text

some times this table [2][1] wont be present, in tht case i have to do
some other operations...

so can u tell me how to check if [2][1] is present or not ?

urgent help needed..

--~--~-~--~~~---~--~~
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://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---