[wtr-general] Strange issue with ie.attach()

2009-04-30 Thread Isabel

Hi All,

Yesterday while working on watir, suddenly ie.attach() stopped working
for me. It started working again on restarting the system.
Has anyone of you come across something like this? If yes, why is this
so?


Thanks and Regards.
--~--~-~--~~~---~--~~
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: Strange issue with ie.attach()

2009-04-30 Thread Željko Filipin
On Thu, Apr 30, 2009 at 08:52, Isabel joybe...@gmail.com wrote:
 why is this so?

It is described in painful detail here:

http://twitter.com/zeljkofilipin/status/1651116660

Disclaimer: this is not my opinion, I just quote what other people think :)

Ž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: Strange issue with ie.attach()

2009-04-30 Thread Isabel

Hi Željko,

I really appreciate your effort to at least pass on opinions from
others...

But I could not find any text on the link you gave apart from Windows
is a steaming pile of crap. :)

Is this the answer to my query? Or was I looking at the wrong place?

Thanks...


On Apr 30, 12:40 pm, Željko Filipin zeljko.fili...@wa-research.ch
wrote:
 On Thu, Apr 30, 2009 at 08:52, Isabel joybe...@gmail.com wrote:
  why is this so?

 It is described in painful detail here:

 http://twitter.com/zeljkofilipin/status/1651116660

 Disclaimer: this is not my opinion, I just quote what other people think :)

 Ž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: Strange issue with ie.attach()

2009-04-30 Thread Željko Filipin
On Thu, Apr 30, 2009 at 09:59, Isabel joybe...@gmail.com wrote:
 But I could not find any text on the link you gave apart from Windows
 is a steaming pile of crap. :)

Yes, that was my answer. I use Windows every day, so please take it as a
joke. I have also found that restarting Windows can fix some problems.

Ž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] Problem with ie.goto when we used to navigate between the tabs

2009-04-30 Thread Shweta

Hi

I am using ie.goto(corresponding tab url) to navigate between the
tabs by script is running fine its performing the actions in each
tab,whereas in my application until unless i fill the valid data in
all the tabs it will not navigate to other page from last tab.While
running it performs the actions but it will not navigate to next page
from last tab displays errors in application whereas script will
pass.Later if i verify manually in those tabs the data which is
entered while running teh script is missing(unable to see).

--~--~-~--~~~---~--~~
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: Does watir::IE.attach() :hwnd support embedded browsers ?

2009-04-30 Thread mwolfe

I have been working more on the issue and have discussed it on my blog
here:
http://www.wolfewebservices.com/blog/attaching-watir-embedded-ie-browser
I Haven't yet come up with a solution yet but just thought i'd share
my current
knowledge of the problem.

