[wtr-general] Watir-classic execute_script no longer working in IE11

2015-01-16 Thread Jim Evans
Sorry, no. The Windows Update in question breaks a ton of functionality when 
you try to automate IE from out of process. However, the February cumulative 
update should resolve the issue, if the last comment (from a Microsoft 
employee) on the Microsoft Connect report is to be believed.

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[wtr-general] Re: watir-webdriver + protected mode in XP-IE8

2014-11-12 Thread Jim Evans
How to solve it? Set the Protected Mode settings. For the technical reasons why 
the IE driver requires this, see 
http://jimevansmusic.blogspot.com/2012/08/youre-doing-it-wrong-protected-mode-and.html

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [wtr-general] Scripts not working in IE11 browser

2014-07-29 Thread Jim Evans
If you're using the WebDriver implementation of the IE driver with 
watir-webdriver, you should take a look at the WebDriver project's wiki 
page for how to configure IE to properly work with the driver[1]. It has 
been updated to include extra configuration steps for IE11. Note carefully 
the last bullet point in the Required Configuration section[2].

--Jim

[1] https://code.google.com/p/selenium/wiki/InternetExplorerDriver
[2] 
https://code.google.com/p/selenium/wiki/InternetExplorerDriver#Required_Configuration

On Tuesday, July 29, 2014 11:26:54 AM UTC-4, Joe Fl wrote:
>
> Hi Rahul,
>
> I have run into the same problem running with IE11 and have no found a 
> solution.  I did several searches on this issue and did not find an 
> solution.  Sorry I am not answering your question but i wanted to be a part 
> of the thread. 
>
> Joe
>
>
> On Tue, Jul 29, 2014 at 9:27 AM, Rahul Singla  > wrote:
>
>> Hi All,
>>
>> I am new to the watir-webdriver. I am facing an issue where my ruby 
>> scripts are not working in IE browser.
>>
>> I have updated the IEdriver but still that didn't fixed the issue.
>>
>> Also, my scripts launches the IE browser but it gets failed to locate the 
>> element id but same scripts are working fine in Firefox and Chrome browser.
>>
>> So please suggest. Is it like IE browser is not compatible with 
>> Watir-webdriver or it is some other issue.
>>
>> Thanks in advance
>>
>> -- 
>> -- 
>> Before posting, please read http://watir.com/support. In short: search 
>> before you ask, be nice.
>>  
>> watir-...@googlegroups.com 
>> http://groups.google.com/group/watir-general
>> watir-genera...@googlegroups.com 
>>
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "Watir General" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to watir-genera...@googlegroups.com .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[wtr-general] Entering data to text field is taking time in Watir Web driver

2014-04-22 Thread Jim Evans
You haven't provided this information, and I'm not an expert in 
watir-webdriver, so I'm going to have to rely on my psychic debugging powers. 
My psychic powers tell me you're running Internet Explorer 10 or 11, and since 
you're on a 64-bit version of Windows, you assumed you should use the 64-bit 
version of IEDriverServer.exe. That is incorrect. Even if you're on 64-bit 
Windows, and even if you think you're running 64-bit IE, you're not. The 
"content" process is still a 32-bit process. This issue and its root cause are 
discussed in some detail in the Selenium issue tracker[1].

Of course, my psychic powers occasionally fail me, and I do have a bit of a 
cold at the moment so I could be off base. Also, I've no idea if 
watir-webdriver bundles a version of IEDriverServer.exe in the gem. If it does, 
I'd have to assume that the package maintainer has done the right thing 
including the 32-bit executable. 

--Jim

[1] http://code.google.com/p/selenium/issues/detail?id=5116

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[wtr-general] Text Entry is very slow using IE 10+

2014-03-14 Thread Jim Evans
What version of IEDriverServer.exe are you using? More importantly, are you 
using the 64-bit version of the executable? If you are using the 64-bit exe, 
don't. Use the 32-bit exe with IE10+. With IE10+, even on 64-bit Windows, and 
even if you explicitly launch a 64-bit iexplore.exe, the content rendering 
process is still a 32-bit process unless you go to extraordinary lengths to 
make it otherwise. 

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [wtr-general] Can't use = sign in URL.

2013-06-06 Thread Jim Bailey
Neither of those worked. For now I am using this:

b.goto(properties.getUrl.gsub("\n",'') + 'source=' +
properties.getSource.gsub("\n",'') + '&' + 'xyzclubcode=' +
properties.getxyzclubcode.gsub("\n",'') + '&' + 'state=' +
properties.getState.gsub("\n",'') + '&' + 'zipcode=' +
properties.getZipcode.gsub("\n",''))
With some changes to my .rb file.

And a reformatting of the .txt properties file to:

url=http://Foo.Bar.com/Portal/quote?
source=club
xyzclubcode=212
state=VA
zipcode=20109


I'll try to get back to this issue for a better answer.

The links you sent earlier were somewhat helpful but I could not figure out
how to transform the information into usable commands.
I learned the %3D should replace the = sign.


On Thu, Jun 6, 2013 at 6:38 AM, Željko Filipin wrote:

> On Wed, Jun 5, 2013 at 5:52 PM, Jim Bailey  wrote:
>
>> For now, can I forget about the properties file, and have the Watir
>> script put the url directly in the address bar?
>>
>
> Sure, try this:
>
> b.goto(URI.escape "
> http://FooBar.com/Portal/quote?source=club&clubcode=412&state=CA&zipcode=90210<http://foobar.com/Portal/quote?source=club&clubcode=412&state=CA&zipcode=90210>
> ")
>
> or
>
> b.goto "
> http://FooBar.com/Portal/quote?source=club&clubcode=412&state=CA&zipcode=90210<http://foobar.com/Portal/quote?source=club&clubcode=412&state=CA&zipcode=90210>
> "
>
> Željko
>
>  --
> --
> 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
>
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "Watir General" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/watir-general/u5fJr43D74Y/unsubscribe?hl=en
> .
> To unsubscribe from this group and all its topics, send an email to
> watir-general+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [wtr-general] Can't use = sign in URL.

2013-06-05 Thread Jim Bailey
For now, can I forget about the properties file, and have the Watir script
put the url directly in the address bar?
If that is possible I'll need the commands to do so.

I got nowhere with the links you sent.

When I add p properties.getUrl to my script the output is there minus
anything to the right of the left most equal sign.

Turns from this:

http://FooBar.com/AP/quote?source=club&aaaclubcode212&state=CA&zipcode=90210

To:

http://FooBar.com/AP/quote?source

So it is ignoring all the the right of the equals sign as I expected.






On Tue, Jun 4, 2013 at 4:19 PM, Željko Filipin wrote:

> On Tue, Jun 4, 2013 at 8:26 PM, Jim Bailey  wrote:
>
>> b.goto(properties.getUrl)
>
>
> Add this before above line:
>
> p properties.getUrl
>
> That will display the contents of the variable. That is always helpful
> when debugging.
>
> The magic word is probably URL encoding[1].
>
> Something like this should fix the problem:
>
> b.goto(URI.escape(properties.getUrl))
>
> More information:
> http://www.ruby-doc.org/stdlib-1.9.3/libdoc/uri/rdoc/URI/Escape.html#method-i-escape
>
> Željko
> --
> 1: http://en.wikipedia.org/wiki/Percent-encoding
>
> --
> --
> 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
>
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "Watir General" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/watir-general/u5fJr43D74Y/unsubscribe?hl=en
> .
> To unsubscribe from this group and all its topics, send an email to
> watir-general+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [wtr-general] Can't use = sign in URL.

2013-06-04 Thread Jim Bailey
I'm using Watir with Ruby 1.86.

I have a properties file that I point to when I fire up a Watir script.

properties = TemplateProperties.new("../properties/template_properties.txt")

Then it uses this:

b.goto(properties.getUrl)

to pull the correct url.  I use several.

When I attempt to fire up a Watir script I do not get the website that I'm
looking for when I use the url in my previous (original) post, given to me
today to test with.
When I copy and paste the url into the browser address bar it works fine.
When I copy and paste the url into the browser address bar, up to the first
= sign I get the same result as when I try to fire it up in Watir.
So, I'm pretty sure Watir/Ruby interprets the = as something else. (like,
oh this must be a new row)
I did some research before I posted.
Someone else had a similar issue where the equals sign was replaced with
something like %3D. It worked for them, not for me.


On Tue, Jun 4, 2013 at 1:05 PM, Željko Filipin wrote:

> How is this related to Watir? I have no idea what you are talking about.
> Moar context, please. :)
>
> Željko
> --
> https://leanpub.com/watirbook
>
>
> On Tue, Jun 4, 2013 at 5:59 PM, JimJamie  wrote:
>
>>
>> It seems to stop looking at the first equal sign.
>> Is there a way to rewrite the equals sign and get the same result?
>> I have something like this in my properties file.
>>
>> #url=
>> http://FooBar.com/Portal/quote?source=club&clubcode=412&state=CA&zipcode=90210
>>
>>
>>  --
>> --
>> 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
>>
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "Watir General" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to watir-general+unsubscr...@googlegroups.com.
>>
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
>
>  --
> --
> 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
>
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "Watir General" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/watir-general/u5fJr43D74Y/unsubscribe?hl=en
> .
> To unsubscribe from this group and all its topics, send an email to
> watir-general+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[wtr-general] Re: Internet Explorer - watir-webdriver question

2013-04-25 Thread Jim Evans
Just a wild guess, but are you running on 64-bit Windows 7? What version of 
IEDriverServer.exe are you running, 32-bit or 64-bit?

IE, or any process, for that matter, can't load a cross-bitness .dll (an 
ActiveX control is a .dll with some specific API endpoints built into it). 
So if your ActiveX control is a 32-bit ActiveX control, you won't see it 
when you start 64-bit IE. For the same reason, the "bitness" version of IE 
that gets launched by IEDriverServer.exe (and therefore by watir-webdriver) 
is determined by the "bitness" of the executable.

--Jim

On Thursday, April 25, 2013 12:52:13 PM UTC-4, Alan May wrote:
>
> Hi,
>
> I understand that Watir doesn't support ActiveX controls.(I have read the 
> FAQ entry and several posts on this matter).  
>
> I think Watir is an incredibly useful tool for web application testing and 
> I've had good results with using it on various projects.  Please bear with 
> me for a brief thought exercise:
>
> I've been just experimenting with using watir to lead me through a web 
> flow until the point that I come to an Internet Explorer specific control 
> (spawns a separate window) (I am thinking this is probably based in ActiveX 
> technology...  I had to install an .exe file on my client to access the 
> functionality and the functionality is only visible in Internet Explorer.) 
> My tenative plan is to use Ruby to interact with the ffi gem or, somewhat 
> more crudely, invoke a java class that leverages the java.awt.Robot.class 
> to finish the necessary flow.  
>
> Working in Windows 7, I have noticed something I didn't anticipate 
>
> when I invoke:
>
> c:\"Program Files"\"Internet Explorer"\iexplore.exe  // the 
> control doesn't seem to be recognized as installed (the app is checking for 
> the installed software at the beginning of its flow)
>
> However,
>
> If I invoke:
> start iexplore.exe 
> // the control appears to be loaded and works as anticipated.
>
>
> When I load the IE browser(version 9.0.8) through webdriver, I get the 
> behavior I see when I invoke iexplore.exe without the "start" directive. 
>
>
>
> I was going to also try the original Watir IE driver and attempt the same 
> thing with Selenium (and potentially try other frameworks if I exhaust 
> those options), but just wanted to check with this group beforehand in case 
> anyone had any suggestions.  
> I don't have direct access to the source code, so white box approaches 
> won't work in this situation.
>
> I looked at the command line switches for Internet Explorer 9, and there 
> is a switch for disabling loading add-ons, but I didn't see anything else 
> that might appear useful.
>
>
> Anyway, I was just curious if anyone had had success with using a similar 
> approach/technique or could give me any guidance.  I'm a bit stuck if the 
> control isn't accessible at all (for instance if I have watir bring up the 
> browser, and I step through the flow manually from that point).  I wasn't 
> sure if the issue with being able to have IE load applets, activeX controls 
> --- and --- once you have them loaded, not having a mechanism to recognize 
> and click widgets (since they aren't native web form controls, links, etc.) 
>  --- OR if it was just the latter issue.
>
> Is anyone aware of a potential workaround for the loading issue?
>
> Thanks for your time!
> Alan
>
>
>  
>
>
>
>
>
>   
>

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[wtr-general] .attach method

2013-02-02 Thread Jim Evans
You don't. The WebDriver API doesn't support attaching to an existing browser 
yet, so watir-webdriver can't provide this functionality either. Additionally, 
a large use case for attaching to an existing browser window is in manipulating 
popup browser windows[1], and WebDriver does provide a Window API for that 
purpose. How watir-webdriver exploits that API, I couldn't say.

--Jim

[1] Disclaimer: I don't mean to suggest that there aren't other use cases for 
the .attach method, or that popup windows are the most important use case for 
that API, or even that it's the use case you're trying to solve. I'm just 
presenting the state of things as they are in WebDriver. Patches, as always, 
gratefully received.

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [wtr-general] watir, watir-webdriver, watir-classic: history and current state?

2013-01-31 Thread Jim Evans
Let me piggyback off of Željko's comments to reiterate that the WebDriver 
development team welcomes any and all contributions toward making the drivers 
more stable. I realize that having watir-classic is a disincentive for folks to 
spend time helping with the IE driver, if only because it appears to "just 
work" for most Watir users' use cases. Nevertheless, even acknowledging how 
crappy the code in the IE driver is (I should know, I wrote most of it), I'm 
extending an invitation to any and all who might want to help make it better.

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re[2]: [wtr-general] Re: Installing the IEDriverServer

2013-01-17 Thread Jim Evans
I don't want to leave you with the impression that this isn't a very helpful 
place to get answers. It is, and answering your question was no trouble at all. 
In the future though, it's best to start a new thread for a new question. :)

-- 
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


Re: [wtr-general] Re: Installing the IEDriverServer

2013-01-16 Thread Jim Evans
Normally I'd say, "Start a new thread; don't hijack other peoples'," but 
I'm too tired to argue about it. How to solve the problem is to set the 
browser zoom level to 100%. That is to say, open IE manually, and type 
Control+0 (that's hold the control key down while typing the number zero). 
That resets the zoom level to 100%. From the WebDriver side of things, 
there are ways you can tell the IE driver to ignore the zoom level, but I 
don't know how to set those in the Watir API.

--Jim

On Wednesday, January 16, 2013 11:46:47 AM UTC-5, Sergii Nadieiev wrote:
>
> What about next? I got error "Unexpected error launching Internet 
> Explorer. Browser zoom level was set to 139%. It should be set to 100%"
> on the line 
> browser = Watir::Browser.new :ie
> Any suggestions how to fix it?
>
>
>
> On Thursday, August 23, 2012 1:27:32 PM UTC+3, Željko Filipin wrote:
>>
>> On Wed, Aug 22, 2012 at 11:36 PM, Tony Chamberlain <
>> chamberla...@gmail.com> wrote:
>> > OK I downloaded, installed and ran IEDriverServer.exe
>>
>> You do not have to run the exe file. Just start IE with something like 
>> this:
>>
>> require "watir-webdriver"
>> browser = Watir::Browser.new :ie
>>
>> Željko
>> --
>> filipin.eu 
>>  
>

-- 
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: Watir-webdriver - Screenshots - Browser is minimised before screeshot is taken and only part of the page is saved

2013-01-16 Thread Jim Evans
I'm going to use my psychic debugging powers to deduce that you're 
automating IE with the watir-webdriver gem. If I'm wrong, disregard the 
following explanation.

Screenshots in WebDriver are, by definition, of the full page. However, in 
order to take a screenshot of the full page without scrolling (which would 
screw up absolutely positioned elements), you have to be able to render the 
full page in IE. The only way to get the full page to render is to resize 
the IE window so that the full page is visible without scrolling. So, the 
IE driver does the resize automatically for the screenshot API call, then 
restores the window to the state it was in before the call.

If you're attempting to use IE10, on Windows 8, screenshots are one of the 
few things that don't work entirely properly. It's entirely possible that 
Microsoft has closed the loophole the IE driver uses to create full-page 
screenshots in Windows 8.

--Jim

On Wednesday, January 16, 2013 9:42:45 AM UTC-5, Evgeny Shavkunov wrote:
>
> Hi,
>
> I was trying to make a screenshot from the page using 
> "browser.screenshot.save" and I found that only small part of the page 
> (even less then visible part in the window) is saved in file. Later I 
> discovered that before screenshot is taken browser is automatically 
> minimized and then maximized back after.
>
> What can be the reason for that? How can I get a screenshot with a whole 
> page?
>
> Thank you!
>

-- 
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] Installing the IEDriverServer

2012-08-14 Thread Jim Evans
Don't add the executable name in the path entry. In other words, if you put 
IEDriverServer.exe in C:\WebDrivers, put C:\WebDrivers in your path. 

-- 
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] Grab text from one site and find/access it on another site

2012-01-26 Thread Jim Henry
I have run into a problem that I am unable to resolve on my own.  We
are creating some content on one of your sites (site 1) which persists
to another site (site 2).  We then need to log into site 2, find the
content we created in site 1 and then continue the process on site 2.

Does anyone know how I can accomplish this task.  I would assume we
would save some of the text as a variable on site 1 and then somehow
find it on site 2, but I am not sure.

Here is an example of the flow:

1. An order is created on site 1 (an order id is created)
2. Log into site 2 and find the order id
3. Click the order id on site 2 and continue adding content to the
order

Thanks in advance.

-- 
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] All calls to Watir::IE.find fail

2010-02-23 Thread Jim

When running Watir through Hudson which launches a nunit console
executable that runs a nunit test that in turns launches a ruby.exe
passing a ruby file that has Test::Unit::TestCase test cases will
always throw errors on the Watir::IE.find calls.  All the find calls
error with the same OLE and HRESULT codes with the same line numbers
for the ie-class.rb.  All the other Watir functions perform as normal,
the only failures are on the Watir::IE.find functions.

Note this configuration works on development machine with everything
the same except the Hudson piece.   At first I thought this was user
permissions but I ruled this out by running Hudson under different
configurations (localsystem, administrator, localsystem interaction
with desktop, etc...) all fail with the same error.

Example of the error:


WIN32OLERuntimeError: Windows

OLE error code:80040154 in 

  

HRESULT error code:0x80020009

  Exception occurred.

C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/ie-class.rb:
238:in `method_missing'

C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/ie-class.rb:
238:in `each'

C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/ie-class.rb:
262:in `_find'

C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/ie-class.rb:
256:in `find'

-- 
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 
watir-general+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general


[wtr-general] Re: Modeling web pages and table rows

2009-08-11 Thread Jim Evans

Sure, I'd be happy to. I think, though, that a little more background
might be in order. As I mentioned before, I have a table on the page
which represents a list of tickets. The first row of the table is a
row of header cells; subsequent rows represent individual tickets.
It's a little more complicated, in that the column order is user-
configurable. In other words, the first column is not always the same
data, so I can't rely on position for modeling the content of the row
elements. Initially I tried subclassing the Table object, adding a
couple of attributes that I need, like a Hash containing the current
column bindings. Here's something similar to my class for that table.

class TicketListGridControl < Watir::Table
  def SelectAllTicketsCheckBox
self.rows[1].checkbox(:name, "MASTER_CHECKBOX")
  end

  def FieldNameMap
if not instance_variable_defined? :@field_map
  @field_map = Hash.new
  self.rows[1].cells.each_with_index {|value, index| @field_map
[value]=index }
end
@field_map
  end

  def VisibleTickets
# this method should return the list of tickets.
  end
end

I tried have VisibleTickets return TableRows.new(self), since that
doesn't filter out the header row, and I can't see any way to get that
to work. Additionally, using the built in TableRows collections will
not allow me to return objects that extend TableRow. This lead me down
the path of subclassing the TableRows collection, and suddenly it
seems like I'm doing a whole lot of subclassing, rather than just
extending what I need to.

Further, I tried to subclass a TableRow to give me the individual
ticket model, but I can't see how TableRow has any intrinsic knowledge
of the table it belongs to. I suppose I could pass in a reference to
the table's field map hash, but that seems a little clunky. If I
call .parent up the hierarchy on the subclassed TableRow, I can get
the table to which the row belongs, but it's a Watir::Table, not a
TicketListGridControl. I'm know I don't want to extend all tables to
contain these methods.

I'm sure there are other people who are trying to do the type of
semantic page modeling I'm attempting, where the pages to be modeled
are fairly sophisticated. I've had some success generating a model of
the application using WatiN; the latest builds provide a great deal of
plumbing to make this kind of thing dead simple. However, there are
some concerns in my organization about a need for cross-platform (not
just cross-browser) test execution. Thus, I find myself in unfamiliar
territory.

On Aug 10, 7:49 pm, Bret Pettichord  wrote:
> Can you show us what you tried?
>
> On Aug 10, 9:07 am, Jim Evans  wrote:
>
>
>
> > I have a web application that I'm trying to create a model of in
> > Watir, to encourage code reuse in the scripts, and I've hit a little
> > snag. I have a table on the main page of the application, the first
> > row of which has column header information. I need a method by which I
> > can return all other rows in the table, ideally without iterating
> > through the rows and adding them to an array. There must be a more
> > efficient way. Certain ports of the Watir library have features that
> > make this very easy, and maybe it's my lack of familiarity with Ruby
> > that is causing my disconnect.- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Cannot subclass Table

2009-08-11 Thread Jim Evans

That's fantastic. Thanks for that. Now that it's working, can someone
point me to some further reading as to why it works? What does the "/
ie" imply? If it's simply a namespace thing, I can understand that.
What documentation did I miss that I didn't figure this without having
to bother you good folks?

--Jim Evans
Numara Software, Inc.

On Aug 10, 7:50 pm, Bret Pettichord  wrote:
> Add this line to your script:
>
>   require 'watir/ie'
>
> Bret
>
> On Aug 10, 1:03 pm, Jim Evans  wrote:
>
>
>
> > As I mentioned in a previous message, I'm trying to model my
> > application to enforce code reuse in my scripts. I think I've managed
> > to find a way around the answer for my previous question, but I'm
> > having a difficult time subclassing the Watir::Table class.
>
> > If I try the following:
>
> > require "watir"
> > class TicketListGridControl < Watir::Table
> >   ...
> > end
>
> > then I get the following error stack when I attempt to run a script:
>
> > C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.3/lib/active_support/
> > dependencies.rb:440:in `load_missing_constant': uninitialized constant
> > Watir::Table (NameError)
> >         from C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.3/lib/
> > active_support/dependencies.rb:80:in `const_missing'
> >         from ./object_model.rb:67
> >         from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
> > `gem_original_require'
> >         from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
> > `require'
> >         from C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.3/lib/
> > active_support/dependencies.rb:156:in `require'
> >         from C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.3/lib/
> > active_support/dependencies.rb:521:in `new_constants_in'
> >         from C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.3/lib/
> > active_support/dependencies.rb:156:in `require'
> >         from program.rb:2
>
> > It looks clear that my code can't resolve the name for the Table
> > class. How do I correct the NameError?
>
> > I'm sure this is probably another "lack of Ruby experience" issues on
> > my part, but I'd really appreciate a nudge in the right direction.
>
> > --Jim Evans
> > Numara Software, Inc.- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Cannot subclass Table

2009-08-10 Thread Jim Evans

As I mentioned in a previous message, I'm trying to model my
application to enforce code reuse in my scripts. I think I've managed
to find a way around the answer for my previous question, but I'm
having a difficult time subclassing the Watir::Table class.

If I try the following:

require "watir"
class TicketListGridControl < Watir::Table
  ...
end

then I get the following error stack when I attempt to run a script:

C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.3/lib/active_support/
dependencies.rb:440:in `load_missing_constant': uninitialized constant
Watir::Table (NameError)
from C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.3/lib/
active_support/dependencies.rb:80:in `const_missing'
from ./object_model.rb:67
from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
from C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.3/lib/
active_support/dependencies.rb:156:in `require'
from C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.3/lib/
active_support/dependencies.rb:521:in `new_constants_in'
from C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.3/lib/
active_support/dependencies.rb:156:in `require'
from program.rb:2

It looks clear that my code can't resolve the name for the Table
class. How do I correct the NameError?

I'm sure this is probably another "lack of Ruby experience" issues on
my part, but I'd really appreciate a nudge in the right direction.

--Jim Evans
Numara Software, Inc.
--~--~-~--~~~---~--~~
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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Modeling web pages and table rows

2009-08-10 Thread Jim Evans

I have a web application that I'm trying to create a model of in
Watir, to encourage code reuse in the scripts, and I've hit a little
snag. I have a table on the main page of the application, the first
row of which has column header information. I need a method by which I
can return all other rows in the table, ideally without iterating
through the rows and adding them to an array. There must be a more
efficient way. Certain ports of the Watir library have features that
make this very easy, and maybe it's my lack of familiarity with Ruby
that is causing my disconnect.

--~--~-~--~~~---~--~~
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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Unable to locate element

2009-05-19 Thread Jim Matthews

Kamesh,

The other major cause of this problem is that your test is not where
you think it is.

That is, there is an error in your previous step that causes a problem
so that the next thing you are looking for is not actually there.
(Like the previous step is supposed to do something to take you to
another page, but fails and you never get to the next page, or the
previous step does something that enables the element you are looking
for.)  This may not be your problem, but it happens often enough to
mention it.  The problem is harder to find if the browser is set to
close at the end.  Watch carefully what is happening as your test
runs.  You might discover that something earlier in your test is not
happening the way you think it is.

Jim


On May 19, 10:34 am, Michael Hwee  wrote:
> check to see the object is in a frame.
>
> 
> From: Kamesh G 
> To: watir-general@googlegroups.com
> Sent: Tuesday, May 19, 2009 7:45:17 AM
> Subject: [wtr-general] Re: Unable to locate element
>
> Hi ,
>
> I have tried with all the three options.
>
> Still i am getting same error message
>
> Thanks,
> Kamesh
>
> On Tue, May 19, 2009 at 7:37 PM, Željko Filipin 
>  wrote:
> On Tue, May 19, 2009 at 3:44 PM, Kamesh  wrote:
> >> ie.link(:href, "/faces/faces/client/inbox/userInbox.jspx").click
>
> >I think that Internet Explorer always sees absolute links (site.com/page), 
> >not relative links (/page). Any of these should work:
>
> >ie.link(:href, /userInbox.jspx/).click
>
> >ie.link(:href, /\/faces\/faces\/client\/inbox\/userInbox.jspx/).click
> >ie.link(:href, 
> >"MyTestSite.com/faces/faces/client/inbox/userInbox.jspx").click
>
> >Replace `MyTestSite.com` with your site in the third example.
>
> >If you want to know more about the code I have sent, let me know.
>
> >Željko
--~--~-~--~~~---~--~~
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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Help needed in automation using Watir

2009-05-14 Thread Jim Matthews

Lokesh,

Your problem is not so much identifying objects as much as having your
developers not change their ids.

Your developers should be assigning unique ids to controls that you
use including input fields and buttons.  They should not be making
arbitrary  changes to ids, just like they should not be making
arbitrary changes to code.  The developers I work with use tools that
autogenerate some of the ids.  Normally these do not change because
the structure of the page remains the same (header, footer, menus).  I
work with a group of developers who understand the importance of
automated testing and will quickly add unique ids to elements in the
page.  There really are developers out there like that.

If your developers are serious about having automated tests, try
talking to them and explain your situation and ask them to work with
you to find a good solution.  If they don't respond, then you should
talk to your manager who is interested in having automated tests,
explain the situation (emphasize the time you could save if you did
not have to go back and change your tests all the time) and get him to
"influence" the developers.

Jim


On May 14, 8:11 am, Jason Shelton  wrote:
> I use a tool called PageSpy.  
>
> http://www.sembel.net/
>
> - Shelton
>
>
>
> > Date: Thu, 14 May 2009 14:37:00 +0530
> > Subject: [wtr-general] Re: Help needed in automation using Watir
> > From: karim@gmail.com
> > To: watir-general@googlegroups.com
>
> > you can use the IE developer tool bar on IE and firebug on firefox for
> > object identification, there is no special object spy which i know off
> > for watir, i largely believe these are the tools which are widely used
> > for object identification for watir.
>
> > If there is any thing for object spying like for QTP and SILKTEST then
> > guys please share.
>
> > On Thu, May 14, 2009 at 12:32 PM, Lokesh Agrawal
> >  wrote:
>
> > > Thanks Alkarim,
>
> > > Is there any other option in Watir for Object Identification??
>
> > > On May 14, 11:27 am, karim rayani  wrote:
> > >> when doing automation, any testing tool has the concept of object
> > >> identification be it QTP, SILKTEST etc, you can try to use indexing if
> > >> possible for object identification, the developer can change the name,
> > >> id etc indexing can help, but mind you that can also change if the
> > >> devs donot understand the pain of testing an application using an
> > >> automation tool
>
> > >> On Thu, May 14, 2009 at 11:48 AM, lokesh.agra...@gmail.com
>
> > >>  wrote:
>
> > >> > Hi All,
>
> > >> > I am doing web application automation using Watir.
>
> > >> > The problem I am facing is, whenever we get a new build from
> > >> > developers there are changes in id, name of some objects. Due to which
> > >> > our scripts fails and manually we need to find what are the changes by
> > >> > viewing source code.
>
> > >> > This is really hectic and time consuming task. Everytime before
> > >> > running our Test suite to new build we need to modify scripts.
>
> > >> > Does anyone has solution of this problem?
>
> > >> > FYI: I am using Test Unit framework to run test cases.
>
> > >> > Thanks in Advance,
>
> > >> > Regards,
> > >> > Lokesh Agrawal
>
> > >> --
> > >> Regards,
>
> > >> Alkarim Rayani
>
> > --
> > Regards,
>
> > Alkarim Rayani
>
> _
> Hotmail® goes with 
> you.http://windowslive.com/Tutorial/Hotmail/Mobile?ocid=TXT_TAGLM_WL_HM_T...
--~--~-~--~~~---~--~~
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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Unexpected error when Run the code in Netbeans.

2009-04-22 Thread Jim Matthews

Hi Wesley,

Sorry, I did not know you had been NetBeans for a while.  It is a
common mistake for new users and when I don't know any more
information, I start with the basics.

I have reproduced the error you describe, but I have no idea why it is
happening.  The strange thing I notice is that the first two lines of
the trace (the ones on the bottom) have "ubygems" instead of
"rubygems".

I 'll see what else I can find out.  All my old tests seem to work OK.

Jim


On Apr 21, 6:32 pm, Wesley Chen  wrote:
> I have used netbeans for a long time, of course I know the environment
> deployment of it, :)
> Thanks.
> Wesley Chen.
>
> On Wed, Apr 22, 2009 at 12:13 AM, Jim Matthews  wrote:
>
> > Wesley,
>
> > Have you set the "run" environment to use your externally installed
> > Ruby instead of JRuby?
>
> > Watir will not run under JRuby.
>
> > Go to Tools -> Ruby Platforms -> and add your externally installed
> > Ruby platform.  Then on each of your projects, you have to make sure
> > that your project references this "run" environment.
>
> > Jim
>
> > On Apr 21, 10:11 am, Wesley Chen  wrote:
> > > I have not reported yet.
> > > When I run the code out of netbeans, it is OK.
>
> > > Thanks.
> > > Wesley Chen.
>
> > > On Tue, Apr 21, 2009 at 11:03 PM, Željko Filipin
>
> > >  wrote:
> > > > On Tue, Apr 21, 2009 at 16:43, Wesley Chen  wrote:
> > > > > I met this kind of problem and search for a long time, I can't get
> > why I
> > > > get this kind of error.
>
> > > > Did you report it to netbeans?
>
> > > > Željko
> > > > --
> > > >http://watirpodcast.com/
--~--~-~--~~~---~--~~
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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Unexpected error when Run the code in Netbeans.

2009-04-21 Thread Jim Matthews

Wesley,

Have you set the "run" environment to use your externally installed
Ruby instead of JRuby?

Watir will not run under JRuby.

Go to Tools -> Ruby Platforms -> and add your externally installed
Ruby platform.  Then on each of your projects, you have to make sure
that your project references this "run" environment.

Jim


On Apr 21, 10:11 am, Wesley Chen  wrote:
> I have not reported yet.
> When I run the code out of netbeans, it is OK.
>
> Thanks.
> Wesley Chen.
>
> On Tue, Apr 21, 2009 at 11:03 PM, Željko Filipin
>
>  wrote:
> > On Tue, Apr 21, 2009 at 16:43, Wesley Chen  wrote:
> > > I met this kind of problem and search for a long time, I can't get why I
> > get this kind of error.
>
> > Did you report it to netbeans?
>
> > Željko
> > --
> >http://watirpodcast.com/
--~--~-~--~~~---~--~~
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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Error in handling popup

2009-04-09 Thread Jim Matthews

spike,

There is a problem with the new version of Ruby that may be
contributing to your problem.  I don't use autoit, I use method that
Lisa described.  For more information on the problem, see:

http://groups.google.com/group/watir-general/browse_thread/thread/c8e233ec27bebb85/02a19203ed99e262?lnk=gst&q=%3Cpopup#02a19203ed99e262

Jim


On Apr 9, 5:09 am, spike  wrote:
> sorry to tel u it isnt working,
>
> ie.button(:id, "ctl00_ContentPlaceHolder1_btnNext").click
> ie.file_field(:id, "ctl00_ContentPlaceHolder1_Uploadfile").set("D:\
> \BCSBI.zip")
> ie.file_field(:id, "ctl00_ContentPlaceHolder1_btnUpload").click #this
> is the button when clicked popup appears.
> # For handling popups
>
>     def visible?
>     object = document
>     while object
>       begin
>         if object.currentstyle.invoke('visibility') =~ /^hidden$/i
>           return false
>         end
>         if object.currentstyle.invoke('display') =~ /^none$/i
>           return false
>         end
>         if object.invoke('isDisabled')
>           return false
>         end
>       rescue WIN32OLERuntimeError
>       end
>       object = object.parentElement
>     end
>     true
>   end
>
>           def top_edge
>                 assert_exists
>                 assert_enabled
>                 ole_object.getBoundingClientRect.top.to_i
>           end
>
>           def top_edge_absolute
>                 top_edge + page_container.document.parentWindow.screenTop.to_i
>           end
>
>           def left_edge
>                 assert_exists
>                 assert_enabled
>                 ole_object.getBoundingClientRect.left.to_i
>           end
>
>           def left_edge_absolute
>                 left_edge + 
> page_container.document.parentWindow.screenLeft.to_i
>           end
>
>           def mouse_hover(offsetX = 0, offsetY = 0)
>                 x = left_edge_absolute + offsetX
>                 y = top_edge_absolute + offsetY
>                 WindowsInput.move_mouse(x, y)
>           end
>
>           def mouse_click(offsetX = 0, offsetY = 0)
>                 x = left_edge_absolute
>                 y = top_edge_absolute
>                 WindowsInput.move_mouse(x, y)
>                 Watir.autoit.MouseClick("left", x+offsetX, y+offsetY, 1)
>                 sleep(2)
>           end
>
>           def right_click(offsetX = 0, offsetY = 0)
>                 x = left_edge_absolute
>                 y = top_edge_absolute
>                 WindowsInput.move_mouse(x+offsetX, y+offsetY)
>                 WindowsInput.right_click
>           end
>
> require 'win32ole'
> def test_check_for_popups
> autoit = WIN32OLE.new('AutoItx3.control')
> loop do
>   ret = autoit.WinWait('Windows Internet Explorer', '' ,1)
>   if (ret==1) then autoit.sent('{enter}') end
>   sleep(3)
> end
> end
>
> #Below is the code for operations after the popup disappears
> if ie.radio(:id,
> "ctl00_ContentPlaceHolder1_RdlistisFeedback_1").isSet?
>     puts "IS FEEDBACK option Yes is selected"
>     else
>       ie.radio(:id,
> "ctl00_ContentPlaceHolder1_RdlistisFeedback_1").click
>     end
>     ie.select_list(:id, "ctl00_ContentPlaceHolder1_DdlAccesstype").set
> ("Public")
>     ie.select_list(:id,
> "ctl00_ContentPlaceHolder1_DdlApprovaltype").set("Admin")
>
> end
> end
>
> On Apr 9, 12:01 pm, kiran yajamanyam 
> wrote:
>
> > hi Spike,
>
> > Here is the perfect solution for you problem
> > Copy paste the code present in the attached text file. And insted of using
> > click() method use yourObject.mouse_click(36,6)  and remaing code will be
> > same to handle that windows popup using autoit( Which I have posted in last
> > mail).
>
> > This is the only way u can handle this issue. It will definetly work.
>
> > If you still have any issue send me the code you have pasted, i will correct
> > it and send you back.
>
> > Regards,
> > Krian Y
>
> > On Thu, Apr 9, 2009 at 12:10 PM, spike  wrote:
>
> > > Yes i've used the click() method.
>
> > > On Apr 9, 11:09 am, kiran yajamanyam 
> > > wrote:
> > > > Now I got the problem you are facing. I think in your code u would have
> > > used
> > > > click() method just before the code to handle popup. If this is the case
> > > ,
> > > > script would not be coming out of click() method and go to next step.
> > > This
&g

[wtr-general] Re: Error in handling popup

2009-04-08 Thread Jim Matthews

spike,

The only thing I see right off is that you have:

wsh WIN32OLE.new('Wscript.Shell')

My guess is that it should be:

wsh = WIN32OLE.new('Wscript.Shell')

That would seem to fit with the error you are getting:

 NoMethodError: undefined method `wsh' for #

Jim

On Apr 8, 7:26 am, spike  wrote:
> Hi
>
> I'm woking on windows platform and IE7 using "WATIR" I've used the
> following code for handling "JavaScript" popup
>
> require 'win32ole'
> wsh WIN32OLE.new('Wscript.Shell')
>  wsh.AppActivate('Windows Internet Explorer')
>   wsh.Sendkeys('{ENTER}')
>
> but its not working i'm getting the following error.
>  1) Error:
> test_manage_resources(Manageresources):
> NoMethodError: undefined method `wsh' for #
>     manageresource.rb:24:in `test_manage_resources'
>
> Please Please please... give a solution to my problem i'm stuck with
> handling popup from past 2 days..
>
> thankingyou
--~--~-~--~~~---~--~~
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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] New documentation for WatirCraft on GitHub looks great

2009-04-07 Thread Jim Knowlton

The new docs for WatirCraft at the GitHub page (http://wiki.github.com/
bret/watircraft) looks terrific Bret.  I'm looking forward to diving
deeper into it.

Jim
--~--~-~--~~~---~--~~
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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Watir design patterns?

2009-04-03 Thread Jim Knowlton

Bret...I've looked at it some...I think what I'm really talking about
is one-half design pattern, one-half deployment guide.  Actually, now
that I think about it, a Watir Deployment guide is really what I'm
thinking of.  For example, I initially set up all my scripts in the
same directory, with all the helper scripts and files in a
subdirectory under it, because I didn't know the best way to set up
the directory structure to test with Ruby, RSpec and Watir an
application that has multiple components and where I want to be able
to run a rake task against each individual component, or against the
whole thing.

These aren't really massively complex issues, but they make a huge
difference as to how usable and scalable a test framework is.  And
maybe I just don't understand WatirCraft well enough...but it looked
fairly firm in how it sets up your structure.  For example, if I had
an application that had component 1, component 2 and component 3,
would WatirCraft allow me to set up a structure where I could run a
rake task to test component 1, component 2, or component 3
individually, or if i chose to run the whole thing and have it report
as 1 test run?  When I tried to set this up, my scripts got confused
as to where to get its helpers.

Anyway, that's my sob story :-).

On Apr 3, 2:58 pm, Bret Pettichord  wrote:
> The "Design Patterns in Ruby" book by Russ Olsen addresses many of these
> questions. Have you looked at it?
>
> Bret
>
>
>
> Lisa Crispin wrote:
> > +1 on all that. Plus, as someone not very good w/ OO, I want to know
> > stuff like when to use a class vs. a mixin, what kind of variables to
> > use (global or whatever), tradeoffs of flexibility and maintainability.
>
> > I'm sure if we were starting with Watir today, we'd use WatirCraft and
> > things would be easier, but now that we're 4 years down the road and
> > have a huge suite of scripts, I'm never sure what's the best way forward.
> > -- Lisa
>
> > On Fri, Apr 3, 2009 at 2:09 PM, Jim Knowlton  > <mailto:jknowlton...@gmail.com>> wrote:
>
> >     I think the biggest thing alot of us Watir developers need is a good
> >     guide to design patterns with Watir.  I know for myself, I know the
> >     commands and basic syntax pretty well, and can design a test structure
> >     that works, but I'm sure there are things I'm doing that could be
> >     designed better (I'm a tester, after all, not a full-time
> >     programmer).  I'd love a guide that describes best practices for how
> >     to set up a directory structure, set up rake for common tasks, etc.
>
> >     I know WatirCraft attempts to address this to some extent, but I guess
> >     I'm suggesting that some people might need to design their own
> >     framework, but not know how to do it.
>
> >     My two cents.
>
> >     Jim
>
> > --
> > Lisa Crispin
> > Co-author with Janet Gregory, _Agile Testing: A Practical Guide for
> > Testers and Agile Teams_ (Addison-Wesley 2009)
> >http://lisacrispin.com
>
> --
> Bret Pettichord
> CTO, WatirCraft LLC,www.watircraft.com
> Lead Developer, Watir,www.watir.com
> Blog,www.io.com/~wazmo/blog
> Twitter,www.twitter.com/bpettichord
>
> Watir Training: Portland/Beaverton April 16-17www.watircraft.com/training
--~--~-~--~~~---~--~~
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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Watir design patterns?

2009-04-03 Thread Jim Knowlton

I think the biggest thing alot of us Watir developers need is a good
guide to design patterns with Watir.  I know for myself, I know the
commands and basic syntax pretty well, and can design a test structure
that works, but I'm sure there are things I'm doing that could be
designed better (I'm a tester, after all, not a full-time
programmer).  I'd love a guide that describes best practices for how
to set up a directory structure, set up rake for common tasks, etc.

I know WatirCraft attempts to address this to some extent, but I guess
I'm suggesting that some people might need to design their own
framework, but not know how to do it.

My two cents.

Jim
--~--~-~--~~~---~--~~
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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Ramping up your Ruby skills

2009-04-03 Thread Jim Knowlton

I love Brian Marick's book because it really cuts through all the
"programmery" stuff that's interesting to development types but makes
testers eyes glaze over, and talks about the core, basic stuff Watir
developers need to know.  I am a QA Engineer who had some Python
experience when I picked up Brian's book, and it was just the ticket.
I also have the Pickaxe book, but use it mostly as a reference, when I
am not sure how to do something.

Jim

On Apr 3, 8:45 am, Bret Pettichord  wrote:
> People who are new to Watir often need to learn Ruby to be effective.
> What resources should we recommend for this? What books, websites, blogs
> or videos have you found to be helpful? Online training?
>
> --
> Bret Pettichord
> CTO, WatirCraft LLC,www.watircraft.com
> Lead Developer, Watir,www.watir.com
> Blog,www.io.com/~wazmo/blog
> Twitter,www.twitter.com/bpettichord
>
> Watir Training: Portland/Beaverton April 16-17www.watircraft.com/training
--~--~-~--~~~---~--~~
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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: undefined method `close' for nil:NilClass (NoMethodError)

2009-04-01 Thread Jim Matthews

Shweta,

   $ie.text_field(:name, "PolicyNumber").set($record
['PolicyNumber'])   #error occured here

If you are trying to put a value in a text_field, you need to use
value, so your line would look something like this:

   $ie.text_field(:name, "PolicyNumber").value = ($record
['PolicyNumber'])

Jim

