Re: [Wtr-general] Accessing generated HTML page tags

2007-02-15 Thread gdx
Hi, sorry for my english It should work : ie.frame(:index, 1) ie.frame(:index, 2) ie.frame(:name , 'main') - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6556messageID=18704#18704

Re: [Wtr-general] how to make Watir hit the 'key', which does a right-click, in the keybo

2007-02-15 Thread vijay
Hello Ogre, Thank you so much for your reply. Your answer was very correct. I was just trying to make Watir right-click on any control (text_field, link etc.) present in a web page. Now also, I am not sure how to focus a particular control before right-clicking on it through the command,

[Wtr-general] 'ie.close' or 'ie.close if ie'

2007-02-15 Thread Maisonnette
Hi everyone , I have two question for you ! 1- I don't know what 's the difference between the ie.close and the ie.close if ie. 2- My iexplore.exe have it's since increase to 115000 KB and it crash ... to do this , i have a testsuite and many (~35) testcase. Every testcase open an ie windows

Re: [Wtr-general] how to make Watir hit the 'key', which does a right-click, in the keybo

2007-02-15 Thread gdx
Hi, i think something like this could work : ie.goto http://www.google.fr/webhp?ie=UTF-8oe=UTF-8hl=frq=tab=iw; ie.link(:text,'Recherche avancée').fireEvent('oncontextmenu') but on www.google.fr the link just 'flash' Maybe something is missing but i dont know what :D

Re: [Wtr-general] how to make Watir hit the 'key', which does a right-click, in the keybo

2007-02-15 Thread gdx
hi, ie.link(:text,'Recherche avancée').focus ie.send_keys({APPSKEY}) :D now, i'm sure i help you my status points will explode ^^ - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6545messageID=18711#18711

[Wtr-general] Error getting rows and columns in table with another table inside

2007-02-15 Thread MadNut
Hello,br I have a problem with this table:br [code] table id=tblleftNav height=100% width=100% tr td id=id1 img src=Blank.gif alt= border=0 / /td /tr tr height=0

Re: [Wtr-general] VBScript Fails with Watir

2007-02-15 Thread Federico Vela
Hi Bret, Thanks so much for your reply and sorry for not posting that code initially. mainFrame.link(:url,%r{Report\.asp}).click mainFrame.button(:name,cmdGo).click mainFrame.text_field(:name,txtInitialDate).set(2/10/2006) mainFrame.link(:id,ViewReport).click #previous step should open a new

Re: [Wtr-general] VBScript Fails with Watir

2007-02-15 Thread Federico Vela
I've just discovered another place where the same error comes up, however this error does not disable the script like the other. (maybe because in the previous the navigation occurs with a window.open whereas here a button is clicked and the form is posted.) the vbscript code is: if

Re: [Wtr-general] Why this error and how to supress it?