On Apr 29, 12:28 pm, mwolfe mwolf...@gmail.com wrote:
 hey basu, did you ever figure out this issue?
 I'm trying to do essentially the same thing (work with an embedded IE
 control).
 I found the function __IEControlGetObjFromHWND
 from the IE.au3
 Of course, this is not built into the binary for autoit so I can't use
 that. It looks (kind of) like you tried to implement that in ruby.
 Unfortunately its pretty complicated for a OLE/COM newbie like me.  It
 seems like there should be an easier way though but I have yet to
 come up with anything.
 Let me know if you've figured it out.

 On Mar 2, 1:13 am, basu bas.go...@gmail.com wrote:

  i tried getting the automation object of the embedded browser but no
  success, i not able to figure out the issue, could some give inputs on
  this please ?
  (There is an function defined in IE.au3 (autoitv3 UDF) to get the IE
  object from the IE handle, i tried re writting the same function in
  ruby)

  Code tried ..

  # Start winamp player
   ...

  require 'Win32API'
  SMTO_ABORTIFHUNG = 0x0002
  Win32API.new(ole32, CoInitialize, ['P'] , 'I').call(0)

  reg_msg = Win32API.new(user32, RegisterWindowMessage, ['P'] ,
  'I').call(WM_HTML_GETOBJECT)
  puts reg_msg

  # Main Window is title of winamp player
  # Internet Explorer_Server1 is a IE control embedded in the player
  hnd = @@autoit.ControlGetHandle(Main Window, , Internet
  Explorer_Server1)
  puts hnd

  result= *16

  aInt = [0xA7, 0x31, 0x0, 0xA0, 0xC9, 0x8, 0x26, 0x37].pack 'I*'
  a = [0x626FC520, 0xA41E, 0x11CF, aInt].pack 'IIIP'

  sendMessagetimeout = Win32API.new(user32, SendMessageTimeout,
  ['L','I','I','I','I','I','P'] , 'L')
  sendMessagetimeout.call(hnd.hex, reg_msg, 0, 0, SMTO_ABORTIFHUNG,
  1000, result)
  puts result.unpack(L)

  idisp=0
  oIE = Win32API.new(oleacc, ObjectFromLresult, ['P', 'P','I','P'] ,
  'L')
  oIE.call(result, a, 0, idisp)

  # returning zero
  puts idisp.unpack(L)

  Thanks in advance !

  On Feb 24, 10:40 am, basu bas.go...@gmail.com wrote:

   I want to know whether the attach() method supports access to the
   browser embedded in a windows applications (Ex: Internet
   Explorer_Server1 control embedded in the winamp player) , if not could
   some one provide me the inputs on how to achieve this
   Thanks,Basu
--~--~-~--~~~---~--~~
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] Error when building commonwatir - FIX (url) is not a URI

2009-04-30 Thread alex

Hi all,

Thanks to Angrez and http://wiki.openqa.org/display/WTR/Building+Watir
I was able to find the latest watir files, and tried to build it.

Everything was fine, except when building commonwatir, when I got the
error:
FIX (url) is not a URI
--~--~-~--~~~---~--~~
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 when building commonwatir - FIX (url) is not a URI

2009-04-30 Thread Bill Agee
I had that happen too, last week, when I was trying to get the latest
FireWatir attach changes. :)

I think what I did to work around this was to edit commonwatir/manifest.txt
and remove the line for README.txt.  I can't remember making any other
changes so hopefully this was it.

Then, rake gems would successfully build all three .gem files.  I think I
saw another complaint about the README file when installing the gems, but it
was harmless.

Thanks
Bill


On Thu, Apr 30, 2009 at 9:24 AM, alex alexrot...@gmail.com wrote:


 Hi all,

 Thanks to Angrez and http://wiki.openqa.org/display/WTR/Building+Watir
 I was able to find the latest watir files, and tried to build it.

 Everything was fine, except when building commonwatir, when I got the
 error:
 FIX (url) is not a URI
 


--~--~-~--~~~---~--~~
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 when building commonwatir - FIX (url) is not a URI

2009-04-30 Thread alex

Hi Bill,

Thanks for replying. I followed your instructions, but unfortunately
the error is still there ...
Is there anything else you did last week?

Thanks,
Alex

On Apr 30, 9:34 pm, Bill Agee billa...@gmail.com wrote:
 I had that happen too, last week, when I was trying to get the latest
 FireWatir attach changes. :)

 I think what I did to work around this was to edit commonwatir/manifest.txt
 and remove the line for README.txt.  I can't remember making any other
 changes so hopefully this was it.

 Then, rake gems would successfully build all three .gem files.  I think I
 saw another complaint about the README file when installing the gems, but it
 was harmless.

 Thanks
 Bill

 On Thu, Apr 30, 2009 at 9:24 AM, alex alexrot...@gmail.com wrote:

  Hi all,

  Thanks to Angrez andhttp://wiki.openqa.org/display/WTR/Building+Watir
  I was able to find the latest watir files, and tried to build it.

  Everything was fine, except when building commonwatir, when I got the
  error:
  FIX (url) is not a URI
--~--~-~--~~~---~--~~
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 when building commonwatir - FIX (url) is not a URI

2009-04-30 Thread Bill Agee
Oh, whoops, yeah, my fix was actually different.  Editing the manifest file
doesn't help.