On Apr 1, 7:06 am, Shweta  wrote:
> Hi
>
> Am getting error in the line where i put the comment has #error
> occured here
>
> require 'win32ole'
> require 'watir'
> require 'Xls'
>
> xlFile = XLS.new('C:\irma1.xls') #grab the data file in the same
> dirrectory
> myData = xlFile.getRowRecords('Inspection Search Data','Search')
> #pull data records  from excel
> xlFile.close
> myData.each do |record|
> def searchinspections()
>        $ie.link(:href, "http://searchrecord/
> inspectionSearchInit.do").click
>        $ie.button(:name, "clearCriteriaBtn").click
>        $ie.radio(:index, 2).set
>        $ie.text_field(:name, "PolicyNumber").set($record
> ['PolicyNumber'])   #error occured here
>        $ie.button(:name, "submitBtn").click
>        if $ie.contains_text(record['ContainsText'])
>         puts "Results of search: '#{record['PolicyNumber']}' contains
> '#{record['ContainsText']}'"
>        else
>        puts "Error: could not find text: '#{record['ContainsText']}'
> in results of search: '#{record['PolicyNumber']}'"
>        end
>        sleep 3
>        return $ie
>        $ie.close
>        end
> end
>
> and am calling in other test as
>
> require 'win32ole'
> require 'watir'
> require 'Login_irma'
> require 'test/unit/assertions'
> require 'watir/assertions'
> require 'SearchInspection'
>
> $ie = login("mtedfhhh","password")
> $ie = searchinspections()
>
> Can anyone suggest whats wrong here
>
> On Apr 1, 2:41 pm, Shweta  wrote:
>
> > Hi
>
> > Am trying to parameterizing my test cases am getting some error,am not
> > understanding where am wrong i have gone thru the posts regarding this
> > i dint get any idea,Can anyone pls let me know whats wrong here
>
> > My code:
>
> > require 'watir'
> > require 'watir/testcase'
> > require 'watir/assertions'
> > require 'test/unit'
> >  require 'LogIn'
> > begin
> >     xlFile = XLS.new('C:\\MA.xls')
>
> >     $Policynumber = xlFile.getColumnRecords('B4:C6', 'Ponumber')
> >     setupInfo = xlFile.getHash('A1:B4', 'Setup')
> >     $runTests = xlFile.getHash('A13:B27', 'Setup')
> > ensure
> >     xlFile.close
> > end
>
> > $test_site = setupInfo['URL']
> > $UserName = setupInfo['Username']
> > $UserPass = setupInfo['Password']
>
> > #get today's date for use in scripts
> > $today = "#{Time.now.month.to_s}/#{Time.now.day.to_s}/#
> > {Time.now.year.to_s}"
>
> > # open the IE browser
> > $ie = Watir::IE.new
> > $ie.speed = :fast
> > #  go to the selected MA site
> > $ie.goto($test_site)
>
> > class TestSuite < Test::Unit::TestCase
> >     include Watir::Assertions
>
> >     #login with the supplied producer username and password
> >     def test_00Login
> >         if $runTests['login'] == 'Yes'
> >             if $ie.text.include?('Inspection Search Results')
> >                 login($Username, $Password)
> >             else
> >                 puts 'The user was already logged in when the
> > application was opened.'
> >             end
> >         else
> >             puts ' '
> >             puts 'You chose not to run the user login test.'
> >         end
> >     end
> >     #Search records
> >     def Searchrecord_ponumber
> >     myData.each do |record|
> >    $ie.link(:href, "http://www.searchrecord/SearchInit.do";).click
> >    $ie.button(:name, "clearCriteriaBtn").click
> >    $ie.radio(:index, 2).set
> >    $ie.text_field(:name, "policyNumber").set(record['PoNumber'])
> >    $ie.button(:name, "submitBtn").click
>
> >    if $ie.contains_text(record['ContainsText'])
> >     puts "Results of search: '#{record['PoNumber']}' contains '#{record
> > ['ContainsText']}'"
> >    else
> >     puts "Error: could not find text: '#{record['ContainsText']}' in
> > results of search: '#{record['PoNumber']}'"
> >    end
> >    sleep 3
> >    #~ ie.close
> >    end
> >     end
> > end
>
> > Error message:
>
> > Testrun.rb:37:
> > ./Xls.rb:226:in `getWorksheet': getWorksheet(sheet=Setup) --> Sheet
> > 'Setup' COULD NOT BE FOUND (RuntimeError)
> >         from ./Xls.rb:193:in `getRange'
> >         from ./Xls.rb:104:in `get2DArray'
> >         from ./Xls.rb:145:in `getHash'
> > undefined method `close' for nil:NilClass (NoMethodError)
--~--~-~--~~~---~--~~
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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Getting no such file to load error when working with excel

2009-03-31 Thread Jim Matthews

Shweta,

I am not sure which problem you are having right now.

It looks like you are still having the problem of:

error: c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
31:in
`gem_original_require': no such file to load -- xls (LoadError)
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
31:in
`require'

It looks like you are not using a Ruby gem, it looks like you are
using xls.rb.

since you do a

require 'xls'

that means that xls.rb has to be in the same directory as you run the
Ruby file.  You can change the require to include a relative path to
xls.rb.

If the problem is the Dir.pwd,  this appears to define a relative path
for the xls file.  Try to get it working by hard coding the path.  If
that works you can work on changing it to a relative path if you want
to.  Get things working with the simplest setup and then change things
one at time until you get them working the way you want to.

Jim





On Mar 31, 3:22 am, Shweta  wrote:
> I got the code for excel from old posts,but i want to know what is
> meant by Dir.pwd here
>
> require 'xls'
> require 'watir'
>
> xlFile = XLS.new(Dir.pwd + '/test_XLS_data.xls') #grab the data file
> in the same dirrectory
> myData = xlFile.getRowRecords('Google Search Data','Example')  #pull
> data records  from excel
> xlFile.close
> myData.each do |record|
>   ie = Watir::IE.start('google.com')
>   ie.bring_to_front
>   ie.text_field(:name,'q').set(record['SearchString'])
>   ie.button(:value,/Search/i).click
>   if ie.contains_text(record['ContainsText'])
>     puts "Results of search: '#{record['SearchString']}' contains '#
> {record['ContainsText']}'"
>   else
>     puts "Error: could not find text: '#{record['ContainsText']}' in
> results of search: '#{record['SearchString']}'"
>   end
>   sleep 3
>   ie.close
> end
>
> When am running this from my machine its running.But if i change the
> data in excel sheet its taking the old data only.Is there any default
> location to save xl file.Am just started to use excel for
> parameterizing the data.I dont have basic idea of it.when am trying
> for login page by saving xl in C:\ drive i always get this error
>
> error: c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
> `gem_original_require': no such file to load -- xls (LoadError)
>         from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
> `require'
>
> Can anyone pls let me know
>
> On Mar 31, 9:36 am, Shweta  wrote:
>
> > I have searched with the prevvious posts there you told to check the
> > environment variables in advanced tab of mycomputer properties,I have
> > checked i have the rubyopt defined as
>
> > RUBYOPT -rubygems
>
> > On Mar 30, 7:30 pm, Jim Matthews  wrote:
>
> > > Shweta,
>
> > > This sounds like the problem where you do not haveRUBYOPTdefinedas 
> > > -rubygems.
>
> > > Search the site for help on this and if you still have trouble, update
> > > with additional information.
>
> > > Jim
>
> > > On Mar 30, 6:40 am, Shweta  wrote:
>
> > > > Hi
>
> > > > When i was trying to parameterize with excel for login page am getting
> > > > this error.Can anyone pls let me know what might be wrong in this.
>
> > > > Error message:
> > > > c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
> > > > `gem_original_require': no such file to load -- xls (LoadError)
> > > >         from 
> > > > c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
> > > > `require'
>
> > > > If any help regarding this could be appreciated.
>
> > > > Thanks in Advance,- Hide quoted text -
>
> > > - Show quoted text -- Hide quoted text -
>
> > - Show quoted text -
--~--~-~--~~~---~--~~
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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Getting no such file to load error when working with excel

2009-03-30 Thread Jim Matthews

Shweta,

This sounds like the problem where you do not have RUBYOPT defined as -
rubygems.

Search the site for help on this and if you still have trouble, update
with additional information.

Jim

On Mar 30, 6:40 am, Shweta  wrote:
> Hi
>
> When i was trying to parameterize with excel for login page am getting
> this error.Can anyone pls let me know what might be wrong in this.
>
> Error message:
> c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
> `gem_original_require': no such file to load -- xls (LoadError)
>         from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
> `require'
>
> If any help regarding this could be appreciated.
>
> Thanks in Advance,
--~--~-~--~~~---~--~~
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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: click_no_wait and click! not working

2009-03-23 Thread Jim Matthews


I have figured a few things out with the click_no_wait problem.  This
potentially affects any program that uses the Ruby "system" call,
which click_no_wait does. There is also appears to be a problem with
Watir#wait_until, that is used by enabled_popup, which is used to
check for the presence of a popup.  The details follow:

First, I think the problem with click_no_wait not actually not
clicking the button/link is a Ruby 1.8.6-27 problem.  It is because
the quoted string is not passed into Ruby correctly.

On a Ruby 1.8.6-26 system, the following happens:

C:\>ruby --version
ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32]

C:\>ruby -e "puts \"Does this work?\""
Does this work?

C:\>

However, on a 1.8.6-27 system, the following happens:

C:\>ruby --version
ruby 1.8.6 (2008-08-11 patchlevel 287) [i386-mswin32]

C:\>ruby -e "puts \"Does this work?\""
-e:1: unterminated string meets end of file

C:\>

There is a second problem.  When you set the timeout for clicking the
popup button, Watir times out first:
.
.
.
if (ie.enabled_popup)
  wc = WinClicker.new
  wc.clickWindowsButton(/Internet Explorer/, "OK", 30)
end

>ruby javatest.rb
c:/ruby/lib/ruby/gems/1.8/gems/commonwatir-1.6.2/lib/watir/waiter.rb:
59:in `wait_until': Timed out after 4.006 seconds.
(Watir::Exception::TimeOutException)
from c:/ruby/lib/ruby/gems/1.8/gems/commonwatir-1.6.2/lib/watir/
waiter.rb:80:in `wait_until'
from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/contrib/
enabled_popup.rb:10:in `enabled_popup'
from javatest.rb:13
>Exit code: 1

So even though I have the click set to not timeout until after 30
seconds, Watir seems to timeout after about 4 seconds.

There is a temporary workaround for this that works for me.  Because I
was getting the Watir timeout before the popup came up, I added a
sleep to my popupchecker method before the Timeout::timeout.  So the
first part of the popupchecker method looks like this:

def popupchecker(text)
  sleep 10
  Timeout::timeout(2) do

Note that I give this as a temporary solution until the wait_until is
fixed.

Jim

On Mar 3, 10:52 am, Jim Matthews  wrote:
> Here are the steps to reproduct the problem.  First bring up unittests
> \html\popups1.html in IE.
>
> \Ruby\lib\ruby\gems\1.8\gems\watir-1.6.2\unittests\html\popups1.html
>
> Next run this script.  I have extra "puts" in it to try to figure out
> what is going on. They can be remvoed or commented out.
>
> Jim
>
> require 'watir'
> require 'watir/ie'
> require 'watir/testcase'
> require 'watir/contrib/enabled_popup'
>
> class StepTests < Watir::TestCase
>   def test_01_step_test
>     browser = Watir::IE.attach(:title, /Test page for/)
>     browser.row(:index, 3).button(:type, 'button').click!
>     popupchecker(browser, 'OK')
>   end
>   def popupchecker(browser, text)
>     Timeout::timeout(2) do
>       begin
>         puts "Inside begin of popupcuecker."
>         puts "browser.enabled_popup == #{browser.enabled_popup}"
>         if browser.enabled_popup
>           puts "In if in popupchecker."
>           hwnd = browser.enabled_popup(5)
>           puts hwnd.to_s
>           w = WinClicker.new
>           w.makeWindowActive(hwnd)
>           w.clickWindowsButton_hwnd(hwnd, text)
>         end
>         rescue Timeout::Error
>           puts 'No popup existed.'
>       end
>     end
>   end
> end
>
> On Mar 2, 10:12 am, Jim Matthews  wrote:
>
> > I am trying to deal with javascript popups.  I have created the
> > popupchecker method described on the wiki.
>
> > When I usedclick_no_wait,  the popup came up but was not dismissed.
> > Someone suggested that I try click! instead ofclick_no_waitbecause
> > of some problems mentioned in recent posts.  I did that and click!
> > worked for the first popup.  It dismissed it and the script continued.
>
> > When the script got to the second popup, neitherclick_no_waitnor
> > click! worked to dismiss the popup.  I put some "puts" statements is
> > the popupchecker method and it appears from that, that popupchecker is
> > not getting called the second time until after I manually dismiss the
> > second popup.
>
> > I know the popupchecker code works because it successfully dismisses
> > the first popup and because I have used fxri with popupchecker to
> > dismiss both the popups.
>
> > Does anyone have an idea what is going on or something different to
> > try?
>
> > Jim
--~--~-~--~~~---~--~~
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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Invoking a .bat file

2009-03-19 Thread Jim Matthews

Zeljko,

When I click on the link you provided, I get a page not found from
githubpages.

Jim

On Mar 18, 6:27 am, Željko Filipin 
wrote:
> On Wed, Mar 18, 2009 at 12:24, venky  wrote:
> > How to invoke a .bat file from watir script
>
> `file.bat`
>
> http://atog.be/2007/7/24/ruby-backticks/
>
> Željko
--~--~-~--~~~---~--~~
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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Watir in JRuby?

2009-03-17 Thread Jim Knowlton

Does anyone know the status of porting Watir to JRuby?  I saw some
posts last year that indicated it was on the wish list, but that a
stumbling block was the Win32OLE module...just thought I'd drop a note
out here and see if anyone has knowledge of anything in the works.  I
love Ruby and Watir, but work on an enterprise Java app, and having
the "Java" side of JRuby would be cool.

Thanks,

Jim
--~--~-~--~~~---~--~~
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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: select_no_wait function does not work for download pop up handling.

2009-03-17 Thread Jim Matthews

I have been trying to figure out what the problem is with
click_no_wait method for a couple of weeks.  I expect your problem is
related to mine.

I believe I have narrowed it down to the following, but I do not have
an answer yet.

click_no_wait builds a string to execute in a separate shell.  It then
does:
system(exec_string)

It appears that the Ruby commands are not getting executed, but I have
not seen any errors.

What I am trying to do now is create a very short Ruby script that
defines a simple set of Ruby commands in a string called exec_string
and have that script do a

system(exec_string)

to see if I can get that to work.  So far I am not having any luck
getting the execution string to work.  I am still not seeing any
errors when I run the script.  I figure if I can get this to work, it
will give me a clue as to why click_no_wait is not working.

Jim

On Mar 17, 11:42 am, JackieH  wrote:
> Just wanted to put this back out there to see if anyone had any
> thoughts...
>
> On Mar 12, 2:32 pm, JackieH  wrote:
>
> > I haven encountered the same issue...When using theselectmethod a
> > pop-up box occurs, but when I added theno_waitroutine the code just
> > ends up in the wait for pop-up routine and no pop-up appearsFrom
> > what I can, the code gets into theno_waitmethod fine, but it never
> > reaches theselectmethod of theselectlist...A few interesting
> > tidbits:  I noticed some chatter about a patch for
> > eval_in_spawned_process for a click_no_wait issue as well as a radio
> > button no wait issue, so I did implement that with high hopes it might
> > fix my issue, but alas, no luck...What is interesting is that this
> > same code has worked on IE6...It sets theselectlistand handles the
> > pop-up correctly...
>
> > Any advice would be greatly appreciated!
>
> > -Jackie
>
> > On Feb 16, 3:25 am, Bill Xu  wrote:
>
> > > Hi:
> > >    I want to use select_no_wait function (I am testing on a dropdown 
> > > control
> > > and while youselectthe dropdown control, it pops up download file page),
> > > select_no_wait is the function i got 
> > > fromhttp://wiki.openqa.org/display/WTR/JavaScript+Pop+Ups(iteam6)
> > > but it seems does not work. It can not trigger theselectoperation. Do you
> > > have some ideas? (system will hang when run to select_no_wait function
> > > and the pop up window will not show up)
>
> > > #sample code#
> > > #select_no_wait method forselectlists - needed for popups resulting from
> > >selectlists
> > > module Watir
> > >     class Element
> > >         #select_no_wait - selects a drop-down element spawning a new
> > > process.
> > >         #this is needed to close potential pop-ups thatselectdrop-down can
> > > trigger.
> > >         def select_no_wait(item)
> > >             assert_enabled
> > >             puts "calls select_no_wait function"
> > >             highlight(:set)
> > >             object = "#{self.class}.new(self,
> > > :unique_number,#{self.unique_number})"
> > >             @page_container.eval_in_spawned_process(object +
> > > ".set('#{item}')")
> > >             highlight(:clear)
> > >         end
> > >     end
> > > end
>
> > > def save_file(filepath)
> > >     ai = WIN32OLE.new("AutoItX3.Control")
> > >     ai.WinWait("File Download", "", 5)
> > >     ai.ControlFocus("File Download", "", "&Save")
> > >     sleep 1
> > >     ai.ControlClick("File Download", "", "&Save", "left")
> > >     ai.WinWait("Save As", "", 5)
> > >     sleep 1
> > >     ai.ControlSend("Save As", "", "Edit1",filepath)
> > >     ai.ControlClick("Save As", "", "&Save", "left")
> > >     ai.WinWait("Download complete", "", 5)
> > >     ai.ControlClick("Download complete", "", "Close")
> > >   end
>
> > > #main code#
> > > $ie.select_list(:id,"_id0:actions").select("Generate Default Template")
> > > save_file("C:\\file1.txt")
--~--~-~--~~~---~--~~
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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Click it twice to make it work?

2009-03-12 Thread Jim Matthews

Have any of you run into this problem before?

You have to click a button or link or image twice to get it to take
effect?

I actually have run into this problem some in manual testing and
usually with an image.  The first time I click it, nothing happens.
The second time I click it takes me where it should have gone with the
first click.

I am seeing this with an automated test.  It was running against one
server without a problem.  I started having problems when I ran the
same test, on the same computer, from the same IE version but against
a different server.

After some experimenting, it appears that if I specify clicking the
link twice in a row it works.

Have any of you run into this problem and more importantly, do you
know what might be causing it and how to fix it?

Jim


--~--~-~--~~~---~--~~
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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: MYSQL error

2009-03-09 Thread Jim Knowlton

Watir doesn't connect directly to a database, it is for driving a web
browser interface.  Is it possible you're trying to use Ruby to
connect to a database?  If so, you might try posting this question to
the comp.lang.ruby newsgroup.  Also, a good idea when you post is to
show the actual code you're executing.

Jim
http://www.agilerubytester.com


On Mar 5, 4:56 am, Vikas Tulashyam  wrote:
> Hi Friends,
> I have installed the MYSQL server 5.1. But when I am trying to connect
> it through watir I am gettin an error - "This Application has failed
> to start becasue LIBMYSQL.dll was not found. Re-installing the
> application may fix this problem." I tried to register this dll but i
> got an error -"libmysql.dll was loaded, but the dllserver registry
> entry point was not found. This file cannot be registered."
>
> Please help me if anyone has any idea.
>
> Thanks in advance.
>
> Vikas
--~--~-~--~~~---~--~~
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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Error while running popup script on eclipse

2009-03-06 Thread Jim Matthews

I believe what you are seeing is a problem that several of us are
seeing with click_no_wait.  The main symptom is that you see the
button or link flash but no popup comes up.  Since it works for some
of us with the same Ruby / Watir combination, I think it must be some
sort of system setting that is the difference.  You can find several
recent posts on watir -general about the problem.

If you can shed any light on this problem, a number of us would be
very grateful.

Jim


On Mar 5, 10:09 pm, kushnit  wrote:
> Hi,
>
> I am trying to run a watir script which is used to handle alert popups
> on eclipse. Its runnig smoothly on SciTE but wen i try to run it on
> eclipse its throwing a TimeOutException.Does anybody have solution for
> the same.
> Following is my program and respective error
>
> require 'watir'
> require 'watir/ie'
> require 'watir/contrib/enabled_popup'
> def startClicker( button , waitTime, user_input=nil )
>   # get a handle if one exists
>   hwnd = $ie.enabled_popup(waitTime)
>   if (hwnd)  # yes there is a popup
>     w = WinClicker.new
>     if ( user_input )
>       w.setTextValueForFileNameField( hwnd, "#{user_input}" )
>     end
>     # I put this in to see the text being input it is not necessary to
> work
>     sleep 3
>     # "OK" or whatever the name on the button is
>     w.clickWindowsButton_hwnd( hwnd, "#{button}" )
>     # this is just cleanup
>     w=nil
>   end
> end
> $ie = Watir::IE.new
> $ie.goto('d:/test_pop.html/')
> $ie.bring_to_front      #to bring the window in front
> $ie.maximize
> $ie.button(:value, 'Alert').click_no_wait
>
> The Exception thrown by the program is:
>
> C:/ruby/lib/ruby/gems/1.8/gems/commonwatir-1.6.2/lib/watir/waiter.rb:
> 59:in `wait_until': Timed out after 9.499 seconds.
> (Watir::Exception::TimeOutException)
>         from C:/ruby/lib/ruby/gems/1.8/gems/commonwatir-1.6.2/lib/watir/
> waiter.rb:80:in `wait_until'
>         from C:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/contrib/
> enabled_popup.rb:10:in `enabled_popup'
>         from popup_test.rb:6:in `startClicker'
>         from popup_test.rb:25
>
> Thanks
--~--~-~--~~~---~--~~
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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: enabled_popup internal error

2009-03-05 Thread Jim Matthews

One thing I forgot to mention: someone else got click_no_wait to work
by going into IE ->Tools -> Internet Options...->Advanced and under
Security, check the box titled "Allow active content to run in files
on My Computer".

Jim

On Mar 5, 9:32 am, Jim Matthews  wrote:
> Glad to know that helped.  Now you are at the point I am at.  There
> are several of us working to see if we can resolve the problem.  It
> appears that the same Ruby / Watir combination works for some people
> and does not work for others as far as handling the javascript
> popups.  Because of this, we think there is some system setting that
> makes the difference rather than it being strictly a Ruby and Watir
> problem.  If you have any insights on this, please share them.
>
> I will try to answer some of your questions.  First the normal "click"
> that brings up the javascript popup is blocking.  The script cannot
> proceed until the popup is dismissed.  If the code to dismiss the
> popup is in the same thread, it stays that way forever (well you know
> what I mean).  The "click_no_wait" is non blocking, which allows your
> script to continue with the routine to dismiss the popup.
>
> So, the short answer is that just "click" won't work for something
> that brings up a popup (I'll add the qualification that it does work
> if you create a separate thread to click the popup.  I only mention
> this because there some examples floating around that do that.  I do
> not want to lead you too far astray if you find one.)  So the
> preferred method of clicking something that brings up a popup is
> "click_no_wait".  Unfortunately, what I am seeing is that the button
> flashes but no popup ever comes up and the routine to click it times
> out.  I have had a little success with  "click!".  click!  is also not
> blocking.  That works one time for me but not the second time in the
> same script.
>
> I think the confusion about the page and page container has to do with
> confusion over the term "page".  The cucumber "page" is not the same
> exactly the same as the Watir "page".  Beyond that,  I cannot offer
> much information.  Just be aware that although people use the same
> "name" for things in different programs, they might not mean the same
> thing.
>
> Try the  click!  on the button that brings up the popup and see if
> that works for you (since it sounds like the click_no_wait doesn't
> work for you) and let us know your results.  If you figure anything
> out about system settings that might affect this, let us know.  If I
> find out anything else for you, I'll post it here.
>
> Jim
>
> On Mar 5, 8:12 am, andrew.d...@lthree.com wrote:
>
> > That got me further.
>
> > Now I have a question about click_no_wait. When I use just 'click', I
> > get a popup with an OK and Cancel button. When I use click_no_wait, I
> > am now not getting any popup. If I use sleep right after
> > click_no_wait, does the browser keep going so I would expect to see a
> > popup?
>
> > And no, the OK button is not getting clicked to clear the popup.
>
> > Here is the code.
>
> >     roles_page.roles.row(:name => "Test Role").col1_element.click
> > #click on checkbox
>
> > roles_page.bottom_delete.click_no_wait
> > # shows confirm dialog (only working if I use click)
> >     sleep 5
> >     startClicker
> > ("OK")
> > # try to click OK button, doesn't work
>
> > and startclicker is now
>
> > def startClicker( button_label , waitTime= 9, user_input=nil )
> >   # get a handle if one exists
> >   hwnd = nil
> >   begin
> >     hwnd = SITE.browser.enabled_popup(waitTime)
> >   rescue TimeOutException => e #<===This
> > exception is always thrown right now
> >     #popup not found
> >   end
>
> >   if (hwnd)  # yes there is a popup
> >     puts 'popup found'
> >     w = WinClicker.new
> >     w.makeWindowActive(hwnd)
>
> >     if ( user_input )
> >       w.setTextValueForFileNameField( hwnd, "#{user_input}" )
> >     end
>
> >     # "OK" or whatever the name on the button is
> >     puts "Trying to click on " + button_label
> >     w.clickWindowsButton_hwnd( hwnd, button_label )
> >     #
> >     # this is just cleanup
> >     w=nil
> >   else
> >     puts "No popup found"
> >   end
> > end
>
> > On a side note, why is enabled_popup defined as part of PageContainer
> > if it is meant to be called fro

[wtr-general] Re: enabled_popup internal error

2009-03-05 Thread Jim Matthews

Glad to know that helped.  Now you are at the point I am at.  There
are several of us working to see if we can resolve the problem.  It
appears that the same Ruby / Watir combination works for some people
and does not work for others as far as handling the javascript
popups.  Because of this, we think there is some system setting that
makes the difference rather than it being strictly a Ruby and Watir
problem.  If you have any insights on this, please share them.

I will try to answer some of your questions.  First the normal "click"
that brings up the javascript popup is blocking.  The script cannot
proceed until the popup is dismissed.  If the code to dismiss the
popup is in the same thread, it stays that way forever (well you know
what I mean).  The "click_no_wait" is non blocking, which allows your
script to continue with the routine to dismiss the popup.

So, the short answer is that just "click" won't work for something
that brings up a popup (I'll add the qualification that it does work
if you create a separate thread to click the popup.  I only mention
this because there some examples floating around that do that.  I do
not want to lead you too far astray if you find one.)  So the
preferred method of clicking something that brings up a popup is
"click_no_wait".  Unfortunately, what I am seeing is that the button
flashes but no popup ever comes up and the routine to click it times
out.  I have had a little success with  "click!".  click!  is also not
blocking.  That works one time for me but not the second time in the
same script.

I think the confusion about the page and page container has to do with
confusion over the term "page".  The cucumber "page" is not the same
exactly the same as the Watir "page".  Beyond that,  I cannot offer
much information.  Just be aware that although people use the same
"name" for things in different programs, they might not mean the same
thing.

Try the  click!  on the button that brings up the popup and see if
that works for you (since it sounds like the click_no_wait doesn't
work for you) and let us know your results.  If you figure anything
out about system settings that might affect this, let us know.  If I
find out anything else for you, I'll post it here.

Jim

On Mar 5, 8:12 am, andrew.d...@lthree.com wrote:
> That got me further.
>
> Now I have a question about click_no_wait. When I use just 'click', I
> get a popup with an OK and Cancel button. When I use click_no_wait, I
> am now not getting any popup. If I use sleep right after
> click_no_wait, does the browser keep going so I would expect to see a
> popup?
>
> And no, the OK button is not getting clicked to clear the popup.
>
> Here is the code.
>
>     roles_page.roles.row(:name => "Test Role").col1_element.click
> #click on checkbox
>
> roles_page.bottom_delete.click_no_wait
> # shows confirm dialog (only working if I use click)
>     sleep 5
>     startClicker
> ("OK")
> # try to click OK button, doesn't work
>
> and startclicker is now
>
> def startClicker( button_label , waitTime= 9, user_input=nil )
>   # get a handle if one exists
>   hwnd = nil
>   begin
>     hwnd = SITE.browser.enabled_popup(waitTime)
>   rescue TimeOutException => e #<===This
> exception is always thrown right now
>     #popup not found
>   end
>
>   if (hwnd)  # yes there is a popup
>     puts 'popup found'
>     w = WinClicker.new
>     w.makeWindowActive(hwnd)
>
>     if ( user_input )
>       w.setTextValueForFileNameField( hwnd, "#{user_input}" )
>     end
>
>     # "OK" or whatever the name on the button is
>     puts "Trying to click on " + button_label
>     w.clickWindowsButton_hwnd( hwnd, button_label )
>     #
>     # this is just cleanup
>     w=nil
>   else
>     puts "No popup found"
>   end
> end
>
> On a side note, why is enabled_popup defined as part of PageContainer
> if it is meant to be called from a browser object only?
>
> On Mar 4, 3:21 pm, Jim Matthews  wrote:
>
> > OK, too bad you did not include this originally.  I think I know what
> > the problem is.  At least I see something that is a problem.  You
> > have:
>
> > hwnd = page_container.enabled_popup(waitTime)
>
> > hwnd belongs to the browser, not the page, so you have to reference
> > the borwser object like:
>
> > hwnd = $ie.enabled_popup(waitTime)
>
> > or change $ie to browser, or whatever you have defined as your browser
> > object.
>
> > I am doing something similar with Cucumber and I am having trouble
> > with this.  It successfully dismisses the first popu

[wtr-general] Re: Watir users: What is your role at work?

2009-03-04 Thread Jim Knowlton

George, BTW I actually have a blog where I talk about my experiences
with Ruby/Watir/RSpec...feel free to check it out.  The url is
http://www.agilerubytester.com.


On Mar 4, 7:39 am, "george.sand...@gmail.com"
 wrote:
> I was just curious to know who is purely a QA tester (like myself) and
> who is both a tester and a developer...
--~--~-~--~~~---~--~~
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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Watir users: What is your role at work?

2009-03-04 Thread Jim Knowlton

I'm a test developer who uses Ruby/Watir for developing automated
tests.  As with Lisa, the test code is managed like production code
(checked into Subversion, tagged, etc).  I think one of the big
advantages of the Ruby/Watir solution is that the language is fairly
straightforward for someone to pick up quickly, but because it is Ruby
under the hood, I can do system-level scripting (connecting to other
network shares, parsing log files or the Windows Event Log using
regular expressions, running complex queries against a database) as
well as driving the website.  It provides a fairly complete solution
for testing an enterprise web application.  Even if I want to use
another language for certain tests (I've written some Powershell tests
to access COM objects), I can run those from the command line and wrap
them in a Ruby script with RSpec examples.

On Mar 4, 7:39 am, "george.sand...@gmail.com"
 wrote:
> I was just curious to know who is purely a QA tester (like myself) and
> who is both a tester and a developer...
--~--~-~--~~~---~--~~
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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: enabled_popup internal error

2009-03-04 Thread Jim Matthews

OK, too bad you did not include this originally.  I think I know what
the problem is.  At least I see something that is a problem.  You
have:

hwnd = page_container.enabled_popup(waitTime)

hwnd belongs to the browser, not the page, so you have to reference
the borwser object like:

hwnd = $ie.enabled_popup(waitTime)

or change $ie to browser, or whatever you have defined as your browser
object.

I am doing something similar with Cucumber and I am having trouble
with this.  It successfully dismisses the first popup I hit but does
not work on the second.  I hope it works for you.  Let me know,  I am
still trying to figure out the difference.

Jim

On Mar 4, 3:55 pm, andrew.d...@lthree.com wrote:
> Here is the code
>
> def startClicker( page_container, button , waitTime= 9,
> user_input=nil )
>   # get a handle if one exists
>   hwnd = page_container.enabled_popup(waitTime)
>   if (hwnd)  # yes there is a popup
>     puts 'popup found'
>     w = WinClicker.new
>     w.makeWindowActive(hwnd)
>
>     if ( user_input )
>       w.setTextValueForFileNameField( hwnd, "#{user_input}" )
>     end
>
>     # "OK" or whatever the name on the button is
>     puts "Trying to click on " + button
>     w.clickWindowsButton_hwnd( hwnd, button )
>     #
>     # this is just cleanup
>     w=nil
>   else
>     puts "No popup found"
>   end
> end
>
> which is triggered by this cucumber step
>
> Then 'I delete the Test Role role' do
>     roles_page.roles.row(:name => "Test Role").col1_element.click
> #clicks on a checkbox (works fine)
>     roles_page.bottom_delete.click_no_wait        # clicks on the
> delete button (works fine)
>     sleep 5
>     startClicker(roles_page.logon_frame, "OK")   # call function above
> end
>
> logon_frame is actually a  reference. I am thinking the first
> parm might be wrong, but what should it be? The browser ref?
> On Mar 4, 1:44 pm, Jim Matthews  wrote:
>
> > OK, I looked at example 4.
>
> > I noticed that the example incorrectly says require 'Watir' instead of
> > require 'watir' (the W should be lowercase).
>
> > and I assume that you did the :
>
> > require 'watir/contrib/enabled_popup'
>
> > and I assume you have done some sort of attach of "browser" that
> > connects it to an IE browser, then does your code fail on the
>
> > hwnd = browser.enabled_popup(5)       ?
>
> > browser.enabled_popup should return a hwnd only if the browser has a
> > popup currently displayed.
>
> > You can use fxri to help you figure out what is going wrong.  If this
> > is not correct or does not make sense, include your code.  I also
> > assume we are still working on the original:
>
> >  undefined local variable or method `hwnd' for # > 0x3d7b4d4>
>
> > problem?
>
> > Jim
>
> > On Mar 4, 1:23 pm, andrew.d...@lthree.com wrote:
>
> > > I was basing my code on example 4. Use click_no_wait on a button I
> > > know will cause a popup, and then call enabled_popup. The call from
> > > enabled_popup never returns. I can post the entire exception trace if
> > > that helps.
>
> > > On Mar 4, 8:26 am, Jim Matthews  wrote:
>
> > > > From your first post, I am not sure how you are trying to use
> > > > ie.enabled_popup.
>
> > > > I assume you are trying to something like what is described on the
> > > > wiki:
>
> > > >http://wiki.openqa.org/display/WTR/JavaScript+Pop+Ups
>
> > > > I do not know which example you are following.  If you take this one
> > > > for example,
>
> > > > require 'watir/contrib/enabled_popup'
>
> > > > def popupChecker(text)
> > > >     Timeout::timeout(2)do
> > > >         begin
> > > >             if ie.enabled_popup
> > > >                 hwnd = ie.enabled_popup(5)
> > > >                 w = WinClicker.new
> > > >                 w.makeWindowActive(hwnd)
> > > >                 w.clickWindowsButton_hWnd(hwnd,text)
> > > >             end
> > > >         rescue Timeout::Error
> > > >             puts 'No popup existed'
> > > >         end
> > > >     end
> > > > end
>
> > > > The strange thing to me is that the error you show references a Watir
> > > > frame.  A frame would not have an hwnd associated with it directly, so
> > > > I am not sure how you even got the error.
>
> > > > I am trying to use the 

[wtr-general] Re: enabled_popup internal error

2009-03-04 Thread Jim Matthews

OK, I looked at example 4.

I noticed that the example incorrectly says require 'Watir' instead of
require 'watir' (the W should be lowercase).

and I assume that you did the :

require 'watir/contrib/enabled_popup'

and I assume you have done some sort of attach of "browser" that
connects it to an IE browser, then does your code fail on the

hwnd = browser.enabled_popup(5)   ?

browser.enabled_popup should return a hwnd only if the browser has a
popup currently displayed.

You can use fxri to help you figure out what is going wrong.  If this
is not correct or does not make sense, include your code.  I also
assume we are still working on the original:

 undefined local variable or method `hwnd' for #