2007-02-15 Thread John Lolis
check the FAQ ( http://wiki.openqa.org/display/WTR/FAQ ) see Access denied when trying to access a frame that may be the issue, not sure. - Posted via Jive Forums

Re: [Wtr-general] VBScript Fails with Watir

2007-02-15 Thread Bret Pettichord
Federico Vela wrote: Hi Bret, Thanks so much for your reply and sorry for not posting that code initially. mainFrame.link(:url,%r{Report\.asp}).click mainFrame.button(:name,cmdGo).click mainFrame.text_field(:name,txtInitialDate).set(2/10/2006) mainFrame.link(:id,ViewReport).click

Re: [Wtr-general] Broken link for the web service file.

2007-02-15 Thread Bret Pettichord
barry wrote: This link is broken. Can someone fix this? http://wtr.rubyforge.org/s101/doc/exercises/web-services-lab.html It is here: http://wtr.rubyforge.org/s101/exercises/web-services-lab.html ___ Wtr-general mailing list

Re: [Wtr-general] 'ie.close' or 'ie.close if ie'

2007-02-15 Thread John Lolis
I'm not exactly sure why someone would do 'ie.close if ie'. Below is my best guess at it. --- require 'watir' include Watir ie = nil if ie puts 'ie object created' else puts 'no ie object' endie ie = IE.new() if ie puts 'ie object created' else puts 'no

Re: [Wtr-general] VBScript Fails with Watir

2007-02-15 Thread Federico Vela
Bret, thank you for your reply. Well yes, the error is in that IE.attach, however the cause comes from the previous line, because it did not execute a window.open vbscript command. The window.open did not get to execute because of an error when getting the value property out of a

Re: [Wtr-general] Why this error and how to supress it?

2007-02-15 Thread Bret Pettichord
The error will go away if you upgrade to Watir 1.5. ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

[Wtr-general] How to use the new IE.new_process method

2007-02-15 Thread Maisonnette
hi everyone, Do you know how to use the new IE.new_process method. And the new IE#kill methode because i'm getting intermittent RPC errors when opening windows... if you can explain to me with a sample ... i'll appreciate :-) -

[Wtr-general] bring_to_front for window without a title

2007-02-15 Thread Bach Le
I'm writing a test for a page that does not have a title. The IE window only has the url, however, IE.bring_to_front uses AutoIt's WinActivate function to bring the window to front but AutoIt can only bring a window to the front if a title is specified. Anyone know how I can do it? I thought

Re: [Wtr-general] bring_to_front for window without a title

2007-02-15 Thread Bach Le
I found out that you can do ie.document.focus and that brings the window to the front but that seems like a hackish way of doing it. Anyone know a better solution? - Posted via Jive Forums

Re: [Wtr-general] bring_to_front for window without a title

2007-02-15 Thread Bach Le
Thanks Bret, I guess I'll go with that then. - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6572messageID=18739#18739 ___ Wtr-general mailing list

Re: [Wtr-general] bring_to_front for window without a title

2007-02-15 Thread Paul Rogers
wouldnt autoit use the empty title ( Microst Internet Explorer or something ) if you didnt specify a title element? but now I realise you probably have several windows. Is there something in the winclicker that works on hwnd? Paul - Original Message - From: Bach Le [EMAIL PROTECTED]

Re: [Wtr-general] VBScript Fails with Watir

2007-02-15 Thread Federico Vela
Hello, I'm in dire need to solve this issue, I might have to dump Watir altogether if it is not resolved soon :(( I've definetly narrowed it down to some sort of type mismatch within the vbscript engine. When i break the VBscript debugger, i cannot evaluate simple vbscript dim variables,

[Wtr-general] Watir and SmartClient

2007-02-15 Thread polleu
Hi there, does anyone know if Watir would run on a SmartClient, that uses IE dlls? Cheers, Ulrike ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Accessing generated HTML page tags

2007-02-15 Thread minal
Thanks for the reply..but it doesn't work for me ie.frame(:name,'main') can not execute ASP file and display html code. Is there any way to execute ASP file within the context of frame? Or is there any other way to solve this? Please help.. Minal

Re: [Wtr-general] VBScript Fails with Watir

2007-02-15 Thread Paul Rogers
here is the dom reference http://msdn.microsoft.com/workshop/author/dhtml/reference/dhtml_reference_entry.asp?frame=true here is the browser reference http://msdn.microsoft.com/workshop/browser/prog_browser_node_entry.asp?frame=true Watir should use what ever internet explorer is on your pc.

Re: [Wtr-general] VBScript Fails with Watir

2007-02-15 Thread Federico Vela
Thank you for your reply and the helpful links Paul, Yes, i reckon i am one of the few, nevertheless, i must auto-test the application as it is, since we cannot afford any changes to the application other than the ones we're already making. I sure appreciate your time and patience. Thank you

Re: [Wtr-general] bring_to_front for window without a title

2007-02-15 Thread Bach Le
Paul, I looked at the documentation for AutoIt but it seems like all of the functions rely on matching the titles in order to interact with the window. The only references that i saw for using HWND was the WinClose or something. -Bach

[Wtr-general] Windows 2003 64-bit and IE.new_process Fails

2007-02-15 Thread Jim Hollcraft
IE.new_process appears to fail under windows 2003 64-bit. IE.new works fine. I'm pretty sure this isn't an issue with my code since the exact same code works great under 32 bit versions of both windows 2003 and windows XP. Any suggestions?

Re: [Wtr-general] VBScript Fails with Watir

2007-02-15 Thread Federico Vela
Hello, With the help of my coworkers, I've made some progress in identifying the problem. [b]It is definitely a type conversion error.[/b] I should clarify that this is an intranet web application that only supports IE, that is the reason why VBScript is acceptable. Anyway, i changed my

Re: [Wtr-general] VBScript Fails with Watir

2007-02-15 Thread Paul Rogers
I beleive that if there are 2 elements with the same name ( or maybe its id - check the docs) IE will return a collection, but if there is only one, it returns a single element. This has caused me numerous problems in the past. But why would watir cause it... I really cant say. It certainly

Re: [Wtr-general] VBScript Fails with Watir

2007-02-15 Thread John Lolis
What does the actual HTML look like for link you are clicking? Maybe there is some kind of event that needs to be fired? My gut feeling is that you are just 'clicking the wrong thing'. Again, this is just a wild guess i really have no clue whats going on in here :)

Re: [Wtr-general] VBScript Fails with Watir

2007-02-15 Thread Federico Vela
Thank you all s much for your replies, i'll post what i'm doing in the hope that you can replicate the error, Here's my HTML div align=center A name=MaintenanceReport id=MaintenanceReport style=cursor:hand IMG height=98 src=images/j0269256.wmf style=HEIGHT: 98px; WIDTH: 180px width=153

Re: [Wtr-general] VBScript Fails with Watir

2007-02-15 Thread Federico Vela
Thank you for your reply Paul. I've doubled and tripled checked and there is not another element with the same name, txtInitialDate HOWEVER. there is a hidden input with the name txtInitialDatePost so maybe watir is matching with a regex? that would explain. Is it possible to enumerate

Re: [Wtr-general] VBScript Fails with Watir

2007-02-15 Thread Paul Rogers
your earlier html ( for the link you were clicking) had both id and name as the same thing. If you have that on the txtInitialDate field it may be the problem Paul - Original Message - From: Federico Vela [EMAIL PROTECTED] To: wtr-general@rubyforge.org Sent: Thursday, February 15,

Re: [Wtr-general] VBScript Fails with Watir

2007-02-15 Thread Paul Rogers
its very difficult to fix until we can get a reprodicable case. I dont mind spending a bit of time tonight looking into it. It would be really helpful if you could send the minimal amount of htmll ( and vbsciprt) that shows the problem and also the watir code that makes it happen Paul -

[Wtr-general] Connecting to Oracle error - error: custom_require.rb:27:in `gem_original_require': no such file to load -- oci8 (LoadError).

2007-02-15 Thread ez
*Connecting to Oracle error http://www.ruby-forum.com/topic/97981#206967* Hi, I just downloaded Ruby and Watir as well and my local XE Oracle database and trying a basic connection to Oracle database and I am getting this error: custom_require.rb:27:in `gem_original_require': no such file to

Re: [Wtr-general] VBScript Fails with Watir

2007-02-15 Thread Paul Rogers
I spent some time on this and the only way I could get the problem was when there were 2 elements that had the same name or id If you can send some html, Id be happy to take another look Paul - Original Message - From: Paul Rogers [EMAIL PROTECTED] To: wtr-general@rubyforge.org Sent: