watin-users Mailing List for WatiN
Brought to you by:
jvmenen
You can subscribe to this list here.
| 2006 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(3) |
Aug
(21) |
Sep
(27) |
Oct
(24) |
Nov
(41) |
Dec
(21) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2007 |
Jan
(89) |
Feb
(40) |
Mar
(44) |
Apr
(81) |
May
(73) |
Jun
(32) |
Jul
(31) |
Aug
(12) |
Sep
(41) |
Oct
(74) |
Nov
(50) |
Dec
(26) |
| 2008 |
Jan
(34) |
Feb
(42) |
Mar
(46) |
Apr
(45) |
May
(63) |
Jun
(39) |
Jul
(99) |
Aug
(42) |
Sep
(84) |
Oct
(107) |
Nov
(43) |
Dec
(71) |
| 2009 |
Jan
(41) |
Feb
(109) |
Mar
(126) |
Apr
(88) |
May
(60) |
Jun
(101) |
Jul
(95) |
Aug
(103) |
Sep
(49) |
Oct
(52) |
Nov
(92) |
Dec
(68) |
| 2010 |
Jan
(130) |
Feb
(137) |
Mar
(66) |
Apr
(11) |
May
(63) |
Jun
(59) |
Jul
(49) |
Aug
(83) |
Sep
(35) |
Oct
(34) |
Nov
(34) |
Dec
(36) |
| 2011 |
Jan
(36) |
Feb
(10) |
Mar
(80) |
Apr
(39) |
May
(11) |
Jun
(11) |
Jul
(22) |
Aug
(34) |
Sep
(11) |
Oct
(28) |
Nov
(15) |
Dec
(4) |
| 2012 |
Jan
(14) |
Feb
(10) |
Mar
(18) |
Apr
(11) |
May
(19) |
Jun
(22) |
Jul
(25) |
Aug
(8) |
Sep
(10) |
Oct
(7) |
Nov
(9) |
Dec
(1) |
| 2013 |
Jan
(13) |
Feb
(18) |
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
(4) |
Aug
|
Sep
(4) |
Oct
|
Nov
|
Dec
|
| 2014 |
Jan
(2) |
Feb
(5) |
Mar
(4) |
Apr
|
May
(2) |
Jun
(2) |
Jul
|
Aug
(5) |
Sep
(1) |
Oct
|
Nov
|
Dec
|
| 2015 |
Jan
(4) |
Feb
(2) |
Mar
(7) |
Apr
|
May
(6) |
Jun
|
Jul
|
Aug
|
Sep
(6) |
Oct
|
Nov
|
Dec
|
| 2016 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(2) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Ron G. <ron...@ya...> - 2016-05-02 21:19:05
|
Seems like more of a general .NET web services questions. Given this envelope: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soap="..." xmlns:foo="..."> <soapenv:Header> <soap:authentication> <soap:locale>en_US</soap:locale> <soap:username>...</soap:username> <soap:password>...</soap:password> </soap:authentication> </soapenv:Header> <soapenv:Body> <foo:processRequest> <foo:requestMsg><![CDATA[<?xml version="1.0"?> <root />]]></foo:requestMsg> </foo:processRequest> </soapenv:Body></soapenv:Envelope> When you import the WSDL into VS the header members (in this case locale, username, password) are often (always?) parameters on the operation you're invoking: var client = new ServiceReference1.APIPortTypeClient();client.processRequest( new authentication {username = "me", password = "secret"}, new locale { Value = "en_US"}, payload); I've found that to be true in both .NET and Java auto-generated clients. One time I couldn't get VS to properly import a WSDL so I ended up just making the envelope myself: public const string EnvelopeFormat = @" <soapenv:Envelopexmlns:soapenv=""http://schemas.xmlsoap.org/soap/envelope/"" xmlns:soap=""..."" xmlns:foo=""...""> <soapenv:Header> <soap:authentication> <soap:locale>en_US</soap:locale> <soap:username>{0}</soap:username> <soap:password>{1}</soap:password> </soap:authentication> </soapenv:Header> <soapenv:Body> <foo:processRequest> <foo:requestMsg><![CDATA[<?xml version=""1.0""?> {2} ]]></foo:requestMsg> </foo:processRequest> </soapenv:Body> </soapenv:Envelope>"; String envelope = String.Format(EnvelopeFormat, "me", "secret", payload);// TODO: use WebClient or HttpClient to POST the envelope From: Greg Hile <gh...@qu...> To: watin-users mailing list <wat...@li...> Sent: Monday, May 2, 2016 10:31 AM Subject: [Watin-users] Does anyone know .Net & SOAP web services? <!--#yiv7686359915 _filtered #yiv7686359915 {font-family:Helvetica;panose-1:2 11 6 4 2 2 2 2 2 4;} _filtered #yiv7686359915 {font-family:"Cambria Math";panose-1:2 4 5 3 5 4 6 3 2 4;} _filtered #yiv7686359915 {font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;} _filtered #yiv7686359915 {font-family:Verdana;panose-1:2 11 6 4 3 5 4 4 2 4;}#yiv7686359915 #yiv7686359915 p.yiv7686359915MsoNormal, #yiv7686359915 li.yiv7686359915MsoNormal, #yiv7686359915 div.yiv7686359915MsoNormal {margin:0in;margin-bottom:.0001pt;font-size:11.0pt;font-family:"Calibri", sans-serif;}#yiv7686359915 a:link, #yiv7686359915 span.yiv7686359915MsoHyperlink {color:#0563C1;text-decoration:underline;}#yiv7686359915 a:visited, #yiv7686359915 span.yiv7686359915MsoHyperlinkFollowed {color:#954F72;text-decoration:underline;}#yiv7686359915 span.yiv7686359915EmailStyle17 {font-family:"Calibri", sans-serif;color:windowtext;}#yiv7686359915 .yiv7686359915MsoChpDefault {font-family:"Calibri", sans-serif;} _filtered #yiv7686359915 {margin:1.0in 1.0in 1.0in 1.0in;}#yiv7686359915 div.yiv7686359915WordSection1 {}-->Hello all, I am looking for someone to share their knowledge. Specifically, with .Net and sending a soap envelope with login info in the header of the envelopeI am willing to pay for your time. Greg gh...@qu... ------------------------------------------------------------------------------ Find and fix application performance issues faster with Applications Manager Applications Manager provides deep performance insights into multiple tiers of your business applications. It resolves application problems quickly and reduces your MTTR. Get your free trial! https://ad.doubleclick.net/ddm/clk/302982198;130105516;z _______________________________________________ Watin-users mailing list Wat...@li... https://lists.sourceforge.net/lists/listinfo/watin-users |
|
From: Greg H. <gh...@qu...> - 2016-05-02 14:44:10
|
Hello all, I am looking for someone to share their knowledge. Specifically, with .Net and sending a soap envelope with login info in the header of the envelope I am willing to pay for your time. Greg gh...@qu... |
|
From: Saad Q. <msa...@gm...> - 2015-09-13 15:30:26
|
That's a helpful feedback :) On Sun, Sep 13, 2015 at 7:25 PM, Köster, Michael <mi...@ko...> wrote: > Hi @all, > > > > sure! > > > > Greg was perfectly right in his analysis. After switching ShDocVw.dll to > “local copy” in project’s properties WatiN works fine. Even under Windows > 10 and using Visual Studio Express 2015. WatiN loads the still existing > Internet Explorer and ignores Edge. > > > > Thanks and bye, > > Michael > > > > --- > > Michael Köster > > Thomasiusstraße 11 > > 10557 Berlin > > > > > > *From:* Saad Qureshi [mailto:msa...@gm...] > *Sent:* Dienstag, 8. September 2015 09:05 > *To:* wat...@li... > *Subject:* Re: [Watin-users] Windows 10 Support? > > > > Hi Michael, > > > > Kindly give us feedback if you are able to fix your problem. > > > > On Mon, Sep 7, 2015 at 5:37 PM, Greg Hile <gh...@qu...> wrote: > > Watin works under Windows 10 for the Internet Explorer, not Edge. Both are > installed in o > For your error use the SHDocVW.dll that comes with the Watin download. Then > set it's properties to copy true. You should be golden. > > > And have an EXCELLENT Day! > Greg Hile > Managing Partner/Developer > QuoteRush.com. LLC > Office:(813) 783-8301 > CONFIDENTIALITY NOTICE: The information that is contained herein and any > attachment(s) may be privileged and are protected by the attorney/client > and/or other privilege. It should not be communicated to or relied upon by > any person without our express written consent. It is confidential in > nature and intended for use by the intended recipient ONLY. If you are not > the intended recipient, you are hereby expressly prohibited from the > dissemination, distribution, copying, or any use whatsoever, of this > transmission and its contents. Unauthorized use may be unlawful. If you > received this transmission in error, please notify the author by replying > to > this e-mail. You should carry out your own virus check before opening any > attachment(s). > > > -----Original Message----- > From: Köster, Michael [mailto:mi...@ko...] > Sent: Sunday, September 06, 2015 6:52 PM > To: wat...@li... > Subject: [Watin-users] Windows 10 Support? > > Hi! > > I tried WatiN for the first time, right now. Unfortunately I got a > FileNotFoundException. The file "Interop.SHDocVw, Version=1.1.0.0, > Culture=neutral, PublicKeyToken=db7cfd3acb5ad44e" was not found. > > My system is running Windows 10 with Visual Studio Express 2015. From my > perspective it might be possible, that the runtime error is a result of the > new Edge browser, which is shipped with Windows 10. > > So I want to ask two questions to the community: > > - Has anybody experiences with WatiN under Windows 10? Is Windows 10 > supported? > - Does anybody have a hint, why I got the runtime error mentioned above? > And > how a possible solution might look like? > > Thank you very much in advance! > > Best regards, > Michael > > > --- > Michael Koester > Thomasiusstrasse 11 > 10557 Berlin > > > ---------------------------------------------------------------------------- > -- > _______________________________________________ > Watin-users mailing list > Wat...@li... > https://lists.sourceforge.net/lists/listinfo/watin-users > > > > ------------------------------------------------------------------------------ > _______________________________________________ > Watin-users mailing list > Wat...@li... > https://lists.sourceforge.net/lists/listinfo/watin-users > > > > > > -- > > Best Regards, > > Saad > > > ------------------------------------------------------------------------------ > > _______________________________________________ > Watin-users mailing list > Wat...@li... > https://lists.sourceforge.net/lists/listinfo/watin-users > > -- Best Regards, Saad |
|
From: Köster, M. <mi...@ko...> - 2015-09-13 14:25:39
|
Hi @all, sure! Greg was perfectly right in his analysis. After switching ShDocVw.dll to “local copy” in project’s properties WatiN works fine. Even under Windows 10 and using Visual Studio Express 2015. WatiN loads the still existing Internet Explorer and ignores Edge. Thanks and bye, Michael --- Michael Köster Thomasiusstraße 11 10557 Berlin From: Saad Qureshi [mailto:msa...@gm...] Sent: Dienstag, 8. September 2015 09:05 To: wat...@li... Subject: Re: [Watin-users] Windows 10 Support? Hi Michael, Kindly give us feedback if you are able to fix your problem. On Mon, Sep 7, 2015 at 5:37 PM, Greg Hile <gh...@qu...<mailto:gh...@qu...>> wrote: Watin works under Windows 10 for the Internet Explorer, not Edge. Both are installed in o For your error use the SHDocVW.dll that comes with the Watin download. Then set it's properties to copy true. You should be golden. And have an EXCELLENT Day! Greg Hile Managing Partner/Developer QuoteRush.com. LLC Office:(813) 783-8301 CONFIDENTIALITY NOTICE: The information that is contained herein and any attachment(s) may be privileged and are protected by the attorney/client and/or other privilege. It should not be communicated to or relied upon by any person without our express written consent. It is confidential in nature and intended for use by the intended recipient ONLY. If you are not the intended recipient, you are hereby expressly prohibited from the dissemination, distribution, copying, or any use whatsoever, of this transmission and its contents. Unauthorized use may be unlawful. If you received this transmission in error, please notify the author by replying to this e-mail. You should carry out your own virus check before opening any attachment(s). -----Original Message----- From: Köster, Michael [mailto:mi...@ko...<mailto:mi...@ko...>] Sent: Sunday, September 06, 2015 6:52 PM To: wat...@li...<mailto:wat...@li...> Subject: [Watin-users] Windows 10 Support? Hi! I tried WatiN for the first time, right now. Unfortunately I got a FileNotFoundException. The file "Interop.SHDocVw, Version=1.1.0.0, Culture=neutral, PublicKeyToken=db7cfd3acb5ad44e" was not found. My system is running Windows 10 with Visual Studio Express 2015. From my perspective it might be possible, that the runtime error is a result of the new Edge browser, which is shipped with Windows 10. So I want to ask two questions to the community: - Has anybody experiences with WatiN under Windows 10? Is Windows 10 supported? - Does anybody have a hint, why I got the runtime error mentioned above? And how a possible solution might look like? Thank you very much in advance! Best regards, Michael --- Michael Koester Thomasiusstrasse 11 10557 Berlin ---------------------------------------------------------------------------- -- _______________________________________________ Watin-users mailing list Wat...@li...<mailto:Wat...@li...> https://lists.sourceforge.net/lists/listinfo/watin-users ------------------------------------------------------------------------------ _______________________________________________ Watin-users mailing list Wat...@li...<mailto:Wat...@li...> https://lists.sourceforge.net/lists/listinfo/watin-users -- Best Regards, Saad |
|
From: Saad Q. <msa...@gm...> - 2015-09-08 07:04:44
|
Hi Michael, Kindly give us feedback if you are able to fix your problem. On Mon, Sep 7, 2015 at 5:37 PM, Greg Hile <gh...@qu...> wrote: > Watin works under Windows 10 for the Internet Explorer, not Edge. Both are > installed in o > For your error use the SHDocVW.dll that comes with the Watin download. Then > set it's properties to copy true. You should be golden. > > > And have an EXCELLENT Day! > Greg Hile > Managing Partner/Developer > QuoteRush.com. LLC > Office:(813) 783-8301 > CONFIDENTIALITY NOTICE: The information that is contained herein and any > attachment(s) may be privileged and are protected by the attorney/client > and/or other privilege. It should not be communicated to or relied upon by > any person without our express written consent. It is confidential in > nature and intended for use by the intended recipient ONLY. If you are not > the intended recipient, you are hereby expressly prohibited from the > dissemination, distribution, copying, or any use whatsoever, of this > transmission and its contents. Unauthorized use may be unlawful. If you > received this transmission in error, please notify the author by replying > to > this e-mail. You should carry out your own virus check before opening any > attachment(s). > > -----Original Message----- > From: Köster, Michael [mailto:mi...@ko...] > Sent: Sunday, September 06, 2015 6:52 PM > To: wat...@li... > Subject: [Watin-users] Windows 10 Support? > > Hi! > > I tried WatiN for the first time, right now. Unfortunately I got a > FileNotFoundException. The file "Interop.SHDocVw, Version=1.1.0.0, > Culture=neutral, PublicKeyToken=db7cfd3acb5ad44e" was not found. > > My system is running Windows 10 with Visual Studio Express 2015. From my > perspective it might be possible, that the runtime error is a result of the > new Edge browser, which is shipped with Windows 10. > > So I want to ask two questions to the community: > > - Has anybody experiences with WatiN under Windows 10? Is Windows 10 > supported? > - Does anybody have a hint, why I got the runtime error mentioned above? > And > how a possible solution might look like? > > Thank you very much in advance! > > Best regards, > Michael > > > --- > Michael Koester > Thomasiusstrasse 11 > 10557 Berlin > > > ---------------------------------------------------------------------------- > -- > _______________________________________________ > Watin-users mailing list > Wat...@li... > https://lists.sourceforge.net/lists/listinfo/watin-users > > > > ------------------------------------------------------------------------------ > _______________________________________________ > Watin-users mailing list > Wat...@li... > https://lists.sourceforge.net/lists/listinfo/watin-users > -- Best Regards, Saad |
|
From: Greg H. <gh...@qu...> - 2015-09-07 12:50:17
|
Watin works under Windows 10 for the Internet Explorer, not Edge. Both are installed in o For your error use the SHDocVW.dll that comes with the Watin download. Then set it's properties to copy true. You should be golden. And have an EXCELLENT Day! Greg Hile Managing Partner/Developer QuoteRush.com. LLC Office:(813) 783-8301 CONFIDENTIALITY NOTICE: The information that is contained herein and any attachment(s) may be privileged and are protected by the attorney/client and/or other privilege. It should not be communicated to or relied upon by any person without our express written consent. It is confidential in nature and intended for use by the intended recipient ONLY. If you are not the intended recipient, you are hereby expressly prohibited from the dissemination, distribution, copying, or any use whatsoever, of this transmission and its contents. Unauthorized use may be unlawful. If you received this transmission in error, please notify the author by replying to this e-mail. You should carry out your own virus check before opening any attachment(s). -----Original Message----- From: Köster, Michael [mailto:mi...@ko...] Sent: Sunday, September 06, 2015 6:52 PM To: wat...@li... Subject: [Watin-users] Windows 10 Support? Hi! I tried WatiN for the first time, right now. Unfortunately I got a FileNotFoundException. The file "Interop.SHDocVw, Version=1.1.0.0, Culture=neutral, PublicKeyToken=db7cfd3acb5ad44e" was not found. My system is running Windows 10 with Visual Studio Express 2015. From my perspective it might be possible, that the runtime error is a result of the new Edge browser, which is shipped with Windows 10. So I want to ask two questions to the community: - Has anybody experiences with WatiN under Windows 10? Is Windows 10 supported? - Does anybody have a hint, why I got the runtime error mentioned above? And how a possible solution might look like? Thank you very much in advance! Best regards, Michael --- Michael Koester Thomasiusstrasse 11 10557 Berlin ---------------------------------------------------------------------------- -- _______________________________________________ Watin-users mailing list Wat...@li... https://lists.sourceforge.net/lists/listinfo/watin-users |
|
From: Charles V. <cva...@gm...> - 2015-09-07 05:44:47
|
Have your tried adding a reference to Interop.SHDoc? On Sep 6, 2015 7:09 PM, "Köster, Michael" <mi...@ko...> wrote: > Hi! > > I tried WatiN for the first time, right now. Unfortunately I got a > FileNotFoundException. The file "Interop.SHDocVw, Version=1.1.0.0, > Culture=neutral, PublicKeyToken=db7cfd3acb5ad44e" was not found. > > My system is running Windows 10 with Visual Studio Express 2015. From my > perspective it might be possible, that the runtime error is a result of the > new Edge browser, which is shipped with Windows 10. > > So I want to ask two questions to the community: > > - Has anybody experiences with WatiN under Windows 10? Is Windows 10 > supported? > - Does anybody have a hint, why I got the runtime error mentioned above? > And how a possible solution might look like? > > Thank you very much in advance! > > Best regards, > Michael > > > --- > Michael Koester > Thomasiusstrasse 11 > 10557 Berlin > > > ------------------------------------------------------------------------------ > _______________________________________________ > Watin-users mailing list > Wat...@li... > https://lists.sourceforge.net/lists/listinfo/watin-users > |
|
From: Köster, M. <mi...@ko...> - 2015-09-06 23:06:10
|
Hi! I tried WatiN for the first time, right now. Unfortunately I got a FileNotFoundException. The file "Interop.SHDocVw, Version=1.1.0.0, Culture=neutral, PublicKeyToken=db7cfd3acb5ad44e" was not found. My system is running Windows 10 with Visual Studio Express 2015. From my perspective it might be possible, that the runtime error is a result of the new Edge browser, which is shipped with Windows 10. So I want to ask two questions to the community: - Has anybody experiences with WatiN under Windows 10? Is Windows 10 supported? - Does anybody have a hint, why I got the runtime error mentioned above? And how a possible solution might look like? Thank you very much in advance! Best regards, Michael --- Michael Koester Thomasiusstrasse 11 10557 Berlin |
|
From: Inkal N. <in...@ya...> - 2015-05-18 16:35:39
|
Hi, I'm new to using Watin for the first time in C#.net. I've gotten the basics of how to go around it but the page I'm trying to scrape doesn't have a nice format to it like XML....I don't know how to access parts of the page that don't have specific IDs linked to the control. For example, I want to get values from the following: <p class='q'>How many patients did you see on average per day?</p> <p class='single'><span class='value'>0</span> 0-5<span class='value'>2</span> 6-10<span class='value'>2</span> 11-15<span class='value'>0</span> >15</p> <p class='q'>What percentage of it were comprehensive exams?</p> <p class='single'><span class='value'>0</span> 0-25%<span class='value'>0</span> 25-50%<span class='value'>0</span> 50-75%<span class='value'>4</span> 57-100%</p> <p class='q'>Rank by frequency the services that you provided to the following age groups.</p> <table class='records' cellspacing='0'> <thead><tr><th style='text-align:right;'>Rating counts</th><th>N/A</th><th>Seldom</th><th>Occasional</th><th>Frequent</th></tr></thead> <tbody><tr><td class='q'>Infant < 5 y.o.</td><td class='hist'><span class='value'>0</span></td><td class='hist'><span class='value'>2</span></td><td class='hist'><span class='value'>2</span></td><td class='hist'><span class='value'>0</span></td></tr> <tr><td class='q'>Ped. 5–17 y.o.</td><td class='hist'><span class='value'>0</span></td><td class='hist'><span class='value'>0</span></td><td class='hist'><span class='value'>2</span></td><td class='hist'><span class='value'>2</span></td></tr> <tr><td class='q'>Adult 18–44</td><td class='hist'><span class='value'>0</span></td><td class='hist'><span class='value'>0</span></td><td class='hist'><span class='value'>1</span></td><td class='hist'><span class='value'>3</span></td></tr> <tr><td class='q'>Adult 44–64</td><td class='hist'><span class='value'>0</span></td><td class='hist'><span class='value'>0</span></td><td class='hist'><span class='value'>0</span></td><td class='hist'><span class='value'>4</span></td></tr> <tr><td class='q'>Geriatric >65</td><td class='hist'><span class='value'>0</span></td><td class='hist'><span class='value'>0</span></td><td class='hist'><span class='value'>3</span></td><td class='hist'><span class='value'>1</span></td></tr> </tbody></table> I want to get the question, but all questions have <p class= 'q'> All the answers mostly have class='value' Can someone provide me a way of getting values out of these survey questions? Thanks for any help in advance. |
|
From: <rke...@ch...> - 2015-05-02 15:38:55
|
I tried www.google.com as the code below and it worked. using (var ie = new IE("http://www.google.com/")) { TextField tf = ie.TextField(Find.ById("lst-ib")); if (tf.Exists) tf.Value = "sheep"; ie.Button(Find.ByName("btnG")).Click(); }But I noticed that with my URL part of the exception message indicates that it is looking in 'about:blank'. Maybe this has something to do with it? Kevin -----------------------------------------From: "Greg Hile" To: rke...@ch..., wat...@li... Cc: Sent: Sat, 2 May 2015 07:00:09 -0400 Subject: RE: [Watin-users] Getting Started. Do the same code for Google.com and see what your results are there. If it works for google.com, then . . . What version of IE is it? Try in compatibility mode. Also if you are running the application as admin you may want to make sure protected mode is off in IE and if not running as admin maybe make sure it is on. From: rke...@ch... [mailto:rke...@ch...] SENT: Friday, May 01, 2015 8:54 PM TO: 'wat...@li...' CC: 'gh...@qu...' SUBJECT: Re: [Watin-users] Getting Started. Thank you for responding. Here is the complete source for what I am trying: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using WatiN.Core; namespace WatiNDemo { class Program { [STAThread] static void Main(string[] args) { using (var ie = new IE("http://bdsdev.alpha.kaplaninc.com/ [1]")) { TextField tf = ie.TextField(Find.ById("Username")); if(tf.Exists) ie.TextField("Username").Value = "kburton"; ie.TextField("Password").Value = "July231951Kaplan"; ie.Button("login").Click(); } } } } The 'Exists' is always false. So I don't get the exception but nothing happens. The web page is staightforward. It is not in a frame. Using the browser debugger the source of this element looks like: ----------------------------------------- From: "Greg Hile" To: wat...@li... [2] Cc: Sent: Fri, 1 May 2015 20:26:46 -0400 Subject: Re: [Watin-users] Getting Started. Try something like. . . TextField tf = ie.TextField(Find.ById(“Username”)); If(tf.exists) { tf.Value = “mystuff”; } If it does not exist, then check if it is in a frame or if it’s input type I not set to a typical type. FROM: Kevin Burton [mailto:rke...@ch... [3]] SENT: Friday, May 01, 2015 6:37 PM TO: wat...@li... [4] SUBJECT: [Watin-users] Getting Started. I have a very simple startup application. It is a Windows Console app that looks like: Class Program { [STAThread] static void Main(string[] args) { using(var ie = new IE(http://bdsdev.alpha.kaplaninc.com/) [5]) { ie.TextField(“Username”).Value = “xxxxxxx”; ie.TextField(“Password”).Value = “yyyyyyyy”; ie.Button(“login”).Click(); } } } The web page is a very simple web page with two input fields and a submit button. I have checked that the web page has something like “ Links: ------ [1] http://bdsdev.alpha.kaplaninc.com/ [2] mailto:wat...@li... [3] mailto:rke...@ch... [4] mailto:wat...@li... [5] http://bdsdev.alpha.kaplaninc.com/) |
|
From: Greg H. <gh...@qu...> - 2015-05-02 11:00:37
|
Do the same code for Google.com and see what your results are there. If it works for google.com, then . . . What version of IE is it? Try in compatibility mode. Also if you are running the application as admin you may want to make sure protected mode is off in IE and if not running as admin maybe make sure it is on. From: rke...@ch... [mailto:rke...@ch...] Sent: Friday, May 01, 2015 8:54 PM To: 'wat...@li...' Cc: 'gh...@qu...' Subject: Re: [Watin-users] Getting Started. Thank you for responding. Here is the complete source for what I am trying: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using WatiN.Core; namespace WatiNDemo { class Program { [STAThread] static void Main(string[] args) { using (var ie = new IE("http://bdsdev.alpha.kaplaninc.com/")) { TextField tf = ie.TextField(Find.ById("Username")); if(tf.Exists) ie.TextField("Username").Value = "kburton"; ie.TextField("Password").Value = "July231951Kaplan"; ie.Button("login").Click(); } } } } The 'Exists' is always false. So I don't get the exception but nothing happens. The web page is staightforward. It is not in a frame. Using the browser debugger the source of this element looks like: <input name="Username" id="Username" type="text" value="" data-val-required="A username is required to log in." data-val-length-min="3" data-val-length-max="40" data-val-length="Invalid Username" data-val="true"> ----------------------------------------- From: "Greg Hile" To: wat...@li... <mailto:wat...@li...> Cc: Sent: Fri, 1 May 2015 20:26:46 -0400 Subject: Re: [Watin-users] Getting Started. Try something like. . . TextField tf = ie.TextField(Find.ById(“Username”)); If(tf.exists) { tf.Value = “mystuff”; } If it does not exist, then check if it is in a frame or if it’s input type I not set to a typical type. From: Kevin Burton [mailto:rke...@ch...] Sent: Friday, May 01, 2015 6:37 PM To: wat...@li... <mailto:wat...@li...> Subject: [Watin-users] Getting Started. I have a very simple startup application. It is a Windows Console app that looks like: Class Program { [STAThread] static void Main(string[] args) { using(var ie = new IE(http://bdsdev.alpha.kaplaninc.com/)) { ie.TextField(“Username”).Value = “xxxxxxx”; ie.TextField(“Password”).Value = “yyyyyyyy”; ie.Button(“login”).Click(); } } } The web page is a very simple web page with two input fields and a submit button. I have checked that the web page has something like “<input id=’<id>’ . . . . .” for the two fields. In other words the fields do have ids. But when I run this simple code I get a timeout exception indicating that the field “Username” could not be found (WatiN.Core.Exceptions.ElementNotFoundException Could not find INPUT (hidden) or INPUT (password) or INPUT (text) or INPUT (textarea) or TEXTAREA element tag matching criteria: Attribute ‘id’ equals ‘Username’ at about:blank.) First I know the web page that appears as a result of the IE constructor has an input field with id of ‘Username’. Second the exception indicates ‘about:blank’. This is not the URL that it should be looking for the field in. Ideas? Thank you. |
|
From: <rke...@ch...> - 2015-05-02 00:54:13
|
Thank you for responding. Here is the complete source for what I am
trying:
using System; using System.Collections.Generic; using System.Linq;
using System.Text; using System.Threading.Tasks; using WatiN.Core;
namespace WatiNDemo { class Program { [STAThread] static void
Main(string[] args) { using (var ie = new
IE("http://bdsdev.alpha.kaplaninc.com/")) { TextField tf =
ie.TextField(Find.ById("Username")); if(tf.Exists)
ie.TextField("Username").Value = "kburton";
ie.TextField("Password").Value = "July231951Kaplan";
ie.Button("login").Click(); } } } }
The 'Exists' is always false. So I don't get the exception but nothing
happens. The web page is staightforward. It is not in a frame.
Using the browser debugger the source of this element looks like:
-----------------------------------------From: "Greg Hile"
To: wat...@li...
Cc:
Sent: Fri, 1 May 2015 20:26:46 -0400
Subject: Re: [Watin-users] Getting Started.
Try something like. . .
TextField tf = ie.TextField(Find.ById(“Username”));
If(tf.exists)
{
tf.Value = “mystuff”;
}
If it does not exist, then check if it is in a frame or if it’s
input type I not set to a typical type.
FROM: Kevin Burton [mailto:rke...@ch...]
SENT: Friday, May 01, 2015 6:37 PM
TO: wat...@li...
SUBJECT: [Watin-users] Getting Started.
I have a very simple startup application. It is a Windows Console app
that looks like:
Class Program {
[STAThread]
static void Main(string[] args) {
using(var ie = new IE(http://bdsdev.alpha.kaplaninc.com/) [1]) {
ie.TextField(“Username”).Value = “xxxxxxx”;
ie.TextField(“Password”).Value = “yyyyyyyy”;
ie.Button(“login”).Click();
}
}
}
The web page is a very simple web page with two input fields and a
submit button. I have checked that the web page has something like “
Links:
------
[1] http://bdsdev.alpha.kaplaninc.com/)
|
|
From: Greg H. <gh...@qu...> - 2015-05-02 00:39:47
|
Try something like. . .
TextField tf = ie.TextField(Find.ById("Username"));
If(tf.exists)
{
tf.Value = "mystuff";
}
If it does not exist, then check if it is in a frame or if it's input type I
not set to a typical type.
From: Kevin Burton [mailto:rke...@ch...]
Sent: Friday, May 01, 2015 6:37 PM
To: wat...@li...
Subject: [Watin-users] Getting Started.
I have a very simple startup application. It is a Windows Console app that
looks like:
Class Program {
[STAThread]
static void Main(string[] args) {
using(var ie = new IE(http://bdsdev.alpha.kaplaninc.com/)) {
ie.TextField("Username").Value = "xxxxxxx";
ie.TextField("Password").Value = "yyyyyyyy";
ie.Button("login").Click();
}
}
}
The web page is a very simple web page with two input fields and a submit
button. I have checked that the web page has something like "<input
id='<id>' . . . . ." for the two fields. In other words the fields do have
ids. But when I run this simple code I get a timeout exception indicating
that the field "Username" could not be found
(WatiN.Core.Exceptions.ElementNotFoundException Could not find INPUT
(hidden) or INPUT (password) or INPUT (text) or INPUT (textarea) or TEXTAREA
element tag matching criteria: Attribute 'id' equals 'Username' at
about:blank.) First I know the web page that appears as a result of the IE
constructor has an input field with id of 'Username'. Second the exception
indicates 'about:blank'. This is not the URL that it should be looking for
the field in.
Ideas?
Thank you.
|
|
From: Kevin B. <rke...@ch...> - 2015-05-01 22:36:45
|
I have a very simple startup application. It is a Windows Console app that
looks like:
Class Program {
[STAThread]
static void Main(string[] args) {
using(var ie = new IE(http://bdsdev.alpha.kaplaninc.com/)) {
ie.TextField("Username").Value = "xxxxxxx";
ie.TextField("Password").Value = "yyyyyyyy";
ie.Button("login").Click();
}
}
}
The web page is a very simple web page with two input fields and a submit
button. I have checked that the web page has something like "<input
id='<id>' . . . . ." for the two fields. In other words the fields do have
ids. But when I run this simple code I get a timeout exception indicating
that the field "Username" could not be found
(WatiN.Core.Exceptions.ElementNotFoundException Could not find INPUT
(hidden) or INPUT (password) or INPUT (text) or INPUT (textarea) or TEXTAREA
element tag matching criteria: Attribute 'id' equals 'Username' at
about:blank.) First I know the web page that appears as a result of the IE
constructor has an input field with id of 'Username'. Second the exception
indicates 'about:blank'. This is not the URL that it should be looking for
the field in.
Ideas?
Thank you.
|
|
From: Greg H. <gh...@qu...> - 2015-03-30 11:19:35
|
Don, Here is a good page to get you started with a simple example. http://apihelp.httpwatch.com/#WatiN Form Fill Sample.html And have an EXCELLENT Day! Greg Hile Managing Partner/Developer QuoteRush.com. LLC Office:(813) 783-8301 CONFIDENTIALITY NOTICE: The information that is contained herein and any attachment(s) may be privileged and are protected by the attorney/client and/or other privilege. It should not be communicated to or relied upon by any person without our express written consent. It is confidential in nature and intended for use by the intended recipient ONLY. If you are not the intended recipient, you are hereby expressly prohibited from the dissemination, distribution, copying, or any use whatsoever, of this transmission and its contents. Unauthorized use may be unlawful. If you received this transmission in error, please notify the author by replying to this e-mail. You should carry out your own virus check before opening any attachment(s). From: Don McCullers [mailto:don...@gm...] Sent: Saturday, March 28, 2015 3:29 PM To: Watin Usergroup Subject: [Watin-users] Actual Documentation Link? Greetings! Im new to Watin and am having some difficulty getting up to speed. Ive tried to follow the MSDN style online documentation link from the http://watin.org/documentation/ <http://watin.org/documentation/%20%20 page%20and%20got%20a%20Sorry,%20but%20you%20are%20looking%20for%20something %20that%20isn't%20here.> page and got a Sorry, but you are looking for something that isn't here. Message. I did some research and found bug #294 that has the same problem that was from 2011! So, can anyone give me a pointer to some user documentation thatll work? Thanks! Don |
|
From: Greg H. <gh...@qu...> - 2015-03-30 11:13:52
|
I am considering Selenium, but from what I understand Selenium’s big drawback for me is that you cannot attach to an existing IE window. Is that still the case?
Greg
From: Anders Mejner [mailto:and...@ni...]
Sent: Saturday, March 28, 2015 5:13 PM
To: wat...@li...
Subject: Re: [Watin-users] Actual Documentation Link?
Is Watin still alive?
We switched to Selenium in my team.
Cheers,
Anders
On Sat, Mar 28, 2015 at 8:29 PM, Don McCullers <don...@gm... <mailto:don...@gm...> > wrote:
Greetings!
I’m new to Watin and am having some difficulty getting up to speed. I’ve tried to follow the “MSDN style online documentation” link from the ”http://watin.org/documentation/ “ page and got a “Sorry, but you are looking for something that isn't here.” Message. I did some research and found bug #294 that has the same problem…that was from 2011! So, can anyone give me a pointer to some user documentation that’ll work?
Thanks!
Don
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Watin-users mailing list
Wat...@li... <mailto:Wat...@li...>
https://lists.sourceforge.net/lists/listinfo/watin-users
--
_________________________________________
Anders Mejner
Telefon: +46(0)8 681 43 14
|
|
From: Anders M. <and...@ni...> - 2015-03-28 22:17:45
|
Is Watin still alive? We switched to Selenium in my team. Cheers, Anders On Sat, Mar 28, 2015 at 8:29 PM, Don McCullers <don...@gm...> wrote: > Greetings! > > > > I’m new to Watin and am having some difficulty getting up > to speed. I’ve tried to follow the “MSDN style online documentation” link > from the ”http://watin.org/documentation/ “ page and got a “Sorry, but > you are looking for something that isn't here.” Message. I did some > research and found bug #294 that has the same problem…that was from 2011! > So, can anyone give me a pointer to some user documentation that’ll work? > > > > Thanks! > > > > Don > > > > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming The Go Parallel Website, > sponsored > by Intel and developed in partnership with Slashdot Media, is your hub for > all > things parallel software development, from weekly thought leadership blogs > to > news, videos, case studies, tutorials and more. Take a look and join the > conversation now. http://goparallel.sourceforge.net/ > _______________________________________________ > Watin-users mailing list > Wat...@li... > https://lists.sourceforge.net/lists/listinfo/watin-users > > -- *_________________________________________* *Anders Mejner* Telefon: +46(0)8 681 43 14 |
|
From: Don M. <don...@gm...> - 2015-03-28 19:29:57
|
Greetings!
I'm new to Watin and am having some difficulty getting up to
speed. I've tried to follow the "MSDN style online documentation" link
from the "http://watin.org/documentation/ " page and got a "Sorry, but you
are looking for something that isn't here." Message. I did some research and
found bug #294 that has the same problem.that was from 2011! So, can anyone
give me a pointer to some user documentation that'll work?
Thanks!
Don
|
|
From: Greg H. <gh...@qu...> - 2015-03-11 17:58:38
|
The URL with the box on it would help also. And have an EXCELLENT Day! Greg Hile Managing Partner/Developer QuoteRush.com. LLC Office:(813) 783-8301 CONFIDENTIALITY NOTICE: The information that is contained herein and any attachment(s) may be privileged and are protected by the attorney/client and/or other privilege. It should not be communicated to or relied upon by any person without our express written consent. It is confidential in nature and intended for use by the intended recipient ONLY. If you are not the intended recipient, you are hereby expressly prohibited from the dissemination, distribution, copying, or any use whatsoever, of this transmission and its contents. Unauthorized use may be unlawful. If you received this transmission in error, please notify the author by replying to this e-mail. You should carry out your own virus check before opening any attachment(s). From: Mick [mailto:m....@bt...] Sent: Wednesday, March 11, 2015 1:37 PM To: wat...@li... Subject: [Watin-users] Unable to input in password box I've used Watin within VB.net for sometime now to login into various websites I subscribe to. I've now come across a site that won't allow me to automatically input a password, even though when I step through my code it informs me it has found the password box. If I halt the code I can type the password in manually, but not in code. Is this protection on the website? Can I get round this? |
|
From: Greg H. <gh...@qu...> - 2015-03-11 17:58:18
|
You may want to make sure there is not more than one box with the same name or Id etc. To make sure you are on the right element Highlight it. And have an EXCELLENT Day! Greg Hile Managing Partner/Developer QuoteRush.com. LLC Office:(813) 783-8301 CONFIDENTIALITY NOTICE: The information that is contained herein and any attachment(s) may be privileged and are protected by the attorney/client and/or other privilege. It should not be communicated to or relied upon by any person without our express written consent. It is confidential in nature and intended for use by the intended recipient ONLY. If you are not the intended recipient, you are hereby expressly prohibited from the dissemination, distribution, copying, or any use whatsoever, of this transmission and its contents. Unauthorized use may be unlawful. If you received this transmission in error, please notify the author by replying to this e-mail. You should carry out your own virus check before opening any attachment(s). From: Mick [mailto:m....@bt...] Sent: Wednesday, March 11, 2015 1:37 PM To: wat...@li... Subject: [Watin-users] Unable to input in password box I've used Watin within VB.net for sometime now to login into various websites I subscribe to. I've now come across a site that won't allow me to automatically input a password, even though when I step through my code it informs me it has found the password box. If I halt the code I can type the password in manually, but not in code. Is this protection on the website? Can I get round this? |
|
From: Mick <m....@bt...> - 2015-03-11 17:37:18
|
I've used Watin within VB.net for sometime now to login into various websites I subscribe to. I've now come across a site that won't allow me to automatically input a password, even though when I step through my code it informs me it has found the password box. If I halt the code I can type the password in manually, but not in code. Is this protection on the website? Can I get round this? |
|
From: Duphorn, D. <DDu...@cx...> - 2015-02-06 14:25:23
|
I had a similar issue, but I was only seeing Watin1 and it was on Listboxes. It started happening when I updated VSTS 2012 to update 4. I fixed it by uninstalling IE then re-installing IE up to the original version. I did read some stuff about turning off protection mode, but that was already off. Hope this helps Darin From: Greg Hile [mailto:gh...@qu...] Sent: Friday, February 06, 2015 8:00 AM To: wat...@li... Subject: Re: [Watin-users] ★ Help friends raise their scores! I am seeing an issue with Watin where the Id gets detected incorrectly sometimes. Instead of coming back with an id of say “txtUSerName” it will report the textbox’s id as Watin6 or Watin3 or Watin# (where # is a number). Has anyone else seen an issue like this? Greg |
|
From: Greg H. <gh...@qu...> - 2015-02-06 14:13:10
|
I am seeing an issue with Watin where the Id gets detected incorrectly sometimes. Instead of coming back with an id of say “txtUSerName” it will report the textbox’s id as Watin6 or Watin3 or Watin# (where # is a number). Has anyone else seen an issue like this? Greg |
|
From: Benjamin W. <ben...@bo...> - 2015-01-06 10:14:22
|
Thanks very much, that was really helpful.
Ben
From: Lowell Izaguirre [mailto:lo...@st...]
Sent: 05 January 2015 17:12
To: wat...@li...
Subject: Re: [Watin-users] TextField not being detected
it has to do with the input type; the new HTML 5 types are not in the old verison of Watin,a dn i haven't seen a newer , official release that directly supports the new types yet.
input type="email"
that's not recognized by watin, and you have to add a custom class which inherits watin to watch for it and the other new HTML5 input types instead.
here's how i might use that class to get/set a textbox extension class object :
on this page for example they had input type="email"(which is unknown to the default watin)
and input type="password",(which watin natively understands
myIEBrowser.GoTo("https://SomeWebSite/Login/"<https://SomeWebSite/Login/>);
//myIEBrowser.TextField(Find.ByName("username")).TypeText("lo...@so..."<mailto:lo...@so...>);
myIEBrowser.ElementOfType<TextFieldExt>(Find.ByName("username")).TypeText(LoginUser);
myIEBrowser.TextField(Find.ByName("password")).TypeText(LoginPass);
myIEBrowser.Button(Find.ByName("submitButn")).Click();
and here's my extension class in c#;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WatiN.Core;
namespace HPPWatin.DemographicsAutomation
{
//html5 tags
[ElementTag("input", InputType = "text", Index = 0)]
[ElementTag("input", InputType = "password", Index = 1)]
[ElementTag("input", InputType = "textarea", Index = 2)]
[ElementTag("input", InputType = "hidden", Index = 3)]
[ElementTag("textarea", Index = 4)]
[ElementTag("input", InputType = "email", Index = 5)]
[ElementTag("input", InputType = "url", Index = 6)]
[ElementTag("input", InputType = "number", Index = 7)]
[ElementTag("input", InputType = "range", Index = 8)]
[ElementTag("input", InputType = "search", Index = 9)]
[ElementTag("input", InputType = "color", Index = 10)]
[ElementTag("input", InputType = "textbox", Index = 11)]
[ElementTag("input", InputType = "tel", Index = 12)]
public class TextFieldExt : WatiN.Core.TextField
{
//public TextBox() : base() { }
public TextFieldExt(DomContainer domContainer, WatiN.Core.ElementFinder finder) : base(domContainer, finder) { }
public TextFieldExt(DomContainer domContainer, WatiN.Core.Native.INativeElement element) : base(domContainer, element) { }
public static void Register()
{
Type typeToRegister = typeof(TextFieldExt);
ElementFactory.RegisterElementType(typeToRegister);
}
}
}
On 1/5/2015 11:46 AM, Benjamin Wylie wrote:
I am using watin to automate logging on to this site and getting some data:
https://id.atlassian.com/login
Unfortunately watin doesn't detect the email address field (username) as a TextField and so I can't use TypeText to type in a username.
There are no problems when using the password field.
I can't see any obvious discrepencies between the way the two fields are created in the html:
<div class="field-group ">
<label for="username">Email address</label>
<input class="text full-width-field" type="email" name="username" id="username" autofocus placeholder="Email address" maxlength=255/>
</div>
<div class="field-group ">
<label for="password">Password</label>
<input class="text full-width-field" type="password" name="password" id="password" placeholder="Password"/>
</div>
Is there a reason why this wouldn't be detected as a TextField by watin?
Thanks for your help,
Ben
------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
Watin-users mailing list
Wat...@li...<mailto:Wat...@li...>
https://lists.sourceforge.net/lists/listinfo/watin-users
|
|
From: Ralph (J. Y. Y. <jae...@br...> - 2015-01-06 01:55:30
|
Hello watin-user,
I tried to click the link using the following command.
browser.Link(Find.ByName("EX_LINE_WRK_PB_ATTENDEES$0")).Click();
But it does not working properly. I think it is because the link open javascript hyperlink not http link.
Here is the source of the link I want to click.
[cid:image001.png@01D0299F.44442580]
Can you please help me how to fix it?
Thanks.
|