problem?

Jim

On Mar 4, 1:23 pm, andrew.d...@lthree.com wrote:
> I was basing my code on example 4. Use click_no_wait on a button I
> know will cause a popup, and then call enabled_popup. The call from
> enabled_popup never returns. I can post the entire exception trace if
> that helps.
>
> On Mar 4, 8:26 am, Jim Matthews  wrote:
>
> > From your first post, I am not sure how you are trying to use
> > ie.enabled_popup.
>
> > I assume you are trying to something like what is described on the
> > wiki:
>
> >http://wiki.openqa.org/display/WTR/JavaScript+Pop+Ups
>
> > I do not know which example you are following.  If you take this one
> > for example,
>
> > require 'watir/contrib/enabled_popup'
>
> > def popupChecker(text)
> >     Timeout::timeout(2)do
> >         begin
> >             if ie.enabled_popup
> >                 hwnd = ie.enabled_popup(5)
> >                 w = WinClicker.new
> >                 w.makeWindowActive(hwnd)
> >                 w.clickWindowsButton_hWnd(hwnd,text)
> >             end
> >         rescue Timeout::Error
> >             puts 'No popup existed'
> >         end
> >     end
> > end
>
> > The strange thing to me is that the error you show references a Watir
> > frame.  A frame would not have an hwnd associated with it directly, so
> > I am not sure how you even got the error.
>
> > I am trying to use the routine above and am finding that there must be
> > some things on my system that keep it from working all the time.
> > Sometimes it dismisses the popup and sometimes it doesn't.
>
> > Jim
>
> > On Mar 4, 5:26 am, andrew.d...@lthree.com wrote:
>
> > > Its not my code that is throwing the error. Here is the code for
> > > enabled popup from my watir install. The line generating the error is
> > > hwnd_modal, arr = GetWindow.call(hwnd, GW_ENABLEDPOPUP) - hwnd is
> > > undefined.
>
> > > module Watir
> > >   module PageContainer
> > >     include Win32
> > >     def enabled_popup(timeout=4)
> > >       # Use handle of our parent window to see if we have any
> > > currently
> > >       # enabled popup.
> > >       hwnd_modal = 0
> > >       Waiter.wait_until(timeout) do
> > >         hwnd_modal, arr = GetWindow.call(hwnd, GW_ENABLEDPOPUP)
> > >         hwnd_modal > 0
> > >       end
> > >       # use hwnd() method to find the IE or Container hwnd (overriden
> > > by IE)
> > >       if hwnd_modal == hwnd() || 0 == hwnd_modal
> > >         hwnd_modal = nil
> > >       end
> > >       hwnd_modal
> > >     end
> > >   end
> > > end
>
> > > On Mar 3, 1:49 pm, Jim Matthews  wrote:
>
> > > > I thought you were having the same problem I am with popups, but I
> > > > think yours is different at this point.
>
> > > > The window handle is going to be on the browser and not a part of the
> > > > DOM.
>
> > > > You have to get the hwnd off the browser and go from there.
>
> > > > Jim
>
> > > > On Mar 3, 1:16 pm, andrew.d...@lthree.com wrote:
>
> > > > > Trying to execute enabled_popup and it is throwing an exception
>
> > > > >  undefined local variable or method `hwnd' for # > > > > 0x3d7b4d4>
>
> > > > > I checked the source for enabled_popup and it does seem to have an
> > > > > undeclared variable. Is this working for other people. Working on
> > > > > latest version of watir.- Hide quoted text -
>
> > > > - Show quoted text -- Hide quoted text -
>
> > - Show quoted text -
--~--~-~--~~~---~--~~
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
To unsubscribe from this group, send email to 
watir-general+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general?hl=en
-~--~~~~--~~--~--~---



[wtr-general] Re: enabled_popup internal error

2009-03-04 Thread Jim Matthews

>From your first post, I am not sure how you are trying to use
ie.enabled_popup.

I assume you are trying to something like what is described on the
wiki:

http://wiki.openqa.org/display/WTR/JavaScript+Pop+Ups

I do not know which example you are following.  If you take this one
for example,

require 'watir/contrib/enabled_popup'

def popupChecker(text)
Timeout::timeout(2)do
begin
if ie.enabled_popup
hwnd = ie.enabled_popup(5)
w = WinClicker.new
w.makeWindowActive(hwnd)
w.clickWindowsButton_hWnd(hwnd,text)
end
rescue Timeout::Error
puts 'No popup existed'
end
end
end

The strange thing to me is that the error you show references a Watir
frame.  A frame would not have an hwnd associated with it directly, so
I am not sure how you even got the error.

I am trying to use the routine above and am finding that there must be
some things on my system that keep it from working all the time.
Sometimes it dismisses the popup and sometimes it doesn't.

Jim

On Mar 4, 5:26 am, andrew.d...@lthree.com wrote:
> Its not my code that is throwing the error. Here is the code for
> enabled popup from my watir install. The line generating the error is
> hwnd_modal, arr = GetWindow.call(hwnd, GW_ENABLEDPOPUP) - hwnd is
> undefined.
>
> module Watir
>   module PageContainer
>     include Win32
>     def enabled_popup(timeout=4)
>       # Use handle of our parent window to see if we have any
> currently
>       # enabled popup.
>       hwnd_modal = 0
>       Waiter.wait_until(timeout) do
>         hwnd_modal, arr = GetWindow.call(hwnd, GW_ENABLEDPOPUP)
>         hwnd_modal > 0
>       end
>       # use hwnd() method to find the IE or Container hwnd (overriden
> by IE)
>       if hwnd_modal == hwnd() || 0 == hwnd_modal
>         hwnd_modal = nil
>       end
>       hwnd_modal
>     end
>   end
> end
>
> On Mar 3, 1:49 pm, Jim Matthews  wrote:
>
> > I thought you were having the same problem I am with popups, but I
> > think yours is different at this point.
>
> > The window handle is going to be on the browser and not a part of the
> > DOM.
>
> > You have to get the hwnd off the browser and go from there.
>
> > Jim
>
> > On Mar 3, 1:16 pm, andrew.d...@lthree.com wrote:
>
> > > Trying to execute enabled_popup and it is throwing an exception
>
> > >  undefined local variable or method `hwnd' for # > > 0x3d7b4d4>
>
> > > I checked the source for enabled_popup and it does seem to have an
> > > undeclared variable. Is this working for other people. Working on
> > > latest version of watir.- Hide quoted text -
>
> > - Show quoted text -
--~--~-~--~~~---~--~~
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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: enabled_popup internal error

2009-03-03 Thread Jim Matthews

I thought you were having the same problem I am with popups, but I
think yours is different at this point.

The window handle is going to be on the browser and not a part of the
DOM.

You have to get the hwnd off the browser and go from there.

Jim

On Mar 3, 1:16 pm, andrew.d...@lthree.com wrote:
> Trying to execute enabled_popup and it is throwing an exception
>
>  undefined local variable or method `hwnd' for # 0x3d7b4d4>
>
> I checked the source for enabled_popup and it does seem to have an
> undeclared variable. Is this working for other people. Working on
> latest version of watir.
--~--~-~--~~~---~--~~
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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: click_no_wait and click! not working

2009-03-03 Thread Jim Matthews

Here are the steps to reproduct the problem.  First bring up unittests
\html\popups1.html in IE.

\Ruby\lib\ruby\gems\1.8\gems\watir-1.6.2\unittests\html\popups1.html

Next run this script.  I have extra "puts" in it to try to figure out
what is going on. They can be remvoed or commented out.

Jim

require 'watir'
require 'watir/ie'
require 'watir/testcase'
require 'watir/contrib/enabled_popup'

class StepTests < Watir::TestCase
  def test_01_step_test
browser = Watir::IE.attach(:title, /Test page for/)
browser.row(:index, 3).button(:type, 'button').click!
popupchecker(browser, 'OK')
  end
  def popupchecker(browser, text)
Timeout::timeout(2) do
  begin
puts "Inside begin of popupcuecker."
puts "browser.enabled_popup == #{browser.enabled_popup}"
if browser.enabled_popup
  puts "In if in popupchecker."
  hwnd = browser.enabled_popup(5)
  puts hwnd.to_s
  w = WinClicker.new
  w.makeWindowActive(hwnd)
  w.clickWindowsButton_hwnd(hwnd, text)
end
rescue Timeout::Error
  puts 'No popup existed.'
  end
end
  end
end



On Mar 2, 10:12 am, Jim Matthews  wrote:
> I am trying to deal with javascript popups.  I have created the
> popupchecker method described on the wiki.
>
> When I used click_no_wait,  the popup came up but was not dismissed.
> Someone suggested that I try click! instead of click_no_wait because
> of some problems mentioned in recent posts.  I did that and click!
> worked for the first popup.  It dismissed it and the script continued.
>
> When the script got to the second popup, neither click_no_wait nor
> click! worked to dismiss the popup.  I put some "puts" statements is
> the popupchecker method and it appears from that, that popupchecker is
> not getting called the second time until after I manually dismiss the
> second popup.
>
> I know the popupchecker code works because it successfully dismisses
> the first popup and because I have used fxri with popupchecker to
> dismiss both the popups.
>
> Does anyone have an idea what is going on or something different to
> try?
>
> Jim
--~--~-~--~~~---~--~~
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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] click_no_wait and click! not working

2009-03-02 Thread Jim Matthews

I am trying to deal with javascript popups.  I have created the
popupchecker method described on the wiki.

When I used click_no_wait,  the popup came up but was not dismissed.
Someone suggested that I try click! instead of click_no_wait because
of some problems mentioned in recent posts.  I did that and click!
worked for the first popup.  It dismissed it and the script continued.

When the script got to the second popup, neither click_no_wait nor
click! worked to dismiss the popup.  I put some "puts" statements is
the popupchecker method and it appears from that, that popupchecker is
not getting called the second time until after I manually dismiss the
second popup.

I know the popupchecker code works because it successfully dismisses
the first popup and because I have used fxri with popupchecker to
dismiss both the popups.

Does anyone have an idea what is going on or something different to
try?

Jim


--~--~-~--~~~---~--~~
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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: click! method

2009-02-26 Thread Jim Knowlton

So is it a safe assumption that all the methods that don't have
descriptions aren't meant to be called directly?

On Feb 26, 7:07 am, Bret Pettichord  wrote:
> It is used by click_no_wait. It was not designed to be used directly,
> therefore not documented.
--~--~-~--~~~---~--~~
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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] click! method

2009-02-25 Thread Jim Knowlton

Can someone explain to me what the click! method is for?  It doesn't
have a description in the rdoc, so I was just curious what it is for.

Thanks,

Jim Knowlton
http://www.agilerubytester.com

--~--~-~--~~~---~--~~
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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: New blog on agile testing with Ruby, Watir & RSpec - www.agilerubytester.com

2009-02-25 Thread Jim Knowlton

Thanks Bret!  I'll take a look at it this weekend and let you know
what I think.

Jim

On Feb 25, 3:35 pm, Bret Pettichord  wrote:
> Jim,
>
> You might want to take a look at the WatirCraft framework. It supports
> rspec and libraries, and it has a script/console that is like the
> watir-console (which i also created) but is even better. It will include
> you libraries without you having to muck with your .irbrc.
>
> The biggest problem with it right now is that there is no documentation.
> But if you will take a look at it, I am happy to answer questions (to
> you or any one else), and your questions will help motivate me to write
> more documentation.
>
> So far, here is what there is:
>
> http://github.com/bret/watircraft/tree/master(look at the 
> bottom)http://bpettichord.backpackit.com/pub/1648993
>
> Questions, please, here or on irc. But i will be mostly away from my
> computer the next two days. Sorry.
>
> Bret
>
>
>
> Jim Knowlton wrote:
> > Thanks Charley!  Feel free to let me know about any ideas you have or
> > tools you've found that would be of particular value to testers.
>
> > I like your blog, I'll be adding it to my blogroll.
>
> > On Feb 25, 12:47 pm, Charley Baker  wrote:
>
> >> Awesome, nice post. Welcome to the community.
>
> >> Charley Baker
> >> blog:http://charleybakersblog.blogspot.com/
> >> Lead Developer, Watir,http://wtr.rubyforge.org
> >> QA Architect, Gap Inc Direct
>
> >> On Wed, Feb 25, 2009 at 12:54 PM, Jim Knowlton 
> >> wrote:
>
> >>> Hi, my name is Jim Knowlton.  I'm a QA Engineer who works with Ruby
> >>> and Watir (and RSpec) in the doing of my job (testing web
> >>> applications).  I've started a blog on my experiences and lessons
> >>> learned.  It is is athttp://agilerubytester.com.  Feel free to check
> >>> it out and comment on any of the postings.
>
> >>> My most recent post is on "customizing watir-console".
>
> >>> Thanks,
>
> >>> Jim- Hide quoted text -
>
> >> - Show quoted text -- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: New blog on agile testing with Ruby, Watir & RSpec - www.agilerubytester.com

2009-02-25 Thread Jim Knowlton

Thanks Charley!  Feel free to let me know about any ideas you have or
tools you've found that would be of particular value to testers.

I like your blog, I'll be adding it to my blogroll.

On Feb 25, 12:47 pm, Charley Baker  wrote:
> Awesome, nice post. Welcome to the community.
>
> Charley Baker
> blog:http://charleybakersblog.blogspot.com/
> Lead Developer, Watir,http://wtr.rubyforge.org
> QA Architect, Gap Inc Direct
>
> On Wed, Feb 25, 2009 at 12:54 PM, Jim Knowlton wrote:
>
>
>
>
>
> > Hi, my name is Jim Knowlton.  I'm a QA Engineer who works with Ruby
> > and Watir (and RSpec) in the doing of my job (testing web
> > applications).  I've started a blog on my experiences and lessons
> > learned.  It is is athttp://agilerubytester.com.  Feel free to check
> > it out and comment on any of the postings.
>
> > My most recent post is on "customizing watir-console".
>
> > Thanks,
>
> > Jim- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] New blog on agile testing with Ruby, Watir & RSpec - www.agilerubytester.com

2009-02-25 Thread Jim Knowlton

Hi, my name is Jim Knowlton.  I'm a QA Engineer who works with Ruby
and Watir (and RSpec) in the doing of my job (testing web
applications).  I've started a blog on my experiences and lessons
learned.  It is is at http://agilerubytester.com.  Feel free to check
it out and comment on any of the postings.

My most recent post is on "customizing watir-console".

Thanks,

Jim

--~--~-~--~~~---~--~~
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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: LoadError: 14001: This application has failed to start because....

2009-02-24 Thread Jim Matthews

That error has been around a long time and only concerns the
documentation for builder.  I has no effect on the way it runs.

Jim

On Feb 24, 10:20 am, AR  wrote:
> While viewing the watir installation again, I do get one error, but it
> seems to be fairly innocuous:
>
> ERROR:  While generating documentation for builder-2.1.2
> ... MESSAGE:   Unhandled special: Special: type=17, text=""
> ... RDOC args: --ri --op C:/Ruby/lib/ruby/gems/1.8/doc/builder-2.1.2/
> ri --title
> Builder -- Easy XML Building --main README --line-numbers --quiet lib
> CHANGES Ra
> kefile README doc/releases/builder-1.2.4.rdoc doc/releases/
> builder-2.0.0.rdoc do
> c/releases/builder-2.1.1.rdoc
> (continuing with the rest of the installation)
>
> On Feb 24, 9:24 am, AR  wrote:
>
> > I'm getting this strange error after our Ops team built us some new
> > testing VMs.  I installed Ruby and Watir, and am getting the same
> > error for anything that includes Watir.  I can go into IRB and do Ruby
> > all day, but as soon as I enter "ie = Watir::IE.new", I get the
> > following error.  Has anyone else seen this?
>
> > I have reinstalled Ruby and Watir.  IE7 is installed.  All windows
> > updates have been installed.
>
> > OS: Windows 2k3 Server RC2
> > RUBY: 1.8.6 (2008-08-11 patchlevel 287) [i386-mswin32]
> > WATIR: (installed from gem, crashes when I try to run any watir-
> > related command including VERSION)
>
> > irb(main):006:0> ie = Watir::IE.new
> > LoadError: 14001: This application has failed to start because the
> > application c
> > onfiguration is incorrect. Reinstalling the application may fix this
> > problem.
> > - C:/Ruby/lib/ruby/gems/1.8/gems/win32-api-1.4.0-x86-mswin32-80/lib/
> > win32/api.so
>
> >         from C:/Ruby/lib/ruby/gems/1.8/gems/win32-api-1.4.0-x86-
> > mswin32-80/lib/w
> > in32/api.so
> >         from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
> > 31:in `re
> > quire'
> >         from C:/Ruby/lib/ruby/gems/1.8/gems/windows-api-0.3.0/lib/
> > windows/api.rb
> > :1
> >         from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
> > 31:in `ge
> > m_original_require'
> >         from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
> > 31:in `re
> > quire'
> >         from C:/Ruby/lib/ruby/gems/1.8/gems/windows-pr-0.9.3/lib/
> > windows/error.r
> > b:12
> >         from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
> > 31:in `ge
> > m_original_require'
> >         from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
> > 31:in `re
> > quire'
> >         from C:/Ruby/lib/ruby/gems/1.8/gems/win32-process-0.5.9/lib/
> > win32/proces
> > s.rb:1
> >         from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
> > 31:in `ge
> > m_original_require'
> >         from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
> > 31:in `re
> > quire'
> >         from C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-
> > process.rb:
> > 1
> >         from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
> > 31:in `ge
> > m_original_require'
> >         from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
> > 31:in `re
> > quire'
> >         from C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
> > ie.rb:45
> >         from (irb):6
> > irb(main):007:0>
--~--~-~--~~~---~--~~
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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Watir -- Methods

