RE: [Wtr-general] Connecting to a second window
Thanks for the help I received on this. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Harris Sent: 31 August 2005 08:34 To: wtr-general@rubyforge.org Subject: RE: [Wtr-general] Connecting to a second window Thanks for this. It is a pop up that is invoked using java script. I have been looking for AutoIt in the Watir API, but can not find it. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bret Pettichord Sent: 31 August 2005 05:31 To: wtr-general@rubyforge.org Subject: RE: [Wtr-general] Connecting to a second window If this is a modal popup, then you can't attach to it. If you click on the main window, but the popup window stays on top, then it is modal. If it's small, you can try handling it with AutoIt. Sorry folks. Bret At 09:08 PM 8/30/2005, [EMAIL PROTECTED] wrote: I'm just curious. Is the second window already there upon running the program? if not maybe you could try putting wait(5) before the attach just to be sure. what's the exact error message? and what's the exact title of the page when you view the source? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Mike Harris Sent: Tuesday, August 30, 2005 7:19 PM To: wtr-general@rubyforge.org Subject: RE: [Wtr-general] Connecting to a second window Thanks.I tried that and still had the same problem. I have just noticed that when I hover over the link with the mouse the path to the page for the second window is displayed in the status bar, but this does not include the name of the file. I am wondering if this is the problem. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Zeljko Filipin Sent: 30 August 2005 10:57 To: wtr-general@rubyforge.org Subject: RE: [Wtr-general] Connecting to a second window Try this $ieAbout = Watir::IE.attach(:title, /About KALIDO MDM/) instead of $ieAbout = IE.attach(:title, /About KALIDO MDM/) Zeljko -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Harris Sent: Tuesday, August 30, 2005 11:53 AM To: wtr-general@rubyforge.org Subject: RE: [Wtr-general] Connecting to a second window The last line put to the command console is attach failed. So I assume that it is the attach that has failed -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Zeljko Filipin Sent: 30 August 2005 10:44 To: wtr-general@rubyforge.org Subject: RE: [Wtr-general] Connecting to a second window In which line does your script fail (goto or attach)? What error message do you get? Zeljko -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Harris Sent: Tuesday, August 30, 2005 11:39 AM To: wtr-general@rubyforge.org Subject: [Wtr-general] Connecting to a second window I have just started to use Watir and am trying to connect to a new window using this code, but I fail to goto the link. Can you please give me some advice about why this may be failing. Thanks def test_03_ViewAbout puts Test 3...View About goToSignOnPage() login() begin statusMessage=Invoking About aboutlink=$ie.getLink(:text,About) statusMessage=goto link failed puts(goto link failed) $ie.goto(aboutlink.href) puts(attach failed) statusMessage=attach failed $ieAbout = IE.attach(:title, /About KALIDO MDM/) statusMessage=assert failed assert($ieAbout.title==About KALIDO MDM,Failed to invoke About) statusMessage=close failed $ieAbout.close rescue errorstring =Failed while + statusMessage failTest(3,errorstring) end end Mike Harris ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr
RE: [Wtr-general] Connecting to a second window
The second window is not invoked. The Developer tells me that the link to has been created with java script. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: 31 August 2005 03:09 To: wtr-general@rubyforge.org Subject: RE: [Wtr-general] Connecting to a second window I'm just curious. Is the second window already there upon running the program? if not maybe you could try putting wait(5) before the attach just to be sure. what's the exact error message? and what's the exact title of the page when you view the source? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Mike Harris Sent: Tuesday, August 30, 2005 7:19 PM To: wtr-general@rubyforge.org Subject: RE: [Wtr-general] Connecting to a second window Thanks.I tried that and still had the same problem. I have just noticed that when I hover over the link with the mouse the path to the page for the second window is displayed in the status bar, but this does not include the name of the file. I am wondering if this is the problem. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Zeljko Filipin Sent: 30 August 2005 10:57 To: wtr-general@rubyforge.org Subject: RE: [Wtr-general] Connecting to a second window Try this $ieAbout = Watir::IE.attach(:title, /About KALIDO MDM/) instead of $ieAbout = IE.attach(:title, /About KALIDO MDM/) Zeljko -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Harris Sent: Tuesday, August 30, 2005 11:53 AM To: wtr-general@rubyforge.org Subject: RE: [Wtr-general] Connecting to a second window The last line put to the command console is attach failed. So I assume that it is the attach that has failed -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Zeljko Filipin Sent: 30 August 2005 10:44 To: wtr-general@rubyforge.org Subject: RE: [Wtr-general] Connecting to a second window In which line does your script fail (goto or attach)? What error message do you get? Zeljko -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Harris Sent: Tuesday, August 30, 2005 11:39 AM To: wtr-general@rubyforge.org Subject: [Wtr-general] Connecting to a second window I have just started to use Watir and am trying to connect to a new window using this code, but I fail to goto the link. Can you please give me some advice about why this may be failing. Thanks def test_03_ViewAbout puts Test 3...View About goToSignOnPage() login() begin statusMessage=Invoking About aboutlink=$ie.getLink(:text,About) statusMessage=goto link failed puts(goto link failed) $ie.goto(aboutlink.href) puts(attach failed) statusMessage=attach failed $ieAbout = IE.attach(:title, /About KALIDO MDM/) statusMessage=assert failed assert($ieAbout.title==About KALIDO MDM,Failed to invoke About) statusMessage=close failed $ieAbout.close rescue errorstring =Failed while + statusMessage failTest(3,errorstring) end end Mike Harris ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
RE: [Wtr-general] Connecting to a second window
The last line put to the command console is attach failed. So I assume that it is the attach that has failed -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Zeljko Filipin Sent: 30 August 2005 10:44 To: wtr-general@rubyforge.org Subject: RE: [Wtr-general] Connecting to a second window In which line does your script fail (goto or attach)? What error message do you get? Zeljko -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Harris Sent: Tuesday, August 30, 2005 11:39 AM To: wtr-general@rubyforge.org Subject: [Wtr-general] Connecting to a second window I have just started to use Watir and am trying to connect to a new window using this code, but I fail to goto the link. Can you please give me some advice about why this may be failing. Thanks def test_03_ViewAbout puts Test 3...View About goToSignOnPage() login() begin statusMessage=Invoking About aboutlink=$ie.getLink(:text,About) statusMessage=goto link failed puts(goto link failed) $ie.goto(aboutlink.href) puts(attach failed) statusMessage=attach failed $ieAbout = IE.attach(:title, /About KALIDO MDM/) statusMessage=assert failed assert($ieAbout.title==About KALIDO MDM,Failed to invoke About) statusMessage=close failed $ieAbout.close rescue errorstring =Failed while + statusMessage failTest(3,errorstring) end end Mike Harris ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
RE: [Wtr-general] Connecting to a second window
Try this $ieAbout = Watir::IE.attach(:title, /About KALIDO MDM/) instead of $ieAbout = IE.attach(:title, /About KALIDO MDM/) Zeljko -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Harris Sent: Tuesday, August 30, 2005 11:53 AM To: wtr-general@rubyforge.org Subject: RE: [Wtr-general] Connecting to a second window The last line put to the command console is attach failed. So I assume that it is the attach that has failed -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Zeljko Filipin Sent: 30 August 2005 10:44 To: wtr-general@rubyforge.org Subject: RE: [Wtr-general] Connecting to a second window In which line does your script fail (goto or attach)? What error message do you get? Zeljko -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Harris Sent: Tuesday, August 30, 2005 11:39 AM To: wtr-general@rubyforge.org Subject: [Wtr-general] Connecting to a second window I have just started to use Watir and am trying to connect to a new window using this code, but I fail to goto the link. Can you please give me some advice about why this may be failing. Thanks def test_03_ViewAbout puts Test 3...View About goToSignOnPage() login() begin statusMessage=Invoking About aboutlink=$ie.getLink(:text,About) statusMessage=goto link failed puts(goto link failed) $ie.goto(aboutlink.href) puts(attach failed) statusMessage=attach failed $ieAbout = IE.attach(:title, /About KALIDO MDM/) statusMessage=assert failed assert($ieAbout.title==About KALIDO MDM,Failed to invoke About) statusMessage=close failed $ieAbout.close rescue errorstring =Failed while + statusMessage failTest(3,errorstring) end end Mike Harris ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
RE: [Wtr-general] Connecting to a second window
Thanks.I tried that and still had the same problem. I have just noticed that when I hover over the link with the mouse the path to the page for the second window is displayed in the status bar, but this does not include the name of the file. I am wondering if this is the problem. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Zeljko Filipin Sent: 30 August 2005 10:57 To: wtr-general@rubyforge.org Subject: RE: [Wtr-general] Connecting to a second window Try this $ieAbout = Watir::IE.attach(:title, /About KALIDO MDM/) instead of $ieAbout = IE.attach(:title, /About KALIDO MDM/) Zeljko -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Harris Sent: Tuesday, August 30, 2005 11:53 AM To: wtr-general@rubyforge.org Subject: RE: [Wtr-general] Connecting to a second window The last line put to the command console is attach failed. So I assume that it is the attach that has failed -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Zeljko Filipin Sent: 30 August 2005 10:44 To: wtr-general@rubyforge.org Subject: RE: [Wtr-general] Connecting to a second window In which line does your script fail (goto or attach)? What error message do you get? Zeljko -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Harris Sent: Tuesday, August 30, 2005 11:39 AM To: wtr-general@rubyforge.org Subject: [Wtr-general] Connecting to a second window I have just started to use Watir and am trying to connect to a new window using this code, but I fail to goto the link. Can you please give me some advice about why this may be failing. Thanks def test_03_ViewAbout puts Test 3...View About goToSignOnPage() login() begin statusMessage=Invoking About aboutlink=$ie.getLink(:text,About) statusMessage=goto link failed puts(goto link failed) $ie.goto(aboutlink.href) puts(attach failed) statusMessage=attach failed $ieAbout = IE.attach(:title, /About KALIDO MDM/) statusMessage=assert failed assert($ieAbout.title==About KALIDO MDM,Failed to invoke About) statusMessage=close failed $ieAbout.close rescue errorstring =Failed while + statusMessage failTest(3,errorstring) end end Mike Harris ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: RE: [Wtr-general] Connecting to a second window
In your test, I dont see you click the link - you seem to also display 'goto link failed' before going to it. Maybe try this begin statusMessage=Click Link aboutlink=$ie.link(:text,About).click statusMessage=attaching to new window $ieAbout = IE.attach(:title, /About KALIDO MDM/) assert($ieAbout.title==About KALIDO MDM,Failed to invoke About) rescue errorstring =Failed while + statusMessage failTest(3,errorstring) end - Original Message - From: Mike Harris [EMAIL PROTECTED] Date: Tuesday, August 30, 2005 5:18 am Subject: RE: [Wtr-general] Connecting to a second window Thanks.I tried that and still had the same problem. I have just noticedthat when I hover over the link with the mouse the path to the page for the second window is displayed in the status bar, but this does not include the name of the file. I am wondering if this is the problem. -Original Message- From: [EMAIL PROTECTED] [EMAIL PROTECTED] On Behalf Of Zeljko Filipin Sent: 30 August 2005 10:57 To: wtr-general@rubyforge.org Subject: RE: [Wtr-general] Connecting to a second window Try this $ieAbout = Watir::IE.attach(:title, /About KALIDO MDM/) instead of $ieAbout = IE.attach(:title, /About KALIDO MDM/) Zeljko -Original Message- From: [EMAIL PROTECTED] [EMAIL PROTECTED] On Behalf Of Mike Harris Sent: Tuesday, August 30, 2005 11:53 AM To: wtr-general@rubyforge.org Subject: RE: [Wtr-general] Connecting to a second window The last line put to the command console is attach failed. So I assume that it is the attach that has failed -Original Message- From: [EMAIL PROTECTED] [EMAIL PROTECTED] On Behalf Of Zeljko Filipin Sent: 30 August 2005 10:44 To: wtr-general@rubyforge.org Subject: RE: [Wtr-general] Connecting to a second window In which line does your script fail (goto or attach)? What error messagedo you get? Zeljko -Original Message- From: [EMAIL PROTECTED] [EMAIL PROTECTED] On Behalf Of Mike Harris Sent: Tuesday, August 30, 2005 11:39 AM To: wtr-general@rubyforge.org Subject: [Wtr-general] Connecting to a second window I have just started to use Watir and am trying to connect to a new window using this code, but I fail to goto the link. Can you please give me some advice about why this may be failing. Thanks def test_03_ViewAbout puts Test 3...View About goToSignOnPage() login() begin statusMessage=Invoking About aboutlink=$ie.getLink(:text,About) statusMessage=goto link failed puts(goto link failed) $ie.goto(aboutlink.href) puts(attach failed) statusMessage=attach failed $ieAbout = IE.attach(:title, /About KALIDO MDM/) statusMessage=assert failed assert($ieAbout.title==About KALIDO MDM,Failed to invoke About) statusMessage=close failed $ieAbout.close rescue errorstring =Failed while + statusMessage failTest(3,errorstring) end end Mike Harris ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
RE: [Wtr-general] Connecting to a second window
I'm just curious. Is the second window already there upon running the program? if not maybe you could try putting wait(5) before the attach just to be sure. what's the exact error message? and what's the exact title of the page when you view the source? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Mike Harris Sent: Tuesday, August 30, 2005 7:19 PM To: wtr-general@rubyforge.org Subject: RE: [Wtr-general] Connecting to a second window Thanks.I tried that and still had the same problem. I have just noticed that when I hover over the link with the mouse the path to the page for the second window is displayed in the status bar, but this does not include the name of the file. I am wondering if this is the problem. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Zeljko Filipin Sent: 30 August 2005 10:57 To: wtr-general@rubyforge.org Subject: RE: [Wtr-general] Connecting to a second window Try this $ieAbout = Watir::IE.attach(:title, /About KALIDO MDM/) instead of $ieAbout = IE.attach(:title, /About KALIDO MDM/) Zeljko -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Harris Sent: Tuesday, August 30, 2005 11:53 AM To: wtr-general@rubyforge.org Subject: RE: [Wtr-general] Connecting to a second window The last line put to the command console is attach failed. So I assume that it is the attach that has failed -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Zeljko Filipin Sent: 30 August 2005 10:44 To: wtr-general@rubyforge.org Subject: RE: [Wtr-general] Connecting to a second window In which line does your script fail (goto or attach)? What error message do you get? Zeljko -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Harris Sent: Tuesday, August 30, 2005 11:39 AM To: wtr-general@rubyforge.org Subject: [Wtr-general] Connecting to a second window I have just started to use Watir and am trying to connect to a new window using this code, but I fail to goto the link. Can you please give me some advice about why this may be failing. Thanks def test_03_ViewAbout puts Test 3...View About goToSignOnPage() login() begin statusMessage=Invoking About aboutlink=$ie.getLink(:text,About) statusMessage=goto link failed puts(goto link failed) $ie.goto(aboutlink.href) puts(attach failed) statusMessage=attach failed $ieAbout = IE.attach(:title, /About KALIDO MDM/) statusMessage=assert failed assert($ieAbout.title==About KALIDO MDM,Failed to invoke About) statusMessage=close failed $ieAbout.close rescue errorstring =Failed while + statusMessage failTest(3,errorstring) end end Mike Harris ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general