The workaround that actually works is:

1) Edit watir/commonwatir/README.txt

2) Change line 3 to:

* http://www.watir.com


I think the value can be anything as long as it's a valid URL. :)

This time 'rake gems' shouldn't complain, and you should get the commonwatir
gem file.


On Thu, Apr 30, 2009 at 12:53 PM, alex alexrot...@gmail.com wrote:


 Hi Bill,

 Thanks for replying. I followed your instructions, but unfortunately
 the error is still there ...
 Is there anything else you did last week?

 Thanks,
 Alex

 On Apr 30, 9:34 pm, Bill Agee billa...@gmail.com wrote:
  I had that happen too, last week, when I was trying to get the latest
  FireWatir attach changes. :)
 
  I think what I did to work around this was to edit
 commonwatir/manifest.txt
  and remove the line for README.txt.  I can't remember making any other
  changes so hopefully this was it.
 
  Then, rake gems would successfully build all three .gem files.  I think
 I
  saw another complaint about the README file when installing the gems, but
 it
  was harmless.
 
  Thanks
  Bill
 
  On Thu, Apr 30, 2009 at 9:24 AM, alex alexrot...@gmail.com wrote:
 
   Hi all,
 
   Thanks to Angrez andhttp://wiki.openqa.org/display/WTR/Building+Watir
   I was able to find the latest watir files, and tried to build it.
 
   Everything was fine, except when building commonwatir, when I got the
   error:
   FIX (url) is not a URI
 


--~--~-~--~~~---~--~~
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 when building commonwatir - FIX (url) is not a URI

2009-04-30 Thread alex

Thanks a lot Bill.
You were right, replacing *FIX (url) with a valid URL solved the
problem.

Alex

On Apr 30, 11:14 pm, Bill Agee billa...@gmail.com wrote:
 Oh, whoops, yeah, my fix was actually different.  Editing the manifest file
 doesn't help.

 The workaround that actually works is:

 1) Edit watir/commonwatir/README.txt

 2) Change line 3 to:

 *http://www.watir.com

 I think the value can be anything as long as it's a valid URL. :)

 This time 'rake gems' shouldn't complain, and you should get the commonwatir
 gem file.

 On Thu, Apr 30, 2009 at 12:53 PM, alex alexrot...@gmail.com wrote:

  Hi Bill,

  Thanks for replying. I followed your instructions, but unfortunately
  the error is still there ...
  Is there anything else you did last week?

  Thanks,
  Alex

  On Apr 30, 9:34 pm, Bill Agee billa...@gmail.com wrote:
   I had that happen too, last week, when I was trying to get the latest
   FireWatir attach changes. :)

   I think what I did to work around this was to edit
  commonwatir/manifest.txt
   and remove the line for README.txt.  I can't remember making any other
   changes so hopefully this was it.

   Then, rake gems would successfully build all three .gem files.  I think
  I
   saw another complaint about the README file when installing the gems, but
  it
   was harmless.

   Thanks
   Bill

   On Thu, Apr 30, 2009 at 9:24 AM, alex alexrot...@gmail.com wrote:

Hi all,

Thanks to Angrez andhttp://wiki.openqa.org/display/WTR/Building+Watir
I was able to find the latest watir files, and tried to build it.

Everything was fine, except when building commonwatir, when I got the
error:
FIX (url) is not a URI
--~--~-~--~~~---~--~~
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: how to read data from a yaml file

2009-04-30 Thread sonny

On Apr 20, 9:46 pm, Fish hhfish...@hotmail.com wrote:
 yamlfile:

 items:
     - user: user
       pwd: pwd
     - user: user1
       pwd: pwd1

 watir code:

 conf =YAML::load_file(**.yaml')
 items = conf[items]

 items.each do |item|
    ie.text_field(:id,user).set(item[user])
 end

 please have a try and leave message here


Many thanks Fish. This will iterate for each data group through that
test case.
I have also learned to get a specific variable to use something like
this: .set([items][0][user]) which would get the first user
variable in the items group.

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