HI all,
I am new to Watir and am still in the process of learning (with the
examples in the site: http://wiki.seleniumhq.org/display/WTR/Tutorial).
I am trying to handle a popup (when deleting email without actually
selecting any email for deletion) from the Yahoomail web page. The
popup does not
require 'watir'
set watir_browser=ie
browser = Watir::Browser.new
browser.goto("http://www.hotmail.com";)
--
But keep getting the following error:
-
undefined method `set' for main:Object (NoMethodError)
-
What am I doing wrong? Should I
keep expermimenting.
>
> marekj | Semantic Page Objects Automation
>
> Watirloo: Browser Page Helper
> Frameworkhttp://www.bitbucket.org/marekj/watirloo/
> for IE, Firefox and others?
>
> On Wed, Dec 10, 2008 at 6:45 PM, Margam <[EMAIL PROTECTED]> wrote:
&g
quot;C:\\")
ai.ControlClick("Save As", "", "&Save", "left")
ai.WinWait("Download complete", "", 5)
ai.ControlClick("Download complete", "", "Close")
--
Can someone tell
script, IE is still used. Firefox is not launched.
Am I doing something wrong.
Also for the time being I am doing to just change the default browser
from the script itself (which works fine).
Thank you
Margam
On Dec 11, 9:46 am, John Fitisoff wrote:
> I think the problem is that you are r
'regsvr32' is not a recognized
as an internal or external command, operable program or batch file.
I typed this command from C:\ruby\lib\ruby\gems\1.8\gems
\watir-1.6.2\lib\watir
Can anyone point out what mistake I am doing?
Thank you
Margam
On Nov 13, 11:47 pm, Tony wrote:
> Hi Wesl
is OK), the script works fine with both IE and FF.
Thank you everyone for the all the replies.
Margam
On Dec 12, 11:08 pm, marekj wrote:
> On Thu, Dec 11, 2008 at 6:14 PM, Margam wrote:
>
> > Hi John,
> > So I tried using "require 'watir/browser' " in my
HI Tony,
The problem is in the PC at work. I will try out your suggestion on
Monday and will reply.
Thank you for the suggestion.
Margam
On Dec 12, 8:08 pm, Tony wrote:
> Hi Margam,
>
> Weird that regsvr32 is not found hmm...
> Anyways could try and search for the regsvr32
Hey Tony,
Everything's working fine now.
The "regsvr32" file was located in C:\Windows\system32 folder. I had
copied it to the folder where AutoItX3.dll file is located and
executed the command. Scripts run fine now.
I do NOT get the error anymore.
Thank you for the help.
Marga
quot;)
sleep 1
ai.ControlClick(window_title1, "", "&Yes")
end
$browser.goto("http://abcd.com";)
sleep 2
$browser.link(:text, "zzz.zip").click
sleep 5
save_file("zzz")
--
The popup
Figured this out. The problem was not with the script. It was the
security settings with IE. After setting low security, I was able to
see the download popup.
On Dec 11, 12:28 pm, Margam wrote:
> Hello all,
> I have been trying to write script tohandledownloadfile popups, but
> have no
Hello Everyone,
Can someone help me with this issue please. I need this working very
desperately for my project. Thank you very much.
Margam
On Dec 15, 2:40 pm, Margam wrote:
> Hello Everyone,
> I have been trying to handle File Download pops in FF browser. I had
> posted a similar qu
buttons ("Open with" and "Save File") in the
popup. The default being "Save File" works for me now. But how do I
choose the other option?
Also how to check a check box in the popup.
Thank you very much once again.
Margam
On Dec 17, 2:41 am, al3kc wrote:
> Hi,
>
Hey guys,
Thanks for the input. I will certainly try, as soon as I finish with
my current project. Thanks.
Margam
On Dec 18, 3:56 am, al3kc wrote:
> onhttp://www.autoitscript.com/forum/index.php?showtopic=81915&hl=firefo...
> I have found next code:
>
> Contr
1 for inspection.
Results logged to /Library/Ruby/Gems/1.8/gems/rb-appscript-0.5.1/
gem_make.out
What should I do? Please help, as this is urgent.
Margam
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google G
.
Margam
On Dec 19, 1:02 pm, Alex Collins wrote:
> Have you installed the developer tools? These are available on the OS
> X install CD or you can download them from ADC.
>
> Alex
>
> On 19 Dec 2008, at 19:38, Margam wrote:
>
>
>
> > Hello all,
> > I am trying
Hello,
Everything works fine now.
I had to download and install the Xcode tool.
Then SafariWatir installed fine.
Thank you for the hint.
Margam
On Dec 19, 1:15 pm, Margam wrote:
> Hello,
> I am very new for Mac machines, and this is a loan machine. So I do
> not have any install Cds.
new Safari window popups. This is
just another Safari window, not any JS confirmation windows.
How to close this second safari window?
IS there anything in safariwatir like "Win32ole" and AutoIt to handle
such popups, or send KEYs to close the popup?
PLease help.
Thank yo
n example code itself. This
would save some time for many of the new comers like me.
Thank you very much for Scott and Kohl for providing the codes.
Margam
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Wati
't want to manually enter each
value from the file into each array element.
Is there an easier and better (shorter) way to achieve this?
Please help.
Thank you
Margam
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Hello Bill,
Thank you for your quick reply.
And Thank you once again, as your suggestion works great.
I may have to work on how to deal with invalid lines in the CSV file
in the future. But this works for the moment.
Thank you
Margam
On Jan 8, 3:16 pm, "Bill Agee" wrote:
> T
v")){|row| array << row[1]}
This also get the values in the second column of the file "gmail.csv"
and puts it in an array.
Hope this helps, beginners like me.
Margam
On Jan 8, 3:50 pm, Margam wrote:
> Hello Bill,
> Thank you for your quick reply.
> And Thank you once a
;)) { |row| array << [1][1] }
CSV::Reader.parse(File.open('gmail.csv')) { |row| array << ['r1c1'] }
Can you help me? How should I be specifying the row and columns to be
saved in the array?
Thank you very much.
Margam
On Jan 8, 3:16 pm, "Bill Agee" wrot
following, but did not work:
array=[]
CSV::Reader.parse(File.open('gmail.csv')) { |row| array << [1][1] }
CSV::Reader.parse(File.open('gmail.csv')) { |row| array << ['r1c1'] }
Can anyone help me? How should I be specifying the row and columns to
be
saved in
I would
like to access the values in column 2 using the Key on column 1. I
want to do this, as the CSV file may keep changing.
Also how to access the Hash keys(or use them in the script)?
Kindly provide guidance.
Thank you
Margam
--~--~-~--~~~---~--~~
You received th
ooks like this: "http://gamil.com";
Why does the output has the double quotes?
Hope my questions are clear. Thank you.
Margam
On Jan 13, 3:58 pm, Margam wrote:
> Hello All,
> I have been recently learning to use both the CSV module and the
> FasterCSV gem to create an array f
Sorry for asking Ruby questions in Watir group. But figured, somebody
would be able to help me.
Thanks once again
On Jan 13, 5:19 pm, Margam wrote:
> Follow Up
> Hello All,
> After googling for some time, I found an easy way to get the data into
> an Hash. Thanks to
ses, only the
"failmessage" is output. The "passmessage" is never output.
The reason I want to use "verify" instead of a simple
"$ie.text.inclue?" is, so that not only the failmessage is output but
also a failure is raised.
Hope
much.
Margam
--~--~-~--~~~---~--~~
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 gu
Hello Richard,
When I typed "path" from a command prompt, the PATH did include
C:\WINDOWS\system32
What else can I try?
Thank you.
Margam
On Fri, Dec 12, 2008 at 5:15 PM, Richard Lawrence wrote:
>
> If you type path at the command prompt, does the result include
>
Hi Alister,
Thank you for the update. In future I will follow your instructions.
Margam
On Tue, Jan 6, 2009 at 10:20 PM, Alister Scott wrote:
>
> Hi Margam
> I have updated and uploaded example_logger1.rb to the wiki:
> http://wiki.openqa.org/display/WTR/Example+Logging
> In the
.
Margam
On Tue, Jan 13, 2009 at 12:32 PM, Bill Agee wrote:
>
> Hey,
>
> One way to do this is to use a counter while iterating over the rows:
>
> require 'csv'
> array = []
> row_count = 0
> CSV::Reader.parse(File.open('foo.csv')) do |row|
> row
Hi Alex,
Thank you very much for the explanation.
Margam
On Tue, Jan 13, 2009 at 11:39 PM, Alex Collins wrote:
>
> My apologies - knocked send whilst getting onto the train.
>
> In this case, you are using the CSV modules to load strings as key/
> value pairs into a hash. Th
Hi Tiffany,
Thank you for the quick reply. This definitely helps me.
So if I understand this correctly, the verify() method always has the
failmessage as the default message. Is my understanding correct?
Thank you.
Margam
On Tue, Jan 27, 2009 at 12:18 PM, Tiffany Fodor wrote:
>
> Hi
Thank you.
Margam
On Tue, Jan 27, 2009 at 12:48 PM, Tiffany Fodor wrote:
>
> Yep, you've got it right.
>
> In it's default form, you can't specify a success message for the
> verify method. If you really needed to, however, you could extend the
> method to do
35 matches
Mail list logo