2009-02-23 Thread Jim Matthews

That is strange.  Test::Unit should be automatically installed with
the Ruby installation.

When I have seen the "LoadError" problem, it has been because of
RUBYOPT not being defined.

One thing I noticed, your rubygems did not have the hyphen in front of
it and that is got split on the line I wrote before.  Make sure it
looks like this:

RUBYOPT = -rubygems

I don't know what else to suggest right now.

Jim

On Feb 23, 11:59 am, Smita Godbole  wrote:
> Actually it is there.  I have total 3 environment variable
> Path =C:\ruby\bin ;
> PATHEXT = RB ;RBW
> and RUBYOPT = rubygems
>
> Thanks
> Smita
>
> On Mon, Feb 23, 2009 at 12:45 PM, Jim Matthews  wrote:
>
> > Usually when you get a load error on a gem that really is installed,
> > it is because the environmental variable RUBYOPT is not set.
>
> > Check your environmental variables and if RUBYOPT is not set to -
> > rubygems, then add it.
>
> > You can find environmental variables in the Advanced tab of "My
> > Computer" "Properties".
>
> > Jim
>
> > On Feb 23, 11:33 am, Smita Godbole  wrote:
> > > Hi Tiffany,
> > > Thank you very much.  One more question I have, is there any test that
> > can
> > > verify the Test::Unit installation?
> > > I tried running core_test.rb file and got following error i.e.
>
> > > C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
> > > `gem_original_require': no such file to load -- unittests/setup/lib
> > > (LoadError)
> > >  from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
> > > `require'
> > >  from ./../unittests/setup.rb:21
> > >  from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
> > > `gem_original_require'
> > >  from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
> > > `require'
> > >  from core_tests.rb:
> > > I really don't know what to do here.  some one on internet suggested
> > doing
> > > 'sudo' and it gave me error too.  So kind of confused.
> > > Thanks
> > > Smita
>
> >  > On Fri, Feb 20, 2009 at 3:40 PM, Tiffany Fodor 
> > wrote:
>
> > > > Hi Smita - welcome to Watir!
>
> > > > Watir is a Ruby library that allows you to manipulate objects on web
> > > > pages, not a framework for tests.  I think you're asking about how to
> > > > set up a framework of Watir tests and that depends on your situation.
> > > > You might want to check out Test::Unit, RSpec, Rasta and Watirloo as
> > > > potential frameworks.
>
> > > > If you haven't already, take a look at the wiki for a tutorial.  The
> > > > 'Learning More' section has examples of various frameworks.
>
> > > >http://wiki.openqa.org/display/WTR/Project+Home
>
> > > > I hope this helps!
>
> > > > -Tiffany
>
> > > > On Feb 20, 10:12 am, Smita Godbole  wrote:
> > > > > Hi,
>
> > > > > I am very new to Watir.  Still reading and evaluating it.  I want to
> > know
> > > > > where can I save methods written in Watir?  Is there any specific
> > folder
> > > > for
> > > > > it?  How can I execute these written methods?
>
> > > > > Thanks
> > > > > Smita
--~--~-~--~~~---~--~~
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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Watir -- Methods

2009-02-23 Thread Jim Matthews

Usually when you get a load error on a gem that really is installed,
it is because the environmental variable RUBYOPT is not set.

Check your environmental variables and if RUBYOPT is not set to -
rubygems, then add it.

You can find environmental variables in the Advanced tab of "My
Computer" "Properties".

Jim

On Feb 23, 11:33 am, Smita Godbole  wrote:
> Hi Tiffany,
> Thank you very much.  One more question I have, is there any test that can
> verify the Test::Unit installation?
> I tried running core_test.rb file and got following error i.e.
>
> C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
> `gem_original_require': no such file to load -- unittests/setup/lib
> (LoadError)
>  from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
> `require'
>  from ./../unittests/setup.rb:21
>  from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
> `gem_original_require'
>  from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
> `require'
>  from core_tests.rb:
> I really don't know what to do here.  some one on internet suggested doing
> 'sudo' and it gave me error too.  So kind of confused.
> Thanks
> Smita
>
> On Fri, Feb 20, 2009 at 3:40 PM, Tiffany Fodor  wrote:
>
> > Hi Smita - welcome to Watir!
>
> > Watir is a Ruby library that allows you to manipulate objects on web
> > pages, not a framework for tests.  I think you're asking about how to
> > set up a framework of Watir tests and that depends on your situation.
> > You might want to check out Test::Unit, RSpec, Rasta and Watirloo as
> > potential frameworks.
>
> > If you haven't already, take a look at the wiki for a tutorial.  The
> > 'Learning More' section has examples of various frameworks.
>
> >http://wiki.openqa.org/display/WTR/Project+Home
>
> > I hope this helps!
>
> > -Tiffany
>
> > On Feb 20, 10:12 am, Smita Godbole  wrote:
> > > Hi,
>
> > > I am very new to Watir.  Still reading and evaluating it.  I want to know
> > > where can I save methods written in Watir?  Is there any specific folder
> > for
> > > it?  How can I execute these written methods?
>
> > > Thanks
> > > Smita
--~--~-~--~~~---~--~~
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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Installing Watir

2009-02-23 Thread Jim Matthews

If you do the "one click" Ruby install and do not do silent mode,
there is a "Choose Components" screen that allows you to select
"SciTE" and select "Enable RubyGems".

Jim

On Feb 23, 11:17 am, "Darin Duphorn" 
wrote:
> I didn't see that option, but I have to install on everyones machine, so I 
> will look for it.
>
> Thanks,
>
> Darin
>
> -Original Message-
> From: watir-general@googlegroups.com [mailto:watir-gene...@googlegroups.com] 
> On Behalf Of Jim Matthews
> Sent: Monday, February 23, 2009 11:09 AM
> To: Watir General
> Subject: [wtr-general] Re: Installing Watir
>
> I believe that the:
>
> RUBYOPT - Value = -rubygems
>
> is controlled by the "enable Ruby gems" setting in the install
> process.
> Make sure you select the enable Ruby gems and it creates the variable
> if it does not exist.
>
> Jim
>
> On Feb 23, 10:55 am, Moochie  wrote:
> > Why doesn't it automatically update your system setting when
> > installing ruby?
>
> > I have to always repeat the following everytime I upgrade to a newer
> > version before I can run gem Install watir.
>
> > Goto Setting ->Control Panel-> System
> > Click Advanced Tab
> > Click Environment Variables
> > Under Path Variable verify C:\Ruby\bin Exists.  If not add it.
> > Under PATHEXT Variable verify .RB exists.  If not add it
> > If variable RUBYOPT Doesn't Exist add it
> > RUBYOPT - Value = -rubygems
>
> > Thanks,
--~--~-~--~~~---~--~~
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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Installing Watir

2009-02-23 Thread Jim Matthews

I believe that the:

RUBYOPT - Value = -rubygems

is controlled by the "enable Ruby gems" setting in the install
process.
Make sure you select the enable Ruby gems and it creates the variable
if it does not exist.

Jim


On Feb 23, 10:55 am, Moochie  wrote:
> Why doesn't it automatically update your system setting when
> installing ruby?
>
> I have to always repeat the following everytime I upgrade to a newer
> version before I can run gem Install watir.
>
> Goto Setting ->Control Panel-> System
> Click Advanced Tab
> Click Environment Variables
> Under Path Variable verify C:\Ruby\bin Exists.  If not add it.
> Under PATHEXT Variable verify .RB exists.  If not add it
> If variable RUBYOPT Doesn't Exist add it
> RUBYOPT - Value = -rubygems
>
> Thanks,
--~--~-~--~~~---~--~~
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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Problem displaying XML file with XSL in Firefox and Safari

2009-01-30 Thread Jim Matthews

Does Firefox require a plugin to make this work?


On Jan 30, 9:44 am, Jim Matthews  wrote:
> Good that you could read my mind and know that I was talking about XSL
> instead of xls.
>
> Anyway, I tried your new stylesheet and it still works for me in IE
> but it still does not work in Firefox for me.  I did not try Safari
> yet since it did not work in Firefox.  Any other thoughts?
>
> Jim
>
> On Jan 29, 6:19 pm, Tiffany Fodor  wrote:
>
> > I've updated my example harness in the wiki to include a stylesheet
> > with this fix.  I've verified that it works with IE, Firefox, and
> > Opera, but I don't have Safari installed anywhere.
>
> > If anyone is interested in using ci_reporter to report test results,
> > you can find an example of how to use it here:
>
> >http://wiki.openqa.org/display/WTR/Excel+Data+Driven+Harness+with+Dat...
>
> > -Tiffany
>
> > On Jan 29, 4:42 pm, Tiffany Fodor  wrote:
>
> > > Hey Jim!
>
> > > I found a conditional you can add to the stylesheet so you can view
> > > the results in Firefox.  If you add this line of code to the
> > > stylesheet after line 2, it works for me.
>
> > > 
>
> > > I can post a new stylesheet to the wiki.
>
> > > Hope this helps!
>
> > > -Tiffany
>
> > > On Jan 29, 4:02 pm, Jim Matthews  wrote:
>
> > > > I am using ci_reporter to produce XML output from test runs from Watir
> > > > tests.
>
> > > > Tiffany supplied an XLS file to reference in the XML file, which works
> > > > fine in IE.  The problem is that when you try to view the XML file in
> > > > Firefox or Safari, the file looks like raw XML.
>
> > > > I was wondering if anyone had a similar experience with XLS and knew
> > > > if you had to do something different to get it to work with Firefox or
> > > > Safari.  If you would like to see what is happening, you can goto:
>
> > > >http://www.watirbuild.com/builds/watir/1681.3
>
> > > > Jim
--~--~-~--~~~---~--~~
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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Problem displaying XML file with XSL in Firefox and Safari

2009-01-30 Thread Jim Matthews

Good that you could read my mind and know that I was talking about XSL
instead of xls.

Anyway, I tried your new stylesheet and it still works for me in IE
but it still does not work in Firefox for me.  I did not try Safari
yet since it did not work in Firefox.  Any other thoughts?

Jim

On Jan 29, 6:19 pm, Tiffany Fodor  wrote:
> I've updated my example harness in the wiki to include a stylesheet
> with this fix.  I've verified that it works with IE, Firefox, and
> Opera, but I don't have Safari installed anywhere.
>
> If anyone is interested in using ci_reporter to report test results,
> you can find an example of how to use it here:
>
> http://wiki.openqa.org/display/WTR/Excel+Data+Driven+Harness+with+Dat...
>
> -Tiffany
>
> On Jan 29, 4:42 pm, Tiffany Fodor  wrote:
>
> > Hey Jim!
>
> > I found a conditional you can add to the stylesheet so you can view
> > the results in Firefox.  If you add this line of code to the
> > stylesheet after line 2, it works for me.
>
> > 
>
> > I can post a new stylesheet to the wiki.
>
> > Hope this helps!
>
> > -Tiffany
>
> > On Jan 29, 4:02 pm, Jim Matthews  wrote:
>
> > > I am using ci_reporter to produce XML output from test runs from Watir
> > > tests.
>
> > > Tiffany supplied an XLS file to reference in the XML file, which works
> > > fine in IE.  The problem is that when you try to view the XML file in
> > > Firefox or Safari, the file looks like raw XML.
>
> > > I was wondering if anyone had a similar experience with XLS and knew
> > > if you had to do something different to get it to work with Firefox or
> > > Safari.  If you would like to see what is happening, you can goto:
>
> > >http://www.watirbuild.com/builds/watir/1681.3
>
> > > Jim
--~--~-~--~~~---~--~~
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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Problem displaying XML file with XLS in Firefox and Safari

2009-01-29 Thread Jim Matthews

I am using ci_reporter to produce XML output from test runs from Watir
tests.

Tiffany supplied an XLS file to reference in the XML file, which works
fine in IE.  The problem is that when you try to view the XML file in
Firefox or Safari, the file looks like raw XML.

I was wondering if anyone had a similar experience with XLS and knew
if you had to do something different to get it to work with Firefox or
Safari.  If you would like to see what is happening, you can goto:

http://www.watirbuild.com/builds/watir/1681.3

Jim
--~--~-~--~~~---~--~~
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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Cache/Cookies

2008-12-29 Thread Jim

Does anyone know how to clear cache (delete cookies) in a WATIR
script?  I need to delete my cookies at the beginning of my script.

thanks
--~--~-~--~~~---~--~~
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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Gracefully handling timeouts with FireWatir

2008-12-14 Thread Jim Cropcho

I am using FireWatir with a web app which pulls from several ad
networks, in addition to its own content. A steady tide of
XmlHttpRequests ('XHRs') ensures, to my dismay, that Firefox never
thinks the page stops loading. If I manually stop pageload, the script
continues as intended. However, if I do not, then the script hangs
indefinitely.

My ideal solution is to press the browser's "stop" button within
Firewatir. I would also be okay with returning focus to the script
after certain DOM elements are visible, but I am accepting any
proposed solutions, frankly.

I know that this issue has been addressed to a limited extent.
However, I have been unable to find a satisfactory solution. I
apologize ahead of time, should I cause anyone to be redundant.

--~--~-~--~~~---~--~~
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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Anyone have a way of converting ci_reporter XML to pretty html?

2008-12-05 Thread Jim Matthews

Thanks Tiffany,

I'll give it a try.

Jim

On Dec 5, 11:43 am, Tiffany Fodor <[EMAIL PROTECTED]> wrote:
> Hi Jim!
>
> I'm also using ci_reporter and I created an xsl stylesheet to
> transform the ci_reporter xml reports to something more readable.
> I've posted an example with my test harness here:
>
> http://wiki.seleniumhq.org/display/WTR/Excel+Data+Driven+Harness+with...
>
> The files on interest to you will probably be the ReportResults.rb,
> transform-results.xsl and I had to create a batch file to run my
> harness so that ci_reporter could complete it's tasks before I tried
> to do anything with the results file.
>
> Let me know if you have and questions or problems.
>
> -Tiffany
>
> On Dec 5, 9:32 am, Jim Matthews <[EMAIL PROTECTED]> wrote:
>
> > I have gotten cruisecontrol.rb running with ci_reporter and the
> > ci_reporter XML files into the build artifacts directory.  The problem
> > is, it is the ugly ci_reporter xml output.
>
> > I would like to have something that converts all the ci_reporter xml
> > files into one, pretty report.  Has anyone done this before or know of
> > a tool that would do it?
>
> > I have Googled and cannot find anything useful.
>
> > Jim
--~--~-~--~~~---~--~~
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] Anyone have a way of converting ci_reporter XML to pretty html?

2008-12-05 Thread Jim Matthews

I have gotten cruisecontrol.rb running with ci_reporter and the
ci_reporter XML files into the build artifacts directory.  The problem
is, it is the ugly ci_reporter xml output.

I would like to have something that converts all the ci_reporter xml
files into one, pretty report.  Has anyone done this before or know of
a tool that would do it?

I have Googled and cannot find anything useful.

Jim


--~--~-~--~~~---~--~~
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] Re: Clicking a javascript image

2008-12-02 Thread Jim

Hmmm...I didn't think about using link and that did work.

Thanks for your help

On Dec 2, 10:37 am, "Darin Duphorn" <[EMAIL PROTECTED]>
wrote:
> Looks like it's a link.
>
> Are you using link or image?
>
>
>
> -Original Message-
> From: watir-general@googlegroups.com
>
> [mailto:[EMAIL PROTECTED] On Behalf Of Jim
> Sent: Tuesday, December 02, 2008 11:35 AM
> To: Watir General
> Subject: [wtr-general] Clicking a javascript image
>
> I am having problems clicking a javascript button.  Below is the code
> used for the button:
>
>  title="View Hotels"> width="190" height="83" alt="View Hotels" class="arrow" />
>
> If I attempt to click the button using the title or alt, it returns an
> error saying it cannot be found.
>
> Any help with clicking this button (link) will be greatly appreciated.
>
> thx- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
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] Clicking a javascript image

2008-12-02 Thread Jim

I am having problems clicking a javascript button.  Below is the code
used for the button:



If I attempt to click the button using the title or alt, it returns an
error saying it cannot be found.

Any help with clicking this button (link) will be greatly appreciated.

thx

--~--~-~--~~~---~--~~
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] Error on just_add_watir?

2008-11-28 Thread Jim Cropcho

Timeout::timeout(10)do
  begin
  @b.goto(url)
  rescue Timeout::Error
  puts 'Page took longer than 10 seconds to load'
  end
end

The proceeding code still throws the Timeout::Error exception. At
least in FireWatir, this doesn't work. Rather, one must

begin
  Timeout::timeout(10)do
ff.link(:url, "javascript:KWSearchSubmit()").click
  end
rescue Timeout::Error
  puts 'Page took longer than 10 seconds to load'
end


Not sure about Watir. Keep up the good work, though!

--~--~-~--~~~---~--~~
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] Re: Getting error at installing 1.6.1

2008-11-06 Thread Jim Matthews

I believe I have gotten that error message every time I installed
Builder. It occurs while building the documentation and does not
affect how builder functions.  It should work OK in spite of the
error.

Jim

On Nov 6, 11:56 am, Michael Hwee <[EMAIL PROTECTED]> wrote:
> Hi Bret,
>
> Followed instructions athttp://wiki.openqa.org/display/WTR/Development+Builds
>
> Then, got following error at 'gem install watir'.  Any idea?
>
> ERROR:  While generating documentation for builder-2.1.2
> ... MESSAGE:   Unhandled special: Special: type=17, text=""
> ... RDOC args: --ri --op e:/ruby/lib/ruby/gems/1.8/doc/builder-2.1.2/ri 
> --title
> Builder -- Easy XML Building --main README --line-numbers --quiet lib CHANGES 
> Ra
> kefile README doc/releases/builder-1.2.4.rdoc doc/releases/builder-2.0.0.rdoc 
> do
> c/releases/builder-2.1.1.rdoc
> (continuing with the rest of the installation)
>
> Michael
--~--~-~--~~~---~--~~
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 close are we to be able to run common tests with Watir and FireWatir

2008-11-04 Thread Jim Matthews

How close are we to be able to run common tests with Watir and
FireWatir?

That is the question I asked Bret earlier today.  The short answer is
that many things work both in Watir and Firewatir under 1.6.1.  The
main functionality that will still be broken in 1.6.2 is the
"attach".  That is slated to be fixed after 1.6.2. The problem with
"visible" may or may not make it in 1.6.2.  There is a fix for the
problem around "white space" that is fixed and will be in 1.6.2.

We need your help.  Spend some time running your existing tests with
1.6.2 on IE and on Firefox.  Let us know what issues you have.  I have
started to run existing Watir tests I have with 1.6.1 on IE and
Firefox.  Although I have not finished testing, a number of them run
with little or no modification.

So, "Who am I?"  Jim Matthews.  I have worked with Bret at a previous
company and am working with him now to help get the common version of
Watir/FireWatir out.  I am a long time test automation implementer and
have been using Watir for about three years.  I monitor the Watir
General group and jump in when I think I can be useful.  The community
effort to have a common IE and FireFox test tool is paying off.



--~--~-~--~~~---~--~~
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] Re: Watir 1.6.1 is available for testing

2008-11-03 Thread Jim Matthews

This has just about always happened for me for Watir, it just has not
been a problem until now.  The "[1]" shows up in the name in the popup
box that asks if you want to save the file.  I keep a directory of
files that I install on my computer so I can show some history here.
Watir and FireWtir gems are the only gems that show up with the "[1]"
in the name, but not all of them:

watir-1[1].5.1.1145.gem
watir-1[1].5.1.1158.gem
watir-1[1].5.1.1192.gem
watir-1.5.6.gem
commonwatir-1[1].6.1.gem
firewatir-1[1].6.1.gem
watir-1[1].6.1.gem

firewatir-1[1].0.2.gem
jssh-20060221-WINNT.xpi
firewatir-1[1].1.gem
jssh-WINNT-2[1].x.xpi
firewatir-1.2.1.gem

by removing the "[1]" in the name, I could get Watir 1.6.1 to
install.  I have not had achance to check it out though.

Jim

On Nov 3, 2:00 pm, Bret Pettichord <[EMAIL PROTECTED]> wrote:
> When i download them, they have these names:
>
> commonwatir-1.6.1.gem
> firewatir-1.6.1.gem
> watir-1.6.1.gem
>
> (Which are the same names they had when i uploaded them)
>
> Bret
>
> Jim Matthews wrote:
> > I downloaded all three files like the instructions at
> >http://wiki.openqa.org/display/WTR/Development+Builds
> > indicated.  I start the download and save them to the directory.  I
> > have re-downloded the files and these are the file names I get:
>
> > commonwatir-1[1].6.1.gem
> > firewatir-1[1].6.1.gem
> > watir-1[1].6.1.gem
>
> > Jim
>
> > On Nov 3, 11:07 am, Bret Pettichord <[EMAIL PROTECTED]> wrote:
>
> >> Somehow the filename of the gem changed when you downloaded it. I think
> >> that is the source of your problem.
>
> >> Bret
>
> >> Jim Matthews wrote:
>
> >>> I am trying to install Watir 1.6.1 on Ruby 1.8.6-27 and am having a
> >>> problem.  It looks like the problem you have when you are behind a
> >>> proxy, but I am not behind a proxy.  I downloaded all three watir gem
> >>> files into the same directory.  When I try to do the gem install, here
> >>> is what happens:
>
> >>> C:\Installed_Files\ruby_w_watir_1_6_1\watir_1_6_1>gem install watir
> >>> ERROR:  While executing gem ... (URI::InvalidURIError)
> >>>     bad URI(is not URI?): C:/Installed_Files/ruby_w_watir_1_6_1/
> >>> watir_1_6_1/commonwatir-1[1].6.1.gem
>
> >>> On Nov 3, 10:20 am, JArkelen <[EMAIL PROTECTED]> wrote:
>
> >>>> These are my installation steps:
> >>>> - I have a clean windows xp machine (vmware image)
> >>>> - I install ruby 186-26
> >>>> - I download watir, firewatir and commonwatir from 
> >>>> here:http://wiki.openqa.org/display/WTR/Development+Builds
> >>>> - I remove the version numbers from the gem files (for easier typing
> >>>> in dos command window)
> >>>> - I install watir with 'gem install watir'
> >>>> - Then I receive that message
>
> >>>> Cheers,
> >>>> John
>
> >>>> On Nov 3, 4:31 pm, Bret Pettichord <[EMAIL PROTECTED]> wrote:
>
> >>>>> I've been testing with Ruby 186-26.
>
> >>>>> Watir 1.5 also required win32-process (0.5.5). Can you give more
> >>>>> information about how you are installing it? The gem installer should be
> >>>>> automatically installing this gem.
>
> >>>>> Bret
>
> >>>>> JArkelen wrote:
>
> >>>>>> Hi,
>
> >>>>>> Which version of Ruby should I install to make Watir 1.6.1 work?
> >>>>>> I tried both 185-24 and 186-26, but when trying to install watir, I
> >>>>>> get the message "Error installing watir: watir requires win32-process
>
> >>>>>>> = 0.5.5"
>
> >>>>>> Cheers,
> >>>>>> John
--~--~-~--~~~---~--~~
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] Re: Watir 1.6.1 is available for testing

2008-11-03 Thread Jim Matthews

I downloaded all three files like the instructions at
http://wiki.openqa.org/display/WTR/Development+Builds
indicated.  I start the download and save them to the directory.  I
have re-downloded the files and these are the file names I get:

commonwatir-1[1].6.1.gem
firewatir-1[1].6.1.gem
watir-1[1].6.1.gem

Jim

On Nov 3, 11:07 am, Bret Pettichord <[EMAIL PROTECTED]> wrote:
> Somehow the filename of the gem changed when you downloaded it. I think
> that is the source of your problem.
>
> Bret
>
> Jim Matthews wrote:
> > I am trying to install Watir 1.6.1 on Ruby 1.8.6-27 and am having a
> > problem.  It looks like the problem you have when you are behind a
> > proxy, but I am not behind a proxy.  I downloaded all three watir gem
> > files into the same directory.  When I try to do the gem install, here
> > is what happens:
>
> > C:\Installed_Files\ruby_w_watir_1_6_1\watir_1_6_1>gem install watir
> > ERROR:  While executing gem ... (URI::InvalidURIError)
> >     bad URI(is not URI?): C:/Installed_Files/ruby_w_watir_1_6_1/
> > watir_1_6_1/commonwatir-1[1].6.1.gem
>
> > On Nov 3, 10:20 am, JArkelen <[EMAIL PROTECTED]> wrote:
>
> >> These are my installation steps:
> >> - I have a clean windows xp machine (vmware image)
> >> - I install ruby 186-26
> >> - I download watir, firewatir and commonwatir from 
> >> here:http://wiki.openqa.org/display/WTR/Development+Builds
> >> - I remove the version numbers from the gem files (for easier typing
> >> in dos command window)
> >> - I install watir with 'gem install watir'
> >> - Then I receive that message
>
> >> Cheers,
> >> John
>
> >> On Nov 3, 4:31 pm, Bret Pettichord <[EMAIL PROTECTED]> wrote:
>
> >>> I've been testing with Ruby 186-26.
>
> >>> Watir 1.5 also required win32-process (0.5.5). Can you give more
> >>> information about how you are installing it? The gem installer should be
> >>> automatically installing this gem.
>
> >>> Bret
>
> >>> JArkelen wrote:
>
> >>>> Hi,
>
> >>>> Which version of Ruby should I install to make Watir 1.6.1 work?
> >>>> I tried both 185-24 and 186-26, but when trying to install watir, I
> >>>> get the message "Error installing watir: watir requires win32-process
>
> >>>>> = 0.5.5"
>
> >>>> Cheers,
> >>>> John
--~--~-~--~~~---~--~~
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] Re: Watir 1.6.1 is available for testing

2008-11-03 Thread Jim Matthews

I am trying to install Watir 1.6.1 on Ruby 1.8.6-27 and am having a
problem.  It looks like the problem you have when you are behind a
proxy, but I am not behind a proxy.  I downloaded all three watir gem
files into the same directory.  When I try to do the gem install, here
is what happens:

C:\Installed_Files\ruby_w_watir_1_6_1\watir_1_6_1>gem install watir
ERROR:  While executing gem ... (URI::InvalidURIError)
bad URI(is not URI?): C:/Installed_Files/ruby_w_watir_1_6_1/
watir_1_6_1/commonwatir-1[1].6.1.gem

On Nov 3, 10:20 am, JArkelen <[EMAIL PROTECTED]> wrote:
> These are my installation steps:
> - I have a clean windows xp machine (vmware image)
> - I install ruby 186-26
> - I download watir, firewatir and commonwatir from 
> here:http://wiki.openqa.org/display/WTR/Development+Builds
> - I remove the version numbers from the gem files (for easier typing
> in dos command window)
> - I install watir with 'gem install watir'
> - Then I receive that message
>
> Cheers,
> John
>
> On Nov 3, 4:31 pm, Bret Pettichord <[EMAIL PROTECTED]> wrote:
>
> > I've been testing with Ruby 186-26.
>
> > Watir 1.5 also required win32-process (0.5.5). Can you give more
> > information about how you are installing it? The gem installer should be
> > automatically installing this gem.
>
> > Bret
>
> > JArkelen wrote:
> > > Hi,
>
> > > Which version of Ruby should I install to make Watir 1.6.1 work?
> > > I tried both 185-24 and 186-26, but when trying to install watir, I
> > > get the message "Error installing watir: watir requires win32-process
>
> > >> = 0.5.5"
>
> > > Cheers,
> > > John
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---